mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-17 19:07:05 +02:00
- Updated to DMD frontend 1.041.
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
This commit is contained in:
+14
-17
@@ -20,28 +20,21 @@
|
||||
#include <wchar.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <sys/time.h>
|
||||
#include <math.h>
|
||||
|
||||
#if _MSC_VER
|
||||
#include <time.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#ifdef IN_GCC
|
||||
|
||||
#include <time.h>
|
||||
#include "mem.h"
|
||||
|
||||
#else
|
||||
|
||||
#if __GNUC__
|
||||
#elif __GNUC__
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#if IN_LLVM
|
||||
#include "mem.h"
|
||||
#elif _WIN32
|
||||
#include "..\root\mem.h"
|
||||
#else
|
||||
#include "../root/mem.h"
|
||||
#endif
|
||||
#endif
|
||||
#include "rmem.h"
|
||||
|
||||
#include "stringtable.h"
|
||||
|
||||
@@ -56,6 +49,10 @@
|
||||
extern "C" char * __cdecl __locale_decpoint;
|
||||
#endif
|
||||
|
||||
#if _MSC_VER // workaround VC++ bug, labels and types should be in separate namespaces
|
||||
#define Lstring Lstr
|
||||
#endif
|
||||
|
||||
extern int HtmlNamedEntity(unsigned char *p, int length);
|
||||
|
||||
#define LS 0x2028 // UTF line separator
|
||||
@@ -140,11 +137,11 @@ const char *Token::toChars()
|
||||
break;
|
||||
|
||||
case TOKint64v:
|
||||
sprintf(buffer,"%lldL",(long long)int64value);
|
||||
sprintf(buffer,"%jdL",int64value);
|
||||
break;
|
||||
|
||||
case TOKuns64v:
|
||||
sprintf(buffer,"%lluUL",(unsigned long long)uns64value);
|
||||
sprintf(buffer,"%juUL",uns64value);
|
||||
break;
|
||||
|
||||
#if IN_GCC
|
||||
|
||||
Reference in New Issue
Block a user