#define FILENAME_1 "data/spri/chikyuu.vrs"\r
#define FILENAME_2 "data/test.map"\r
#else\r
-#define FILENAME_1 "data/koishi~.pcx"\r
+#define FILENAME_1 "data/spri/chikyuu.sht"\r
#define FILENAME_2 "data/test.map"\r
#endif\r
\r
#ifdef INITBBUF\r
INITBBUF\r
#endif\r
- //0000mmblocktype far *scan;\r
\r
char bakapee1[64] = FILENAME_1;\r
char bakapee2[64] = FILENAME_2;\r
printf("====================================load end===================================\n");\r
}\r
#ifdef BUFFDUMP\r
- printf("contents of the buffer\n[\n%.*s\n]\n", strlen(BBUFSTRING), BBUFSTRING);\r
+ {\r
+ size_t file_s;\r
+ FILE *fh;\r
+\r
+ if(!w) fh = fopen(bakapee1, "r");\r
+ else fh = fopen(bakapee2, "r");\r
+ file_s = filesize(fh);\r
+ fclose(fh);\r
+ printf("contents of the buffer\n[\n%.*s\n]\n", file_s, BBUFSTRING);\r
#if 0\r
//0000\r
- scan = gvar.mm.mmhead;\r
- while (scan->useptr != &BBUFNAME && scan)\r
- {\r
- scan = scan->next;\r
- }\r
- printf("\n %Fp %Fp\n", scan->useptr, &BBUFNAME);\r
- printf("\nstrlen of buffer = %zu\n", strlen(BBUFSTRING));\r
- printf("length of buffer = %lu\n", scan->scan->length);\r
+// mmblocktype far *scan;\r
+// scan = gvar.mm.mmhead;\r
+// while (scan->useptr != &BBUFNAME && scan)\r
+// {\r
+// scan = scan->next;\r
+// }\r
+// printf("\n %Fp %Fp\n", scan->useptr, &BBUFNAME);\r
+ printf("\nstrlen of buffer = %zu\n", strlen(BBUFSTRING));\r
+ printf("length of buffer = %zu\n", file_s);\r
+// printf("length of buffer = %lu\n", scan->length);\r
#endif\r
+ }\r
#endif\r
#ifdef PRINTBBDUMP\r
PRINTBB;\r