1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00

Make these static as noticed by Andrey

This commit is contained in:
Marcus Boerger
2003-09-02 14:11:53 +00:00
parent 9702c70a35
commit 7148cb9e73
2 changed files with 6 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ typedef struct _string {
int alloced;
} string;
void string_init(string *str)
static void string_init(string *str)
{
str->string = (char *) emalloc(1024);
str->len = 1;
@@ -77,7 +77,7 @@ void string_init(string *str)
*str->string = '\0';
}
string *string_printf(string *str, const char *format, ...)
static string *string_printf(string *str, const char *format, ...)
{
int len;
va_list arg;
@@ -99,7 +99,7 @@ string *string_printf(string *str, const char *format, ...)
return str;
}
string *string_write(string *str, char *buf, int len)
static string *string_write(string *str, char *buf, int len)
{
register int nlen = (str->len + len + (1024 - 1)) & ~(1024 - 1);
if (str->alloced < nlen) {

View File

@@ -69,7 +69,7 @@ typedef struct _string {
int alloced;
} string;
void string_init(string *str)
static void string_init(string *str)
{
str->string = (char *) emalloc(1024);
str->len = 1;
@@ -77,7 +77,7 @@ void string_init(string *str)
*str->string = '\0';
}
string *string_printf(string *str, const char *format, ...)
static string *string_printf(string *str, const char *format, ...)
{
int len;
va_list arg;
@@ -99,7 +99,7 @@ string *string_printf(string *str, const char *format, ...)
return str;
}
string *string_write(string *str, char *buf, int len)
static string *string_write(string *str, char *buf, int len)
{
register int nlen = (str->len + len + (1024 - 1)) & ~(1024 - 1);
if (str->alloced < nlen) {