Commit ee28ab54 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include sys/types.h.

Rewrite complex expressions so that vcc understands them.
parent cd4f58aa
/*
* $Id: parser.c,v 0.8 1993/10/15 11:24:10 ceder Exp $
* $Id: parser.c,v 0.9 1993/10/16 16:45:54 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -47,13 +47,14 @@
*/
static char *rcsid = "$Id: parser.c,v 0.8 1993/10/15 11:24:10 ceder Exp $";
static char *rcsid = "$Id: parser.c,v 0.9 1993/10/16 16:45:54 ceder Exp $";
#include "rcs.h"
USE(rcsid);
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#include <sys/types.h>
#include "s-string.h"
#include "s-collat-tabs.h"
......@@ -161,9 +162,8 @@ tokenize (const String source,
list_size = 0;
pos_in_string = 0;
while ( ! s_empty(a_token
= s_strtok (work_string, &pos_in_string,
separators)))
while (a_token = s_strtok (work_string, &pos_in_string, separators),
s_empty(a_token) == FALSE)
{
/* Make the token point into the original source string
* instead of the working string */
......@@ -293,7 +293,7 @@ match (Parse_token * source,
&& (! s_streq (source[word_no].word, EMPTY_STRING))
&& (s_usr_strhead (source[word_no].word,
pattern[word_no].word,
collat_tab)))
collat_tab) == TRUE))
{
word_no++;
}
......@@ -376,7 +376,7 @@ parse (String source_string,
if ( ( ! allow_trailing_words
&& first_non_matching < no_of_source_words)
|| ( number_of_words_must_match
|| ( number_of_words_must_match == TRUE
&& first_non_matching != count_words (match_table[index].tokens)))
{
continue; /* Try next entry in table */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment