]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/mapread.h
pbuf????
[16.git] / src / lib / mapread.h
old mode 100644 (file)
new mode 100755 (executable)
index ebacd10..3f9e3ac
@@ -1,37 +1,41 @@
-#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
+       planar_buf_t 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 far *data;\r
+       byte    *data;\r
        tiles_t *tiles;\r
-       unsigned int width;\r
-       unsigned int height;\r
-} map_t;
-
-int jsoneq(const char /*far*/ *json, jsmntok_t /*far*/ *tok, const char *s);
-int dump(const char /*far*/ *js, jsmntok_t /*far*/ *t, size_t count, int indent, char *js_sv, map_t *map, int q);
-int loadmap(char *mn, map_t *map);
-
-#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