/programs/develop/cmm/main.cpp |
---|
1682,9 → 1682,6 |
{ |
char buf[256]; |
FILE *diskout; |
if (comfile == file_meos) |
sprintf(buf,"%s",rawfilename); |
else |
sprintf(buf,"%s.%s",rawfilename,ext); |
if((diskout=fopen(buf,mode))==NULL){ |
ErrOpenFile(buf); |
/programs/develop/cmm/port.h |
---|
90,15 → 90,12 |
bool CharToOemA(char*, char*); |
int MultiByteToWideChar(unsigned int,unsigned int,char*,int,wchar_t *,int); |
#else |
int stricmp(const char*, const char*); |
int strnicmp(const char*, const char*, int); |
#endif |
char* strupr(char* s); |
char* strlwr(char* s); |
int stricmp(const char*, const char*); |
int strnicmp(const char*, const char*, int); |
#ifdef _PORT_CPP_ |
/programs/develop/cmm/Makefile_pyakov_ununtu32 |
---|
1,7 → 1,6 |
Compiler = gcc |
Compatib_Posix = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp |
Compiler_Options = -m32 -c -fno-exceptions -D_UNIX_ $(Compatib_Posix) -Wno-narrowing |
Compiler_Options = -m32 -c -fno-exceptions -D_UNIX_ |
#Compiler_Options = -c -fno-exceptions -O2 -D_WIN32_ |
#-D: _WIN32_ or _UNIX_ |
/programs/develop/cmm/Makefile |
---|
19,7 → 19,7 |
Add_Libs = |
#Link_Libs = -lc -lgcc |
Link_Libs = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app-dynamic.lds \ |
Link_Libs = -static -S -nostdlib -T $(SDK_DIR)/lib/app-dynamic.lds \ |
--image-base 0 -lgcc -ldll -lc.dll |
My_Libs = main.o port.o toka.o tokb.o tokc.o toke.o tokr.o errors.o debug.o outobj.o outpe.o disasm.o switch.o outle.o pointer.o new_type.o class.o res.o optreg.o libobj.o |