diff options
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/config.Y | 6 | ||||
-rw-r--r-- | sysdep/unix/krt.Y | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sysdep/unix/config.Y b/sysdep/unix/config.Y index ccca4a62..1bffa322 100644 --- a/sysdep/unix/config.Y +++ b/sysdep/unix/config.Y @@ -24,7 +24,7 @@ CF_KEYWORDS(NAME, CONFIRM, UNDO, CHECK, TIMEOUT, DEBUG, LATENCY, LIMIT, WATCHDOG CF_GRAMMAR -CF_ADDTO(conf, log_config) +conf: log_config ; log_config: LOG log_file log_mask ';' { struct log_config *c = cfg_allocz(sizeof(struct log_config)); @@ -72,7 +72,7 @@ log_cat: ; -CF_ADDTO(conf, mrtdump_base) +conf: mrtdump_base ; mrtdump_base: MRTDUMP PROTOCOLS mrtdump_mask ';' { new_config->proto_default_mrtdump = $3; } @@ -84,7 +84,7 @@ mrtdump_base: ; -CF_ADDTO(conf, debug_unix) +conf: debug_unix ; debug_unix: DEBUG LATENCY bool { new_config->latency_debug = $3; } diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y index 98740b70..95b54d65 100644 --- a/sysdep/unix/krt.Y +++ b/sysdep/unix/krt.Y @@ -38,15 +38,15 @@ CF_GRAMMAR /* Kernel syncer protocol */ -CF_ADDTO(proto, kern_proto '}') +proto: kern_proto '}' ; kern_proto_start: proto_start KERNEL { this_proto = krt_init_config($1); } ; -CF_ADDTO(kern_proto, kern_proto_start proto_name '{') -CF_ADDTO(kern_proto, kern_proto kern_item ';') +kern_proto: kern_proto_start proto_name '{' ; +kern_proto: kern_proto kern_item ';' ; kern_mp_limit: /* empty */ { $$ = KRT_DEFAULT_ECMP_LIMIT; } @@ -80,13 +80,13 @@ kern_item: /* Kernel interface protocol */ -CF_ADDTO(proto, kif_proto '}') +proto: kif_proto '}' ; kif_proto_start: proto_start DEVICE { this_proto = kif_init_config($1); } ; -CF_ADDTO(kif_proto, kif_proto_start proto_name '{') -CF_ADDTO(kif_proto, kif_proto kif_item ';') +kif_proto: kif_proto_start proto_name '{' ; +kif_proto: kif_proto kif_item ';' ; kif_item: proto_item @@ -122,8 +122,8 @@ kif_iface: kif_iface_start iface_patt_list_nopx kif_iface_opt_list; -CF_ADDTO(dynamic_attr, KRT_SOURCE { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_SOURCE); }) -CF_ADDTO(dynamic_attr, KRT_METRIC { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_METRIC); }) +dynamic_attr: KRT_SOURCE { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_SOURCE); } ; +dynamic_attr: KRT_METRIC { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_KRT_METRIC); } ; CF_CODE |