mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Conf: Better error message when reading iproute2 config
Reported by: Martin Weinelt <martin@darmstadt.freifunk.net>
This commit is contained in:
		
							
								
								
									
										10
									
								
								conf/conf.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								conf/conf.h
									
									
									
									
									
								
							@@ -198,11 +198,11 @@ struct symbol *cf_localize_symbol(struct symbol *sym);
 | 
			
		||||
 * Result: Pointer to the newly defined symbol. If we are in the top-level
 | 
			
		||||
 * scope, it's the same @sym as passed to the function.
 | 
			
		||||
 */
 | 
			
		||||
#define cf_define_symbol(sym_, type_, var_, def_) ({ \
 | 
			
		||||
    struct symbol *sym = cf_localize_symbol(sym_); \
 | 
			
		||||
    sym->class = type_; \
 | 
			
		||||
    sym->var_ = def_; \
 | 
			
		||||
    sym; })
 | 
			
		||||
#define cf_define_symbol(osym_, type_, var_, def_) ({ \
 | 
			
		||||
    struct symbol *sym_ = cf_localize_symbol(osym_); \
 | 
			
		||||
    sym_->class = type_; \
 | 
			
		||||
    sym_->var_ = def_; \
 | 
			
		||||
    sym_; })
 | 
			
		||||
 | 
			
		||||
void cf_push_scope(struct symbol *);
 | 
			
		||||
void cf_pop_scope(void);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user