diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
commit | b6ea75cfc9712b77a0886c4348d6fb519641e40e (patch) | |
tree | 65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/text_operations.c | |
parent | 71f70d3066d1c038e1794c4ffe804591eda3d1af (diff) |
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/text_operations.c')
-rw-r--r-- | zwgc/text_operations.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/zwgc/text_operations.c b/zwgc/text_operations.c index b5b791a..34f0d4c 100644 --- a/zwgc/text_operations.c +++ b/zwgc/text_operations.c @@ -23,9 +23,9 @@ static const char rcsid_text_operations_c[] = "$Id$"; #include "text_operations.h" #include "char_stack.h" -string lany(text_ptr, str) - string *text_ptr; - string str; +string +lany(string *text_ptr, + string str) { string result, whats_left; char *p = *text_ptr; @@ -40,9 +40,9 @@ string lany(text_ptr, str) return(result); } -string lbreak(text_ptr, set) - string *text_ptr; - character_class set; +string +lbreak(string *text_ptr, + const character_class set) { string result, whats_left; char *p = *text_ptr; @@ -57,9 +57,9 @@ string lbreak(text_ptr, set) return(result); } -string lspan(text_ptr, set) - string *text_ptr; - character_class set; +string +lspan(string *text_ptr, + character_class set) { string result, whats_left; char *p = *text_ptr; @@ -74,9 +74,9 @@ string lspan(text_ptr, set) return(result); } -string rany(text_ptr, str) - string *text_ptr; - string str; +string +rany(string *text_ptr, + string str) { string result, whats_left; string text = *text_ptr; @@ -92,9 +92,9 @@ string rany(text_ptr, str) return(result); } -string rbreak(text_ptr, set) - string *text_ptr; - character_class set; +string +rbreak(string *text_ptr, + character_class set) { string result, whats_left; string text = *text_ptr; @@ -110,9 +110,9 @@ string rbreak(text_ptr, set) return(result); } -string rspan(text_ptr, set) - string *text_ptr; - character_class set; +string +rspan(string *text_ptr, + character_class set) { string result, whats_left; string text = *text_ptr; |