summaryrefslogtreecommitdiff
path: root/zwgc/new_string.h
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 03:11:44 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 03:11:44 +0000
commitb6ea75cfc9712b77a0886c4348d6fb519641e40e (patch)
tree65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/new_string.h
parent71f70d3066d1c038e1794c4ffe804591eda3d1af (diff)
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/new_string.h')
-rw-r--r--zwgc/new_string.h12
1 files changed, 6 insertions, 6 deletions
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