]> 4ch.mooo.com Git - 16.git/blobdiff - src/maptest0.c
updated copyright www
[16.git] / src / maptest0.c
index e035015080c290fef607d158092602d878d602a2..3a05abdddf2c0d6640c437cc4261b1a12dbf3d7b 100755 (executable)
@@ -1,65 +1,65 @@
-/* Project 16 Source Code~
- * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
- *
- * This file is part of Project 16.
- *
- * Project 16 is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * Project 16 is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>, or
- * write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301 USA.
- *
- */
-
-#include <conio.h>
+/* Project 16 Source Code~\r
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
+\r
+#include <conio.h>\r
 #include "src/lib/fmapread.h"\r
-
-#define DUMP
-//#define DUMP_MAP
-
-void
+\r
+#define DUMP\r
+//#define DUMP_MAP\r
+\r
+void\r
 main(int argc, char *argv[])\r
 {\r
-       map_t map;
-       short i;
-       char *fmt = "Memory available = %u\n";
-       char *fmt0 = "Largest Contiguous Block of Memory available = %u\n";
-
-       fprintf(stderr, fmt, _memavl());
-       fprintf(stderr, fmt0, _memmax());
-       fprintf(stderr, "Size of map var = %u\n", _msize(&map));
-       fprintf(stderr, "program always crashes for some reason....");
-       getch();
-
-       fprintf(stderr, "loading~\n\n");
-       loadmap("data/tes0.map", &map);
-       fprintf(stderr, "\nokies~\n");
-       #ifdef DUMP
-       fprintf(stdout, "map.width=     %d\n", map.width);
-       fprintf(stdout, "map.height=    %d\n", map.height);
-       #ifdef DUMP_MAP
-       for(i=0; i<(map.width*map.height); i++)
-       {
-               fprintf(stdout, "%04d[%02d]", i, map.data[i]);
-               if(i && !(i%map.width)) fprintf(stdout, "\n");
-       }
-       fprintf(stdout, "\n");
-       #endif
-       fprintf(stdout, "&main()=%Fp\n", *argv[0]);
-       fprintf(stdout, "&map==%Fp\n", &map);
-       fprintf(stdout, "&map.tiles==%Fp\n", map.tiles);
-       fprintf(stdout, "&map.width==%Fp\n", map.width);
+       map_t map;\r
+       short i;\r
+       char *fmt = "Memory available = %u\n";\r
+       char *fmt0 = "Largest Contiguous Block of Memory available = %u\n";\r
+\r
+       fprintf(stderr, fmt, _memavl());\r
+       fprintf(stderr, fmt0, _memmax());\r
+       fprintf(stderr, "Size of map var = %u\n", _msize(&map));\r
+       fprintf(stderr, "program always crashes for some reason....");\r
+       getch();\r
+\r
+       fprintf(stderr, "loading~\n\n");\r
+       loadmap("data/tes0.map", &map);\r
+       fprintf(stderr, "\nokies~\n");\r
+       #ifdef DUMP\r
+       fprintf(stdout, "map.width=     %d\n", map.width);\r
+       fprintf(stdout, "map.height=    %d\n", map.height);\r
+       #ifdef DUMP_MAP\r
+       for(i=0; i<(map.width*map.height); i++)\r
+       {\r
+               fprintf(stdout, "%04d[%02d]", i, map.data[i]);\r
+               if(i && !(i%map.width)) fprintf(stdout, "\n");\r
+       }\r
+       fprintf(stdout, "\n");\r
+       #endif\r
+       fprintf(stdout, "&main()=%Fp\n", *argv[0]);\r
+       fprintf(stdout, "&map==%Fp\n", &map);\r
+       fprintf(stdout, "&map.tiles==%Fp\n", map.tiles);\r
+       fprintf(stdout, "&map.width==%Fp\n", map.width);\r
        fprintf(stdout, "&map.height==%Fp\n", map.height);\r
-       fprintf(stdout, "&map.data==%Fp\n", map.data);
-       #endif
-       fprintf(stdout, "okies~\n");
+       fprintf(stdout, "&map.data==%Fp\n", map.data);\r
+       #endif\r
+       fprintf(stdout, "okies~\n");\r
 }\r