summaryrefslogtreecommitdiff
path: root/plugins/mate/mate_parser.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-22 18:39:25 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-22 18:39:25 +0000
commitd90a1a4ac60d4b0e54e821b28fc798656d119c54 (patch)
treefc2f346769c4e687b6b48f3cf3058e2f577a035e /plugins/mate/mate_parser.l
parent35bd5bd8543bb80bca0a7585fe9ad6b585b7a009 (diff)
downloadwireshark-d90a1a4ac60d4b0e54e821b28fc798656d119c54.tar.gz
Make the private variables for various lexical analyzers static, so
that we don't have all the lexical analyzers in libethereal share them (note that they're already static in radius_dict.l, so they weren't sharing with any other lexical analyzer), and so that OS X 10.3.9's run-time linker doesn't get upset at finding them defined in libethereal and the MATE plugin. Fix up indentation. svn path=/trunk/; revision=15961
Diffstat (limited to 'plugins/mate/mate_parser.l')
-rw-r--r--plugins/mate/mate_parser.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mate/mate_parser.l b/plugins/mate/mate_parser.l
index 2660b655c4..3aeb2235bb 100644
--- a/plugins/mate/mate_parser.l
+++ b/plugins/mate/mate_parser.l
@@ -40,13 +40,13 @@
void MateParseTrace(FILE*,char*);
#define MAX_INCLUDE_DEPTH 10
- YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
- int include_stack_ptr = 0;
+ static YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
+ static int include_stack_ptr = 0;
- void* pParser;
- mate_config_frame* current_frame;
+ static void* pParser;
+ static mate_config_frame* current_frame;
- mate_config* mc;
+ static mate_config* mc;
#define MATE_PARSE(token_type) MateParser(pParser, (token_type), g_strdup(yytext), mc );