aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/util.h b/util.h
index db82c04..ef2f749 100644
--- a/util.h
+++ b/util.h
@@ -3,6 +3,8 @@
/* Mostly compatability stuff */
+#include <string.h>
+
#ifdef __GNUC__
#include <gem.h>
@@ -19,16 +21,12 @@
#endif /* __GNUC__ */
#ifndef WF_WXYWH
-#ifdef WF_WORKXYWH
#define WF_WXYWH WF_WORKXYWH
#endif
-#endif
#ifndef WF_CXYWH
-#ifdef WF_CURRXYWH
#define WF_CXYWH WF_CURRXYWH
#endif
-#endif
#define max(x,y) x>y ? x : y
#define min(x,y) x<y ? x : y
@@ -50,5 +48,13 @@ WORD tx,ty,tw,th;
}
#endif
+static void set_resource_string(OBJECT *tree, short obj, const char *string)
+{
+long addr;
+
+ /* What a freakin' nightmare... */
+ addr = tree[obj].ob_spec.index;
+ strcpy((char *)addr, string);
+}
#endif /* UTIL_WORM_HEADERS */