reorganized file layout (part 2: edits)
[org.ibex.core.git] / src / org / ibex / graphics / Freetype.c
index 2a1c798..f65f5c8 100644 (file)
@@ -3,6 +3,8 @@
 #include <unistd.h>
 #include <freetype/freetype.h>
 
+char *user_info[1024];
+
 /* NOTE: _user_info is defined in crt0.c. It points to a 4096 byte
    block of memory that contains 1024 32-bit values that can be set
    with the setUserInfo() method of MIPSEmu.
@@ -34,8 +36,6 @@
 
 */
 
-extern char *user_info[1024];
-
 #define FT_Check(expr) do { \
     if((expr) != 0) { \
         errprint(#expr " failed\n"); \
@@ -105,3 +105,12 @@ if (old_glyph_index != -1) {
 }
 old_glyph_index = glyph_index;
 */
+
+
+extern int mspack_main();
+int main(int argc, char **argv) {
+  if(argc < 1) return 1;
+  if(strcmp(argv[0],"mspack")==0) return mspack_main();
+  if(strcmp(argv[0],"freetype")==0) return freetype_main();
+  return 1;
+}