Mercurial > ~dholland > hg > tradcpp > index.cgi
view utils.h @ 8:97243badae69
split place stuff to its own file
author | David A. Holland |
---|---|
date | Sun, 19 Dec 2010 19:15:55 -0500 |
parents | 0601b6e8e53d |
children | 9dda765ee85c |
line wrap: on
line source
#include <stdbool.h> #include <stddef.h> struct place; #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0])) void *domalloc(size_t len); void *dorealloc(void *ptr, size_t len); char *dostrdup(const char *s); char *dostrdup2(const char *s, const char *t); char *dostrdup3(const char *s, const char *t, const char *u); /* in place.c */ void complain(const struct place *, const char *fmt, ...); void complain_fail(void); bool complain_failed(void); /* in main.c */ void freestringlater(char *s); void die(void);