diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-19 11:32:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-19 11:32:34 +0200 |
commit | e96f9f3869c6ea5803f5759bf1737547a46be22f (patch) | |
tree | e070f699751eebad032a47f118293ef219f1e147 /src/lex.c | |
parent | 0d1af7a8c8e163250e940833d646a12852aa9e5b (diff) | |
download | jwm-e96f9f3869c6ea5803f5759bf1737547a46be22f.tar.gz |
Change function declaration style
This is a very sweeping change, but I feel that it is necessary.
Diffstat (limited to 'src/lex.c')
-rw-r--r-- | src/lex.c | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -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); |