aboutsummaryrefslogtreecommitdiff
path: root/src/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lex.c')
-rw-r--r--src/lex.c24
1 files changed, 18 insertions, 6 deletions
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);