From df5635d844c990464a3ac26adbd079be80554eaf Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Wed, 26 Apr 2006 23:08:47 +0000 Subject: [PATCH] staticize some variables git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22678 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/ael/ael.flex | 10 +++++----- pbx/ael/ael_lex.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex index 746930c490..9466c6c45a 100644 --- a/pbx/ael/ael.flex +++ b/pbx/ael/ael.flex @@ -34,9 +34,9 @@ static int pbcpos = 0; static int parencount = 0; static int commaout = 0; -int my_lineno = 1; -int my_col = 0; -char *my_file = 0; +static int my_lineno = 1; +static int my_col = 0; +static char *my_file = 0; char *prev_word; #define MAX_INCLUDE_DEPTH 50 @@ -53,8 +53,8 @@ struct stackelement { int colno; YY_BUFFER_STATE bufstate; }; -struct stackelement include_stack[MAX_INCLUDE_DEPTH]; -int include_stack_index = 0; +static struct stackelement include_stack[MAX_INCLUDE_DEPTH]; +static int include_stack_index = 0; %} diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c index 49087ddea0..3e6ced1368 100644 --- a/pbx/ael/ael_lex.c +++ b/pbx/ael/ael_lex.c @@ -669,9 +669,9 @@ static int pbcpos = 0; static int parencount = 0; static int commaout = 0; -int my_lineno = 1; -int my_col = 0; -char *my_file = 0; +static int my_lineno = 1; +static int my_col = 0; +static char *my_file = 0; char *prev_word; #define MAX_INCLUDE_DEPTH 50 @@ -688,8 +688,8 @@ struct stackelement { int colno; YY_BUFFER_STATE bufstate; }; -struct stackelement include_stack[MAX_INCLUDE_DEPTH]; -int include_stack_index = 0; +static struct stackelement include_stack[MAX_INCLUDE_DEPTH]; +static int include_stack_index = 0; /* %option yylineno I've tried hard, but haven't been able to use this */