From 519f0feb025be8a9ffeb8e2f37f7bfb89c359a18 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 21 Oct 1996 23:07:47 +0000 Subject: [PATCH] Less printouts git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@868 ec53bebd-3082-4978-b11e-865c3cabbd6b --- config_file.y | 29 ++++++++++++++++++++++++----- lib/krb5/config_file.y | 29 ++++++++++++++++++++++++----- 2 files changed, 48 insertions(+), 10 deletions(-) diff --git a/config_file.y b/config_file.y index 82fd938bb..d135169dd 100644 --- a/config_file.y +++ b/config_file.y @@ -37,8 +37,12 @@ file : section_list ; section_list : /* empty */ - | section rel_list section_list { - printf("section_list\n"); } + | section rel_list section_list + { +#ifdef DEBUG + printf("section_list\n"); +#endif + } ; section @@ -54,7 +58,11 @@ section cf->sections = p; csec = p; crel = &p->relations; - printf("section\n"); strcpy(section, $2); } +#ifdef DEBUG + printf("section\n"); +#endif + strcpy(section, $2); + } ; rel_list @@ -66,7 +74,12 @@ rel_sub : /* empty */ ; relation - : tag '=' value { printf("relation\n"); } + : tag '=' value + { +#ifdef DEBUG + printf("relation\n"); +#endif + } ; tag : STRING @@ -87,7 +100,9 @@ tag : STRING p->next = *crel; *crel = p; } +#ifdef DEBUG printf("tag\n"); +#endif } ; @@ -96,14 +111,18 @@ value : STRING (*crel)->value.type = krb5_config_value_string; (*crel)->value.data.string = $1; crel = &(*crel)->next; - printf("value/string\n"); +#ifdef DEBUG + printf("value/string\n"); +#endif } | '{' rel_list '}' { crel = rels[--relp]; (*crel)->value.type = krb5_config_value_list; crel = &(*crel)->next; +#ifdef DEBUG printf("value/list\n"); +#endif } ; diff --git a/lib/krb5/config_file.y b/lib/krb5/config_file.y index 82fd938bb..d135169dd 100644 --- a/lib/krb5/config_file.y +++ b/lib/krb5/config_file.y @@ -37,8 +37,12 @@ file : section_list ; section_list : /* empty */ - | section rel_list section_list { - printf("section_list\n"); } + | section rel_list section_list + { +#ifdef DEBUG + printf("section_list\n"); +#endif + } ; section @@ -54,7 +58,11 @@ section cf->sections = p; csec = p; crel = &p->relations; - printf("section\n"); strcpy(section, $2); } +#ifdef DEBUG + printf("section\n"); +#endif + strcpy(section, $2); + } ; rel_list @@ -66,7 +74,12 @@ rel_sub : /* empty */ ; relation - : tag '=' value { printf("relation\n"); } + : tag '=' value + { +#ifdef DEBUG + printf("relation\n"); +#endif + } ; tag : STRING @@ -87,7 +100,9 @@ tag : STRING p->next = *crel; *crel = p; } +#ifdef DEBUG printf("tag\n"); +#endif } ; @@ -96,14 +111,18 @@ value : STRING (*crel)->value.type = krb5_config_value_string; (*crel)->value.data.string = $1; crel = &(*crel)->next; - printf("value/string\n"); +#ifdef DEBUG + printf("value/string\n"); +#endif } | '{' rel_list '}' { crel = rels[--relp]; (*crel)->value.type = krb5_config_value_list; crel = &(*crel)->next; +#ifdef DEBUG printf("value/list\n"); +#endif } ;