From aaf99191c8c1f7640829b7d37d31ceedd9ffc31f Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Wed, 26 Apr 2006 22:41:16 +0000 Subject: include/asterisk/ael_structs.h: - protect against multiple includes of ael_structs.h - remove prototypes for unused or undeclared functions pbx/ael/ael.y - staticize functions as appropriate - constify arguments - remove useless extern pbx/ael/ael.flex - ifdef out unused functions pbx/pbx_ael.c - constify some variables and arguments - ifdef out unused functions - staticize functions as appropriate update generated files accordingly git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22654 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/ael_structs.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'include/asterisk/ael_structs.h') diff --git a/include/asterisk/ael_structs.h b/include/asterisk/ael_structs.h index ea10df9b2..104f97482 100644 --- a/include/asterisk/ael_structs.h +++ b/include/asterisk/ael_structs.h @@ -1,3 +1,6 @@ +#ifndef _ASTERISK_AEL_STRUCTS_H +#define _ASTERISK_AEL_STRUCTS_H + #if !defined(SOLARIS) && !defined(__CYGWIN__) #include #else @@ -113,6 +116,7 @@ struct pval typedef struct pval pval; +#if 0 pval *npval(pvaltype type, int first_line, int last_line, int first_column, int last_column); void linku1(pval *head, pval *tail); void print_pval_list(FILE *f, pval *item, int depth); @@ -122,9 +126,13 @@ struct pval *find_label_in_current_context(char *exten, char *label); struct pval *find_label_in_current_extension(char *label); int count_labels_in_current_context(char *label); struct pval *find_label_in_current_db(char *context, char *exten, char *label); -struct pval *ael2_parse(char *fname, int *errs); -void destroy_pval(pval *item); void ael2_print(char *fname, pval *tree); +#endif +struct pval *ael2_parse(char *fname, int *errs); /* in ael.flex */ +void destroy_pval(pval *item); + +extern char *prev_word; /* in ael.flex */ + #ifndef YY_TYPEDEF_YY_SCANNER_T #define YY_TYPEDEF_YY_SCANNER_T typedef void* yyscan_t; @@ -175,4 +183,4 @@ struct ael_extension int return_needed; }; - +#endif /* _ASTERISK_AEL_STRUCTS_H */ -- cgit v1.2.3