|
Last change
on this file since 553 was 354, checked in by stevenhl, 17 years ago |
|
Import untested baseline cmedia sources, work products and binaries
Binaries and work products should be deleted from repository.
once new builds are verified to work.
|
|
File size:
901 bytes
|
| Line | |
|---|
| 1 | /* $Id: cpp.cpp,v 1.1 2000/04/23 14:55:39 ktk Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /* CPP.CPP - Replacement runtime routines for C++
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | #include <malloc.h>
|
|---|
| 7 | #include <include.h>
|
|---|
| 8 |
|
|---|
| 9 | extern "C" void __wcpp_2_undefed_cdtor_(void)
|
|---|
| 10 | {
|
|---|
| 11 | int3();
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | extern "C" void __wcpp_2_undefined_member_function_(void)
|
|---|
| 15 | {
|
|---|
| 16 | int3();
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | extern "C" void __wcpp_2_pure_error_(void)
|
|---|
| 20 | {
|
|---|
| 21 | int3();
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | extern "C" void __wcpp_2_undef_vfun_(void)
|
|---|
| 25 | {
|
|---|
| 26 | int3();
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | extern "C" void __wcpp_4_undefed_cdtor_(void)
|
|---|
| 30 | {
|
|---|
| 31 | int3();
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | extern "C" void __wcpp_4_undefined_member_function_(void)
|
|---|
| 35 | {
|
|---|
| 36 | int3();
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
| 39 | extern "C" void __wcpp_4_pure_error_(void)
|
|---|
| 40 | {
|
|---|
| 41 | int3();
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 | extern "C" void __wcpp_4_undef_vfun_(void)
|
|---|
| 45 | {
|
|---|
| 46 | int3();
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|
| 49 | void* operator new(unsigned u)
|
|---|
| 50 | {
|
|---|
| 51 | return malloc(u);
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | void operator delete(void *p)
|
|---|
| 55 | {
|
|---|
| 56 | free(p);
|
|---|
| 57 | }
|
|---|
| 58 |
|
|---|
| 59 | void *operator new(unsigned u, void near *p)
|
|---|
| 60 | {
|
|---|
| 61 | return u ? p : NULL;
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.