pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/str.h


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/str.h
Date: Tue, 01 Mar 2005 03:16:38 -0500

Index: pspp/src/str.h
diff -u pspp/src/str.h:1.6 pspp/src/str.h:1.7
--- pspp/src/str.h:1.6  Mon Nov 15 09:51:22 2004
+++ pspp/src/str.h      Tue Mar  1 08:16:16 2005
@@ -127,49 +127,49 @@
 void st_bare_pad_len_copy (char *dest, const char *src, size_t n, size_t len);
 void st_pad_copy (char *dest, const char *src, size_t n);
 
-/* Lengthed strings. */
-struct len_string 
+/* Fixed-length strings. */
+struct fixed_string 
   {
     char *string;
     size_t length;
   };
 
-void ls_create (struct len_string *, const char *);
-void ls_create_buffer (struct len_string *,
+void ls_create (struct fixed_string *, const char *);
+void ls_create_buffer (struct fixed_string *,
                       const char *, size_t len);
-void ls_init (struct len_string *, const char *, size_t);
-void ls_shallow_copy (struct len_string *, const struct len_string *);
-void ls_destroy (struct len_string *);
-
-void ls_null (struct len_string *);
-int ls_null_p (const struct len_string *);
-int ls_empty_p (const struct len_string *);
-
-size_t ls_length (const struct len_string *);
-char *ls_c_str (const struct len_string *);
-char *ls_end (const struct len_string *);
+void ls_init (struct fixed_string *, const char *, size_t);
+void ls_shallow_copy (struct fixed_string *, const struct fixed_string *);
+void ls_destroy (struct fixed_string *);
+
+void ls_null (struct fixed_string *);
+int ls_null_p (const struct fixed_string *);
+int ls_empty_p (const struct fixed_string *);
+
+size_t ls_length (const struct fixed_string *);
+char *ls_c_str (const struct fixed_string *);
+char *ls_end (const struct fixed_string *);
 
 #if __GNUC__ > 1
 extern inline size_t
-ls_length (const struct len_string *st)
+ls_length (const struct fixed_string *st)
 {
   return st->length;
 }
 
 extern inline char *
-ls_c_str (const struct len_string *st)
+ls_c_str (const struct fixed_string *st)
 {
   return st->string;
 }
 
 extern inline char *
-ls_end (const struct len_string *st)
+ls_end (const struct fixed_string *st)
 {
   return st->string + st->length;
 }
 #endif
 
-/* Dynamic strings. */
+/* Variable length strings. */
 
 struct string
   {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]