ASTCFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG)
-ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/autoconfig.h
-
ifeq ($(AST_DEVMODE),yes)
ASTCFLAGS+=-Werror -Wunused $(AST_DECLARATION_AFTER_STATEMENT)
endif
# the GNU General Public License
#
-ifneq ($(findstring MALLOC_DEBUG,$(MENUSELECT_CFLAGS)),)
- ifeq ($(findstring astmm.h,$(ASTCFLAGS)),)
- ASTCFLAGS+=-include $(ASTTOPDIR)/include/asterisk/astmm.h
- endif
-endif
-
ifeq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),)
ASTCFLAGS+=${GC_CFLAGS}
endif
#ifndef _ASTERISK_H
#define _ASTERISK_H
-/* The include of 'autoconfig.h' is not necessary for any modules that
- are part of the Asterisk source tree, because the top-level Makefile
- will forcibly include that header in all compilations before all
- other headers (even system headers). However, leaving this here will
- help out-of-tree module builders, and doesn't cause any harm for the
- in-tree modules.
-*/
#include "asterisk/autoconfig.h"
+#if !defined(STANDALONE_AEL) && defined(MALLOC_DEBUG)
+#include "asterisk/astmm.h"
+#endif
+
#include "asterisk/compat.h"
#include "asterisk/paths.h"
#include "asterisk.h"
-#ifndef STANDALONE
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#endif
#include "asterisk.h"
-#ifndef STANDALONE
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#endif
#include "asterisk.h"
-#ifndef STANDALONE
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#endif
#include "asterisk.h"
-#ifndef STANDALONE
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#endif
/*LINTLIBRARY*/
+#include "asterisk.h"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "private.h"
#include "tzfile.h"
-#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
%option bison-locations
%{
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include "asterisk.h"
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#endif
#include <stdio.h>
#include <stdlib.h>
#include "asterisk.h"
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#endif
#include <stdio.h>
#include <stdlib.h>
* bison-locations is probably not needed.
*/
#line 63 "ael.flex"
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include "asterisk.h"
+#if !defined(STANDALONE_AEL)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#endif
#include <sys/types.h>
#include <stdlib.h>
ast_expr2.c: ../main/ast_expr2.c
@cp $< $@
+ast_expr2.o: ASTCFLAGS+=-DSTANDALONE_AEL
+
ast_expr2f.c: ../main/ast_expr2f.c
@cp $< $@
aelbison.c: ../pbx/ael/ael.tab.c
@cp $< $@
aelbison.o: aelbison.c ../pbx/ael/ael.tab.h ../include/asterisk/ael_structs.h
-aelbison.o: ASTCFLAGS+=-I../pbx
+aelbison.o: ASTCFLAGS+=-I../pbx -DSTANDALONE_AEL
pbx_ael.c: ../pbx/pbx_ael.c
@cp $< $@
pbx_ael.o: ASTCFLAGS+=-DSTANDALONE_AEL
ael_main.o: ael_main.c ../include/asterisk/ael_structs.h
+ael_main.o: ASTCFLAGS+=-DSTANDALONE_AEL
aelparse.c: ../pbx/ael/ael_lex.c
@cp $< $@
+#include "asterisk.h"
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
char ast_config_AST_CONFIG_DIR[PATH_MAX];
char ast_config_AST_VAR_DIR[PATH_MAX];
-void ast_add_profile(void);
void ast_cli_register_multiple(void);
-void ast_register_file_version(void);
-void ast_unregister_file_version(void);
int ast_add_extension2(struct ast_context *con,
int replace, const char *extension, int priority, const char *label, const char *callerid,
const char *application, void *data, void (*datad)(void *),
return (struct ast_app*)1; /* so as not to trigger an error */
}
-void ast_add_profile(void)
-{
- if (!no_comp)
- printf("Executed ast_add_profile();\n");
-}
-
int ast_loader_register(int (*updater)(void))
{
return 1;
printf("Executed ast_cli_register_multiple();\n");
}
-void ast_register_file_version(void)
-{
- /* if(!no_comp)
- printf("Executed ast_register_file_version();\n"); */
- /* I'm erasing this, because I don't think anyone really ever needs to see it anyway */
-}
-
-void ast_unregister_file_version(void)
-{
- /* if(!no_comp)
- printf("Executed ast_unregister_file_version();\n"); */
- /* I'm erasing this, because I don't think anyone really ever needs to see it anyway */
-
-}
void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count);
void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count)
{