Moved get/set string to gom_modify.c.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 17 Sep 2002 15:47:12 +0000 (15:47 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 17 Sep 2002 15:47:12 +0000 (15:47 +0000)
gom/gom.c

index 0203fc6ec49af4bb2f1f250b93c9e11a61642d01..cf1876b4c7360a9b450a1b1aa2262b61a1c854c4 100644 (file)
--- a/gom/gom.c
+++ b/gom/gom.c
@@ -242,24 +242,3 @@ struct age_value* dup_age(struct age_value age)
   }
   return age_ptr;
 }
-
-char* gom_get_string(char** data)
-{
-  return *data;
-}
-
-char* gom_set_string(char** data, char* newvalue)
-{
-  char* result = NULL;
-  char* newptr = strdup(newvalue);
-  
-  if (!newptr)
-    MEMORY_ERROR;
-  else {
-    if (*data) free(*data);
-    *data = newptr;
-    result = *data;
-  }
-  
-  return result;
-}