diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-26 22:41:16 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-26 22:41:16 +0000 |
commit | 3a16c3d072f494bef8f6dec3867fcad2a1b12922 (patch) | |
tree | 3dbc61a46a707b51ccedb9d8c204c27e9073ea23 /include | |
parent | 471d31b385e4a5e3c9b7986e435f8d9db9a922e8 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@22654 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/ael_structs.h | 14 |
1 files changed, 11 insertions, 3 deletions
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 <err.h> #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 */ |