3 static char ascii(char s) {
4 if(s < 0x20) return '.';
5 if(s > 0x7E) return '.';
9 void hexdump(void *d, int len) {
12 data = (unsigned char*)d;
13 for (off=0; off<len; off += 16) {
16 if((i+off)>=len) printf(" ");
17 else printf("%02x ",data[off+i]);
21 if((i+off)>=len) printf(" ");
22 else printf("%c",ascii(data[off+i]));
27 void tests_Native1__printSomething____V(void)
29 printf("printSomething: woot \\o/\n");
32 void tests_Native1__printSomething___I_V(int a)
34 printf("printSomething: 0x%08x\n", a);
37 void tests_Instance5__printX___I_V(int a)
39 printf("printX: 0x%08x\n", a);
42 void java_io_PrintStream__printf___I_V(int a)
44 printf("printstream: 0x%08x\n", a);
47 void java_io_PrintStream__println___Ljava_lang_String__V(const char *a)
53 unsigned int method_table_ptr;
57 void java_io_PrintStream__printf_1___Ljava_lang_String_Ljava_lang_Object__V
58 (struct integer *a1, const char *fmt)
60 printf(fmt, a1->value);
63 void java_io_PrintStream__printf_2___Ljava_lang_String_Ljava_lang_Object_Ljava_lang_Object__V
64 (struct integer *a2, struct integer *a1, const char *fmt)
66 printf(fmt, a1->value, a2->value);
70 java_io_PrintStream__printf_3___Ljava_lang_String_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object__V
71 (struct integer *a3, struct integer *a2, struct integer *a1, const char *fmt)
73 printf(fmt, a1->value, a2->value, a3->value);
76 void java_io_PrintStream__printf_4___Ljava_lang_String_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object__V
77 (struct integer *a4, struct integer *a3, struct integer *a2, struct integer *a1, const char *fmt)
79 printf(fmt, a1->value, a2->value, a3->value, a4->value);
82 void java_io_PrintStream__printf_5___Ljava_lang_String_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object_Ljava_lang_Object__V
83 (struct integer *a5, struct integer *a4, struct integer *a3, struct integer *a2, struct integer *a1, const char *fmt)
85 printf(fmt, a1->value, a2->value, a3->value, a4->value, a5->value);