From b6ea75cfc9712b77a0886c4348d6fb519641e40e Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 21 Jan 2008 03:11:44 +0000 Subject: de K&Rify, fix prototypes --- zwgc/new_string.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'zwgc/new_string.h') diff --git a/zwgc/new_string.h b/zwgc/new_string.h index 2ad7851..ea10105 100644 --- a/zwgc/new_string.h +++ b/zwgc/new_string.h @@ -51,7 +51,7 @@ typedef char *string; * string_Copy("foo"). */ -extern string string__CreateFromData(); +extern string string__CreateFromData(char *, int); #ifdef DEBUG_MEMORY #define string_CreateFromData(data,length) (set_module(__FILE__,__LINE__),\ string__CreateFromData(data,length)) @@ -65,7 +65,7 @@ extern string string__CreateFromData(); * freed eventually. */ -extern string string__Copy(/* string s */); +extern string string__Copy(string); #ifdef DEBUG_MEMORY #define string_Copy(data) (set_module(__FILE__,__LINE__),\ string__Copy(data)) @@ -81,7 +81,7 @@ extern string string__Copy(/* string s */); * returns string_Copy("abcdef"). */ -extern string string__Concat(/* string a, b */); +extern string string__Concat(string, string); #ifdef DEBUG_MEMORY #define string_Concat(a,b) (set_module(__FILE__,__LINE__),\ string__Concat(a,b)) @@ -101,7 +101,7 @@ extern string string__Concat(/* string a, b */); * only faster. I.e., uses realloc instead of malloc+bcopy. */ -extern string string__Concat2(/* string a, b */); +extern string string__Concat2(string, string); #ifdef DEBUG_MEMORY #define string_Concat2(a,b) (set_module(__FILE__,__LINE__),\ string__Concat2(a,b)) @@ -118,7 +118,7 @@ extern string string__Concat2(/* string a, b */); * S is returned as a convenience. */ -extern string string_Downcase(); +extern string string_Downcase(string); /* * string string_Upcase(string s): @@ -129,6 +129,6 @@ extern string string_Downcase(); * S is returned as a convenience. */ -extern string string_Upcase(); +extern string string_Upcase(string); #endif -- cgit v1.2.3