[asterisk-commits] trunk r22678 - in /trunk/pbx/ael: ael.flex ael_lex.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Apr 26 16:08:48 MST 2006


Author: rizzo
Date: Wed Apr 26 18:08:47 2006
New Revision: 22678

URL: http://svn.digium.com/view/asterisk?rev=22678&view=rev
Log:
staticize some variables


Modified:
    trunk/pbx/ael/ael.flex
    trunk/pbx/ael/ael_lex.c

Modified: trunk/pbx/ael/ael.flex
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael.flex?rev=22678&r1=22677&r2=22678&view=diff
==============================================================================
--- trunk/pbx/ael/ael.flex (original)
+++ trunk/pbx/ael/ael.flex Wed Apr 26 18:08:47 2006
@@ -34,9 +34,9 @@
 
 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 @@
 	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;
 
 %}
 

Modified: trunk/pbx/ael/ael_lex.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael_lex.c?rev=22678&r1=22677&r2=22678&view=diff
==============================================================================
--- trunk/pbx/ael/ael_lex.c (original)
+++ trunk/pbx/ael/ael_lex.c Wed Apr 26 18:08:47 2006
@@ -669,9 +669,9 @@
 
 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 @@
 	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 */



More information about the asterisk-commits mailing list