diff options
author | Ondrej Filip <feela@network.cz> | 2012-08-07 11:15:23 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2012-08-07 11:15:23 +0200 |
commit | 60c412b9368fd7c3b0a8df2200f02140adcb0cf3 (patch) | |
tree | 237d3c0b8aa86c6f3a88a76141ab51ca94b1fcd7 /conf/conf.h | |
parent | 3fe1d9e4a40663b93b59f5b6f9d61af9dc6a8ae6 (diff) | |
parent | 94e2f1c111721d6213ea65cac5c53036e38e3973 (diff) |
Merge branch 'master' of ssh://git.nic.cz/birdv1.3.8
Diffstat (limited to 'conf/conf.h')
-rw-r--r-- | conf/conf.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/conf/conf.h b/conf/conf.h index b4ec3157..c76832b6 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -12,7 +12,6 @@ #include "lib/resource.h" #include "lib/timer.h" -#define BIRD_FNAME_MAX 255 /* Would be better to use some UNIX define */ /* Configuration structure */ @@ -91,7 +90,6 @@ void cfg_copy_list(list *dest, list *src, unsigned node_size); /* Lexer */ extern int (*cf_read_hook)(byte *buf, unsigned int max, int fd); -extern int (*cf_open_hook)(char *filename); struct symbol { struct symbol *next; @@ -117,12 +115,14 @@ struct symbol { #define SYM_VARIABLE 0x100 /* 0x100-0x1ff are variable types */ struct include_file_stack { - void *stack; /* Internal lexer state */ - unsigned int conf_lino; /* Current file lineno (at include) */ - char conf_fname[BIRD_FNAME_MAX]; /* Current file name */ - int conf_fd; /* Current file descriptor */ - struct include_file_stack *prev; - struct include_file_stack *next; + void *buffer; /* Internal lexer state */ + char *file_name; /* File name */ + int fd; /* File descriptor */ + int lino; /* Current line num */ + int depth; /* Include depth, 0 = cannot include */ + + struct include_file_stack *prev; /* Previous record in stack */ + struct include_file_stack *up; /* Parent (who included this file) */ }; extern struct include_file_stack *ifs; |