diff --git a/xyntax.c b/xyntax.c index 87f9b98..eb56a89 100644 --- a/xyntax.c +++ b/xyntax.c @@ -164,7 +164,7 @@ void syntax_define_default (int case_sensitive, int string_colour, int string_ef } void syntax_define_words (char * * word_array, int word_count, int word_colour, int word_effect) { - int word = 0; + int word; for (word = 0; word != word_count; ++word) { (void) syntax_define (0, 1, word_array [word], syntax_separator, '\0', word_colour, word_effect); diff --git a/xyntax.h b/xyntax.h index a0f79d1..9b93b87 100644 --- a/xyntax.h +++ b/xyntax.h @@ -19,24 +19,22 @@ extern int * syntax_colour; extern int * syntax_effect; extern char * syntax_separator; -extern int syntax_define (int, int, char *, char *, char, int, int); +extern int syntax_define (int enrange, int derange, char * begin, char * end, char escape, int colour, int effect); -extern int syntax_select (char *, int *); +extern int syntax_select (char * string, int * length); extern void syntax_delete (void); /* Simplification... */ -extern void syntax_define_style (int *, int *); +extern void syntax_define_separators (char * separator); -extern void syntax_define_separators (char *); +extern void syntax_define_default (int case_sensitive, int string_colour, int string_effect, int number_colour, int number_effect); -extern void syntax_define_default (int, int, int, int, int); +extern void syntax_define_words (char * * word_array, int word_count, int word_colour, int word_effect); -extern void syntax_define_words (char * *, int, int, int); +extern void syntax_define_range (char * range_begin, char * range_end, char range_escape, int range_colour, int range_effect); -extern void syntax_define_range (char *, char *, char, int, int); - -extern void syntax_define_operators (char *, int, int); +extern void syntax_define_operators (char * operator_array, int operator_colour, int operator_effect); #endif