]> 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 58769d5..b2bf0fd
@@ -1,37 +1,40 @@
-#ifndef _LIBMAPREAD_H_
-#define _LIBMAPREAD_H_
-//#include <stdlib.h>
-//#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <alloc.h>
-
-#include "src/lib/jsmn/jsmn.h"
-#include "src/lib/modex16.h"
-#include "src/lib/lib_head.h"
-
-#define DEBUG_MAPDATA
-#define DEBUG_MAPVAR
-#define DEBUG_DUMPVARS
-#define DEBUG_JS
-
+#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 huge *data;\r
+       byte    *data;\r
        tiles_t *tiles;\r
        int width;      //this has to be signed!\r
        int height;     //this has to be signed!\r
-} map_t;
-
-int jsoneq(const char huge *json, jsmntok_t huge *tok, const char huge *s);
-int dump(const char huge *js, jsmntok_t huge *t, size_t count, int indent, char *js_sv, map_t *map, int q);
-int loadmap(char *mn, map_t *map);
-
-#endif/*_LIBMAPREAD_H_*/
+} 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