Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison utils.h @ 39:337110e7240a
Pass the size to free; it makes debug checking easier.
author | David A. Holland |
---|---|
date | Sat, 30 Mar 2013 21:17:47 -0400 |
parents | b156910b59b2 |
children | f185d1ac4db4 |
comparison
equal
deleted
inserted
replaced
38:b156910b59b2 | 39:337110e7240a |
---|---|
38 extern const char ws[]; | 38 extern const char ws[]; |
39 extern const char alnum[]; | 39 extern const char alnum[]; |
40 | 40 |
41 | 41 |
42 void *domalloc(size_t len); | 42 void *domalloc(size_t len); |
43 void *dorealloc(void *ptr, size_t len); | 43 void *dorealloc(void *ptr, size_t oldlen, size_t newlen); |
44 void dofree(void *ptr); | 44 void dofree(void *ptr, size_t len); |
45 | 45 |
46 char *dostrdup(const char *s); | 46 char *dostrdup(const char *s); |
47 char *dostrdup2(const char *s, const char *t); | 47 char *dostrdup2(const char *s, const char *t); |
48 char *dostrdup3(const char *s, const char *t, const char *u); | 48 char *dostrdup3(const char *s, const char *t, const char *u); |
49 char *dostrndup(const char *s, size_t len); | 49 char *dostrndup(const char *s, size_t len); |
50 void dostrfree(char *s); | |
50 | 51 |
51 size_t notrailingws(char *buf, size_t len); | 52 size_t notrailingws(char *buf, size_t len); |
52 bool is_identifier(const char *str); | 53 bool is_identifier(const char *str); |
53 | 54 |
54 /* in place.c */ | 55 /* in place.c */ |