Move to C++. Use C++14 as it adds binary literals -> HDL friendly.

This commit is contained in:
sorgelig
2018-02-28 01:58:21 +08:00
parent 52cbd96d2e
commit d235e806b2
38 changed files with 309 additions and 372 deletions

View File

@@ -3002,7 +3002,7 @@ unsigned unpack_lzh(unsigned char *src, unsigned size, unsigned char *buf)
}
//--------------------------------------------------------------------------
extern "C" int x2trd(char *name, fileTYPE *f)
int x2trd(const char *name, fileTYPE *f)
{
TDiskImage *img = new TDiskImage;
img->Open(getFullPath(name), true);
@@ -3033,7 +3033,7 @@ extern "C" int x2trd(char *name, fileTYPE *f)
return 1;
}
extern "C" int x2trd_ext_supp(char *name)
int x2trd_ext_supp(const char *name)
{
const char *ext = "";
if (strlen(name) > 4) ext = name + strlen(name) - 4;