| OLD | NEW |
| 1 #include <stddef.h> | 1 #include <stddef.h> |
| 2 | 2 |
| 3 class foo { | 3 class foo { |
| 4 public: | 4 public: |
| 5 foo (int); | 5 foo (int); |
| 6 foo (int, const char *); | 6 foo (int, const char *); |
| 7 foo (foo&); | 7 foo (foo&); |
| 8 ~foo (); | 8 ~foo (); |
| 9 | 9 |
| 10 void operator * (foo&); | 10 void operator * (foo&); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void operator delete[] (void *); | 51 void operator delete[] (void *); |
| 52 /**/ operator int (); | 52 /**/ operator int (); |
| 53 /**/ operator char* (); | 53 /**/ operator char* (); |
| 54 | 54 |
| 55 int foofunc (int); // forced to have int return type, which is required | 55 int foofunc (int); // forced to have int return type, which is required |
| 56 int foofunc (int, signed char *); // forced to have int return type, which is
required | 56 int foofunc (int, signed char *); // forced to have int return type, which is
required |
| 57 int ifoo; | 57 int ifoo; |
| 58 const char *ccpfoo; | 58 const char *ccpfoo; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #ifdef usestubs | |
| 62 extern "C" { | |
| 63 void set_debug_traps(); | |
| 64 void breakpoint(); | |
| 65 }; | |
| 66 #endif | |
| 67 | |
| 68 int main () { | 61 int main () { |
| 69 #ifdef usestubs | |
| 70 set_debug_traps(); | |
| 71 breakpoint(); | |
| 72 #endif | |
| 73 int z=3; | 62 int z=3; |
| 74 } | 63 } |
| 75 | 64 |
| 76 foo::foo (int i) { ifoo = i;} | 65 foo::foo (int i) { ifoo = i;} |
| 77 foo::foo (int i, const char *ccp) { ifoo = i; ccpfoo = ccp; } | 66 foo::foo (int i, const char *ccp) { ifoo = i; ccpfoo = ccp; } |
| 78 foo::foo (foo& afoo) { afoo.ifoo = 0; } | 67 foo::foo (foo& afoo) { afoo.ifoo = 0; } |
| 79 foo::~foo () {} | 68 foo::~foo () {} |
| 80 | 69 |
| 81 void foo::operator * (foo& afoo) { afoo.ifoo = 0; } | 70 void foo::operator * (foo& afoo) { afoo.ifoo = 0; } |
| 82 void foo::operator % (foo& afoo) { afoo.ifoo = 0; } | 71 void foo::operator % (foo& afoo) { afoo.ifoo = 0; } |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 long * dm_type_long_star (long * p) { return p; } | 186 long * dm_type_long_star (long * p) { return p; } |
| 198 int dm_type_short (short i) { return i; } | 187 int dm_type_short (short i) { return i; } |
| 199 int dm_type_long (long i) { return i; } | 188 int dm_type_long (long i) { return i; } |
| 200 int dm_type_unsigned_int (unsigned int i) { return i; } | 189 int dm_type_unsigned_int (unsigned int i) { return i; } |
| 201 int dm_type_unsigned_short (unsigned short i) { return i; } | 190 int dm_type_unsigned_short (unsigned short i) { return i; } |
| 202 int dm_type_unsigned_long (unsigned long i) { return i; } | 191 int dm_type_unsigned_long (unsigned long i) { return i; } |
| 203 int dm_type_void (void) { return 0; } | 192 int dm_type_void (void) { return 0; } |
| 204 void * dm_type_void_star (void * p) { return p; } | 193 void * dm_type_void_star (void * p) { return p; } |
| 205 typedef int myint; | 194 typedef int myint; |
| 206 int dm_type_typedef (myint i) { return i; } | 195 int dm_type_typedef (myint i) { return i; } |
| OLD | NEW |