Sfoglia il codice sorgente

ExpString_Append: take a const string

ambrop7 14 anni fa
parent
commit
2ab11aa48c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      misc/expstring.h

+ 2 - 2
misc/expstring.h

@@ -35,7 +35,7 @@ typedef struct {
 
 static int ExpString_Init (ExpString *c);
 static void ExpString_Free (ExpString *c);
-static int ExpString_Append (ExpString *c, char *str);
+static int ExpString_Append (ExpString *c, const char *str);
 static char * ExpString_Get (ExpString *c);
 
 int ExpString_Init (ExpString *c)
@@ -55,7 +55,7 @@ void ExpString_Free (ExpString *c)
     free(c->arr.v);
 }
 
-int ExpString_Append (ExpString *c, char *str)
+int ExpString_Append (ExpString *c, const char *str)
 {
     ASSERT(str)