From cfa453758938ef83bce5d63a96a887259d8b11a5 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 9 Nov 1989 07:26:05 +0000 Subject: fixes for array & problems --- zwgc/character_class.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'zwgc/character_class.c') diff --git a/zwgc/character_class.c b/zwgc/character_class.c index 79a6552..653e0e8 100644 --- a/zwgc/character_class.c +++ b/zwgc/character_class.c @@ -20,9 +20,15 @@ static char rcsid_character_class_c[] = "$Header$"; #include "character_class.h" +/* + * It may look like we are passing the cache by value, but since it's + * really an array we are passing by reference. C strikes again.... + */ + static character_class cache; -character_class *string_to_character_class(str) +/* character_class */ +char * string_to_character_class(str) string str; { int i; @@ -32,5 +38,5 @@ character_class *string_to_character_class(str) for (i=0; i