Author: adrian.chadd
Date: Mon Feb  2 10:15:21 2009
New Revision: 13777

Modified:
    branches/LUSCA_HEAD/libmem/String.c
    branches/LUSCA_HEAD/libmem/String.h

Log:
const'ify String



Modified: branches/LUSCA_HEAD/libmem/String.c
==============================================================================
--- branches/LUSCA_HEAD/libmem/String.c (original)
+++ branches/LUSCA_HEAD/libmem/String.c Mon Feb  2 10:15:21 2009
@@ -133,7 +133,7 @@
   * This routine REQUIRES the string to be something and not NULL
   */
  char *
-stringDupToCOffset(String *s, int offset)
+stringDupToCOffset(const String *s, int offset)
  {
        char *d;
        assert(s->buf);
@@ -145,13 +145,13 @@
  }

  char *
-stringDupToC(String *s)
+stringDupToC(const String *s)
  {
        return stringDupToCOffset(s, 0);
  }

  char *
-stringDupSubstrToC(String *s, int len)
+stringDupSubstrToC(const String *s, int len)
  {
        char *d;
        int l = XMIN(len, s->len);

Modified: branches/LUSCA_HEAD/libmem/String.h
==============================================================================
--- branches/LUSCA_HEAD/libmem/String.h (original)
+++ branches/LUSCA_HEAD/libmem/String.h Mon Feb  2 10:15:21 2009
@@ -28,9 +28,9 @@
  extern void stringClean(String * s);
  extern void stringReset(String * s, const char *str);
  extern void stringAppend(String * s, const char *buf, int len);
-extern char * stringDupToC(String *s);
-extern char * stringDupToCOffset(String *s, int offset);
-extern char * stringDupSubstrToC(String *s, int len);
+extern char * stringDupToC(const String *s);
+extern char * stringDupToCOffset(const String *s, int offset);
+extern char * stringDupSubstrToC(const String *s, int len);
  extern int strChr(String *s, char c);
  extern int strRChr(String *s, char c);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to