summaryrefslogtreecommitdiff
path: root/winhelp.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-12-04 21:12:40 +0000
committerSimon Tatham <anakin@pobox.com>2001-12-04 21:12:40 +0000
commit5e3a21913b6a47e78d3e4edd4238d028b90827b7 (patch)
treecfb3f25b5643cb957014f64aa831c27cf9a308eb /winhelp.c
parent087e9915b987f1cd6eb679521f87fa3e5b2b9d96 (diff)
downloadhalibut-5e3a21913b6a47e78d3e4edd4238d028b90827b7.zip
halibut-5e3a21913b6a47e78d3e4edd4238d028b90827b7.tar.gz
halibut-5e3a21913b6a47e78d3e4edd4238d028b90827b7.tar.bz2
halibut-5e3a21913b6a47e78d3e4edd4238d028b90827b7.tar.xz
This update should bring the Windows Help back end up to
near-complete functionality. All that's missing now is indexing and horizontal rules. [originally from svn r1449]
Diffstat (limited to 'winhelp.c')
-rw-r--r--winhelp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/winhelp.c b/winhelp.c
index ffbd5cd..95f0939 100644
--- a/winhelp.c
+++ b/winhelp.c
@@ -76,22 +76,11 @@
#include <time.h>
#include <stdarg.h>
+#include "buttress.h"
#include "winhelp.h"
#include "tree234.h"
-/* ----------------------------------------------------------------------
- * FIXME: remove this whole section when we integrate to Buttress.
- */
-#define smalloc malloc
-#define srealloc realloc
-#define sfree free
-#define mknew(type) ( (type *) smalloc (sizeof (type)) )
-#define mknewa(type, number) ( (type *) smalloc ((number) * sizeof (type)) )
-#define resize(array, len) ( srealloc ((array), (len) * sizeof (*(array))) )
-#define lenof(array) ( sizeof(array) / sizeof(*(array)) )
-char *dupstr(char *s) { char *r = mknewa(char, 1+strlen(s)); strcpy(r,s); return r; }
#define UNUSEDARG(x) ( (x) = (x) )
-/* ------------------------------------------------------------------- */
#define GET_32BIT_LSB_FIRST(cp) \
(((unsigned long)(unsigned char)(cp)[0]) | \