2008-03-30 09:00:22 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "memfile.h"
|
|
|
|
#include "osdefs.h"
|
2010-05-11 10:46:55 +02:00
|
|
|
#if defined LINUX || defined DARWIN
|
2009-08-30 09:21:42 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
#elif defined WIN32
|
|
|
|
#include <io.h>
|
|
|
|
#endif
|
2014-08-23 10:57:13 +02:00
|
|
|
#include "sc.h"
|
2008-09-27 22:46:42 +02:00
|
|
|
|
2008-03-30 09:00:22 +02:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2014-08-23 10:57:13 +02:00
|
|
|
return pc_compile(argc,argv);
|
2008-03-30 09:00:22 +02:00
|
|
|
}
|
|
|
|
|
2014-08-22 09:41:32 +02:00
|
|
|
#if defined __linux__ || defined __APPLE__
|
|
|
|
extern "C" void __cxa_pure_virtual(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void *operator new(size_t size)
|
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
|
|
|
void *operator new[](size_t size)
|
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
|
|
|
void operator delete(void *ptr)
|
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
void operator delete[](void * ptr)
|
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|
|
|
|
#endif
|