/[global]/global/libutil/strbuf.h
ViewVC logotype

Diff of /global/libutil/strbuf.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by shigio, Tue Oct 4 07:59:04 2005 UTC revision 1.19 by shigio, Mon Oct 24 00:18:15 2005 UTC
# Line 97  typedef struct _strbuf { Line 97  typedef struct _strbuf {
97          }\          }\
98  } while (0)  } while (0)
99    
 #define strbuf_reset(sb) do {\  
         sb->curp = sb->sbuf;\  
         sb->alloc_failed = 0;\  
 } while (0)  
   
100  #define strbuf_puts0(sb, s) do {\  #define strbuf_puts0(sb, s) do {\
101          strbuf_puts(sb, s);\          strbuf_puts(sb, s);\
102          strbuf_putc(sb, '\0');\          strbuf_putc(sb, '\0');\
# Line 124  void strbuf_dump(char *); Line 119  void strbuf_dump(char *);
119  #endif  #endif
120  void __strbuf_expandbuf(STRBUF *, int);  void __strbuf_expandbuf(STRBUF *, int);
121  STRBUF *strbuf_open(int);  STRBUF *strbuf_open(int);
122    void strbuf_reset(STRBUF *);
123  void strbuf_clear(STRBUF *);  void strbuf_clear(STRBUF *);
124  void strbuf_nputs(STRBUF *, const char *, int);  void strbuf_nputs(STRBUF *, const char *, int);
125  void strbuf_puts(STRBUF *, const char *);  void strbuf_puts(STRBUF *, const char *);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26