]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
staticize some variables
authorLuigi Rizzo <rizzo@icir.org>
Wed, 26 Apr 2006 23:08:47 +0000 (23:08 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 26 Apr 2006 23:08:47 +0000 (23:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22678 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/ael/ael.flex
pbx/ael/ael_lex.c

index 746930c49027f9dddbca71e7f468acd58e563635..9466c6c45a5306c93e3c3ce54a47673dffef9cf7 100644 (file)
@@ -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;
 
 %}
 
index 49087ddea0504a22666a7ce39a7f2a343573a4e4..3e6ced1368d14d54c3296829fc8731c43babfc2a 100644 (file)
@@ -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 */