str: Replace ss_alloc_substring() by ss_clone() and similarly with a pool.
[pspp] / src / libpspp / str.h
index c40915d939a3e3a9cd874dd985e5e0774f629ec7..b8bb6ffca2e43077d44dae9ae26ed6ec65e0e09e 100644 (file)
@@ -92,11 +92,10 @@ struct substring ss_tail (struct substring, size_t);
 /* Constructors and destructor that allocate and deallocate
    memory. */
 struct pool;
-void ss_alloc_substring (struct substring *, struct substring);
+struct substring ss_clone (struct substring);
+struct substring ss_clone_pool (struct substring, struct pool *);
 void ss_alloc_uninit (struct substring *, size_t);
 void ss_realloc (struct substring *, size_t);
-void ss_alloc_substring_pool (struct substring *, struct substring,
-                              struct pool *);
 void ss_alloc_uninit_pool (struct substring *, size_t, struct pool *);
 void ss_dealloc (struct substring *);