]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
comment some code
authorLuigi Rizzo <rizzo@icir.org>
Sun, 30 Apr 2006 09:06:28 +0000 (09:06 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sun, 30 Apr 2006 09:06:28 +0000 (09:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23550 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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

index 05112e9ab57d97b36703cd3f6065cfdf17e6dbaa..b37557b0be9a134f2100575ec9651d26ecfae23c 100644 (file)
@@ -493,7 +493,19 @@ static int c_prevword(void)
 }
 
 
-/* used by the bison code */
+/*
+ * The following three functions, reset_*, are used in the bison
+ * code to switch context. As a consequence, we need to
+ * declare them global and add a prototype so that the
+ * compiler does not complain.
+ *
+ * NOTE: yyg is declared because it is used in the BEGIN macros,
+ * though that should be hidden as the macro changes
+ * depending on the flex options that we use - in particular,
+ * %reentrant changes the way the macro is declared;
+ * without %reentrant, BEGIN uses yystart instead of yyg
+ */
+
 void reset_parencount(yyscan_t yyscanner );
 void reset_parencount(yyscan_t yyscanner )
 {
@@ -505,7 +517,6 @@ void reset_parencount(yyscan_t yyscanner )
        BEGIN(paren);
 }
 
-/* used by the bison code */
 void reset_semicount(yyscan_t yyscanner );
 void reset_semicount(yyscan_t yyscanner )
 {
@@ -514,7 +525,6 @@ void reset_semicount(yyscan_t yyscanner )
        BEGIN(semic);
 }
 
-/* used by the bison code */
 void reset_argcount(yyscan_t yyscanner );
 void reset_argcount(yyscan_t yyscanner )
 {
index c0e7f26f83490a841fca18d67906b93cc2429a49..cb6389d7566183a0c7fcdd03e33592f85c44ef05 100644 (file)
@@ -2781,7 +2781,19 @@ static int c_prevword(void)
 }
 
 
-/* used by the bison code */
+/*
+ * The following three functions, reset_*, are used in the bison
+ * code to switch context. As a consequence, we need to
+ * declare them global and add a prototype so that the
+ * compiler does not complain.
+ *
+ * NOTE: yyg is declared because it is used in the BEGIN macros,
+ * though that should be hidden as the macro changes
+ * depending on the flex options that we use - in particular,
+ * %reentrant changes the way the macro is declared;
+ * without %reentrant, BEGIN uses yystart instead of yyg
+ */
+
 void reset_parencount(yyscan_t yyscanner );
 void reset_parencount(yyscan_t yyscanner )
 {
@@ -2793,7 +2805,6 @@ void reset_parencount(yyscan_t yyscanner )
        BEGIN(paren);
 }
 
-/* used by the bison code */
 void reset_semicount(yyscan_t yyscanner );
 void reset_semicount(yyscan_t yyscanner )
 {
@@ -2802,7 +2813,6 @@ void reset_semicount(yyscan_t yyscanner )
        BEGIN(semic);
 }
 
-/* used by the bison code */
 void reset_argcount(yyscan_t yyscanner );
 void reset_argcount(yyscan_t yyscanner )
 {