[asterisk-commits] branch group/new_loader_completion r29093 - in /team/group/new_loader_complet...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat May 20 13:11:26 MST 2006


Author: kpfleming
Date: Sat May 20 15:11:26 2006
New Revision: 29093

URL: http://svn.digium.com/view/asterisk?rev=29093&view=rev
Log:
make the aelparse build slightly less noisy (pbx_ael.c is not intended to be used quite this way)

Modified:
    team/group/new_loader_completion/pbx/pbx_ael.c
    team/group/new_loader_completion/utils/Makefile

Modified: team/group/new_loader_completion/pbx/pbx_ael.c
URL: http://svn.digium.com/view/asterisk/team/group/new_loader_completion/pbx/pbx_ael.c?rev=29093&r1=29092&r2=29093&view=diff
==============================================================================
--- team/group/new_loader_completion/pbx/pbx_ael.c (original)
+++ team/group/new_loader_completion/pbx/pbx_ael.c Sat May 20 15:11:26 2006
@@ -65,8 +65,6 @@
 #define DEBUG_TOKENS (1 << 1)
 #define DEBUG_MACROS (1 << 2)
 #define DEBUG_CONTEXTS (1 << 3)
-
-static int aeldebug = 0;
 
 static char *config = "extensions.ael";
 static char *registrar = "pbx_ael";
@@ -2415,6 +2413,7 @@
 	}
 }
 
+#ifndef STANDALONE_AEL
 static void ael2_semantic_check(pval *item, int *arg_errs, int *arg_warns, int *arg_notes)
 {
 	
@@ -2445,6 +2444,7 @@
 	*arg_warns = warns;
 	*arg_notes = notes;
 }
+#endif
 
 /* =============================================================================================== */
 /* "CODE" GENERATOR -- Convert the AEL representation to asterisk extension language */
@@ -3425,6 +3425,9 @@
 	}
 }
 
+#ifndef STANDALONE_AEL
+static int aeldebug = 0;
+
 /* interface stuff */
 
 static int pbx_load_module(void)
@@ -3510,9 +3513,6 @@
 	{ { "ael", "no", "debug", NULL }, ael2_no_debug, "Disable AEL debug messages"},
 };
 
-/*
- * Standard module functions ...
- */
 static int unload_module(void)
 {
 	ast_context_destroy(NULL, registrar);
@@ -3537,6 +3537,7 @@
 		.unload = unload_module,
 		.reload = reload,
 	       );
+#endif
 
 /* DESTROY the PVAL tree ============================================================================ */
 

Modified: team/group/new_loader_completion/utils/Makefile
URL: http://svn.digium.com/view/asterisk/team/group/new_loader_completion/utils/Makefile?rev=29093&r1=29092&r2=29093&view=diff
==============================================================================
--- team/group/new_loader_completion/utils/Makefile (original)
+++ team/group/new_loader_completion/utils/Makefile Sat May 20 15:11:26 2006
@@ -80,7 +80,7 @@
 	$(CC) $(CFLAGS) -I../pbx/ -c -o $@ $<
 
 pbx_ael.o: ../pbx/pbx_ael.c
-	$(CC) $(CFLAGS) -c -o $@ $<
+	$(CC) $(CFLAGS) -c -DSTANDALONE_AEL -o $@ $<
 
 aelparse : aelflex.o aelbison.o pbx_ael.o ael_main.o ast_expr2f.o ast_expr2.o
 	$(CC) $(CFLAGS) -g -o aelparse aelflex.o aelbison.o ael_main.o pbx_ael.o ast_expr2f.o ast_expr2.o



More information about the asterisk-commits mailing list