Scale back global variables
authorDan Nicholson <dbn.lists@gmail.com>
Fri, 17 Apr 2009 03:01:13 +0000 (20:01 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Fri, 17 Apr 2009 03:01:13 +0000 (20:01 -0700)
Some of the global variables were either not used anymore or only used
in the listing code.

src/xkbcomp/listing.c
src/xkbcomp/xkbcomp.h

index e509b96..5b4f552 100644 (file)
@@ -144,6 +144,9 @@ static char **mapOnly;
 
 static Listing *list = NULL;
 
+static unsigned verboseLevel;
+static unsigned dirsToStrip;
+
 /***====================================================================***/
 
 int
index e9d5f47..c45918d 100644 (file)
@@ -113,7 +113,6 @@ typedef struct _ParseCommon
 #define        CreateKeyNames(x)       ((x)->flags&AutoKeyNames)
 
 extern unsigned warningLevel;
-extern unsigned optionalParts;
 
 typedef struct _IncludeStmt
 {
@@ -367,10 +366,6 @@ CompileSymbols(XkbFile *file, XkbcDescPtr xkb, unsigned merge);
 #define        WantFullNames   (1<<3)
 #define        ListRecursive   (1<<4)
 
-extern char *rootDir;
-extern unsigned verboseLevel;
-extern unsigned dirsToStrip;
-
 extern Bool AddListing(char * /* file */ ,
                        char *   /* map */
     );