From e96f9f3869c6ea5803f5759bf1737547a46be22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 11:32:34 +0200 Subject: Change function declaration style This is a very sweeping change, but I feel that it is necessary. --- src/lex.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'src/lex.c') diff --git a/src/lex.c b/src/lex.c index 0e0f65d..257c2d3 100644 --- a/src/lex.c +++ b/src/lex.c @@ -279,7 +279,9 @@ ReadDefault: * The entity value is returned in ch and the length of the entity * is returned as the value of the function. *****************************************************************************/ -int ParseEntity(const char *entity, char *ch, const char *file, int line) { +int +ParseEntity(const char *entity, char *ch, const char *file, int line) +{ char *temp; int x; @@ -316,7 +318,9 @@ int ParseEntity(const char *entity, char *ch, const char *file, int line) { /***************************************************************************** *****************************************************************************/ -int IsElementEnd(char ch) { +int +IsElementEnd(char ch) +{ switch(ch) { case ' ': case '\t': @@ -336,7 +340,9 @@ int IsElementEnd(char ch) { /***************************************************************************** *****************************************************************************/ -int IsAttributeEnd(char ch) { +int +IsAttributeEnd(char ch) +{ switch(ch) { case 0: case '\"': @@ -348,7 +354,9 @@ int IsAttributeEnd(char ch) { /***************************************************************************** *****************************************************************************/ -int IsValueEnd(char ch) { +int +IsValueEnd(char ch) +{ switch(ch) { case 0: case '<': @@ -360,7 +368,9 @@ int IsValueEnd(char ch) { /***************************************************************************** *****************************************************************************/ -int IsSpace(char ch, int *lineNumber) { +int +IsSpace(char ch, int *lineNumber) +{ switch(ch) { case ' ': case '\t': @@ -476,7 +486,9 @@ char *ReadAttributeValue(const char *line, const char *file, /***************************************************************************** *****************************************************************************/ -TokenType LookupType(const char *name, TokenNode *np) { +TokenType +LookupType(const char *name, TokenNode *np) +{ unsigned int x; Assert(name); -- cgit v1.2.3