Revision: 927 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=927&view=rev Author: ctabin Date: 2009-09-13 20:24:31 +0000 (Sun, 13 Sep 2009)
Log Message: ----------- Fixed the extern variable declaration as discussed
Modified Paths: -------------- trunk/geany-plugins/pretty-printer/src/ConfigUI.c trunk/geany-plugins/pretty-printer/src/ConfigUI.h
Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.c =================================================================== --- trunk/geany-plugins/pretty-printer/src/ConfigUI.c 2009-09-12 09:00:27 UTC (rev 926) +++ trunk/geany-plugins/pretty-printer/src/ConfigUI.c 2009-09-13 20:24:31 UTC (rev 927) @@ -16,9 +16,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
-#define PP_CONFIG_UI_PPOPTIONS #include "ConfigUI.h"
+//redefine the variable declared as extern +PrettyPrintingOptions* prettyPrintingOptions; + GtkWidget* createPrettyPrinterConfigUI(GtkDialog* dialog) { //default printing options
Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.h =================================================================== --- trunk/geany-plugins/pretty-printer/src/ConfigUI.h 2009-09-12 09:00:27 UTC (rev 926) +++ trunk/geany-plugins/pretty-printer/src/ConfigUI.h 2009-09-13 20:24:31 UTC (rev 927) @@ -26,13 +26,8 @@
//========================================== VARIABLES ========================================================
-//just add the keyword extern if not in the ConfigUI.c -#ifndef PP_CONFIG_UI_PPOPTIONS - extern -#endif +extern PrettyPrintingOptions* prettyPrintingOptions;
-PrettyPrintingOptions* prettyPrintingOptions; - //========================================== FUNCTIONS ========================================================
GtkWidget* createPrettyPrinterConfigUI(GtkDialog* dialog);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.