]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/mapread.h
scroll.exe works again .... hmmm
[16.git] / src / lib / mapread.h
old mode 100644 (file)
new mode 100755 (executable)
index dbb4bfa..b2bf0fd
@@ -1,32 +1,40 @@
-#ifndef _LIBMAPREAD_H_
-#define _LIBMAPREAD_H_
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include "src/lib/jsmn/jsmn.h"
-#include "src/lib/modex16.h"
-
-static char *js_sv;
-//byte bgdata[4096];
-
+#ifndef _LIBMAPREAD_H_\r
+#define _LIBMAPREAD_H_\r
+//#include <stdlib.h>\r
+//#include <stdio.h>\r
+#include <string.h>\r
+#include <errno.h>\r
+#include <malloc.h>\r
+\r
+#include "src/lib/jsmn/jsmn.h"\r
+#include "src/lib/modex16.h"\r
+#include "src/lib/16_head.h"\r
+\r
+//#define DEBUG_MAPDATA\r
+//#define DEBUG_MAPVAR\r
+//#define DEBUG_DUMPVARS\r
+//#define DEBUG_JS\r
+\r
 typedef struct {\r
-       bitmap_t *data;
+       bitmap_t huge *btdata;\r
+       planar_buf_t huge *data;\r
        word tileHeight;\r
        word tileWidth;\r
        unsigned int rows;\r
        unsigned int cols;\r
+       boolean debug_text;     //show the value of the tile! wwww\r
+       byte *debug_data;\r
 } tiles_t;\r
 \r
 typedef struct {\r
        byte    *data;\r
        tiles_t *tiles;\r
-       int width;\r
-       int height;\r
-} map_t;
-
-static int jsoneq(const char *json, jsmntok_t *tok, const char *s);
-static int dump(const char *js, jsmntok_t *t, size_t count, int indent, /*char *js_sv,*/ map_t *map, int q/*, word w*/);
-static int loadmap(char *mn, map_t *map/*, word w*/);
-
-#endif/*_LIBMAPREAD_H_*/
+       int width;      //this has to be signed!\r
+       int height;     //this has to be signed!\r
+} map_t;\r
+\r
+int jsoneq(const char *json, jsmntok_t *tok, const char *s);\r
+word dump(const char *js, jsmntok_t *t, size_t count, word indent, char *js_sv, map_t *map, dword q);\r
+int loadmap(char *mn, map_t *map);\r
+\r
+#endif/*_LIBMAPREAD_H_*/\r