summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/grammar.y5
-rw-r--r--src/scanner.l13
2 files changed, 11 insertions, 7 deletions
diff --git a/src/grammar.y b/src/grammar.y
index 8e3f324..fb2b4cc 100644
--- a/src/grammar.y
+++ b/src/grammar.y
@@ -1,4 +1,4 @@
-/* $Id: grammar.y,v 1.5 2001-09-16 20:08:24 rjkaes Exp $
+/* $Id: grammar.y,v 1.6 2001-11-25 02:20:54 rjkaes Exp $
*
* This is the grammar for tinyproxy's configuration file. It needs to be
* in sync with scanner.l. If you know more about yacc and lex than I do
@@ -174,7 +174,8 @@ string
extern unsigned int yylineno;
-void yyerror(char *s)
+void
+yyerror(char *s)
{
fprintf(stderr, "Line %d: %s\n", yylineno, s);
}
diff --git a/src/scanner.l b/src/scanner.l
index 0f4cf29..d6ba2be 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -1,4 +1,4 @@
-/* $Id: scanner.l,v 1.6 2001-10-25 17:27:39 rjkaes Exp $
+/* $Id: scanner.l,v 1.7 2001-11-25 02:20:54 rjkaes Exp $
*
* This builds the scanner for the tinyproxy configuration file. This
* file needs to stay in sync with grammar.y. If someone knows lex and yacc
@@ -125,7 +125,8 @@ word [^ \#'"\(\)\{\}\\;\n\t,|\.]
%%
-int check_reserved_words(char *token)
+int
+check_reserved_words(char *token)
{
int i;
@@ -138,7 +139,8 @@ int check_reserved_words(char *token)
return IDENTIFIER;
}
-static void append_string(int length, char *s)
+static void
+append_string(int length, char *s)
{
int to_copy = min(MAX_REGEXP_LEN - (tiny_str - tiny_buf) - 1, length);
@@ -147,9 +149,10 @@ static void append_string(int length, char *s)
*tiny_str = 0;
}
-static void append_char(char c)
+static void
+append_char(char c)
{
*tiny_str = c;
tiny_str++;
*tiny_str = 0;
-}
+} \ No newline at end of file