aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-30 09:06:28 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-30 09:06:28 +0000
commit79b955ea6154ea51db1264212e89bd143e7f3b3e (patch)
tree7d8b7378d6467c4959860d5337b08249e24dfb11 /pbx
parent760c81788e798c2e4dedcd7ebd108c65f3194775 (diff)
comment some code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23550 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/ael/ael.flex16
-rw-r--r--pbx/ael/ael_lex.c16
2 files changed, 26 insertions, 6 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex
index 05112e9ab..b37557b0b 100644
--- a/pbx/ael/ael.flex
+++ b/pbx/ael/ael.flex
@@ -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 )
{
diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c
index c0e7f26f8..cb6389d75 100644
--- a/pbx/ael/ael_lex.c
+++ b/pbx/ael/ael_lex.c
@@ -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 )
{