Bug 451 – frontend: redundant function definitions

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-24T06:29:00Z
Last change time
2014-02-15T13:21:53Z
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-10-24T06:29:22Z
While redundant functions definitions aren't bugs they can easily cause bugs while porting code. === dmd/expression.c ================================================================== --- dmd/expression.c (revision 2011) +++ dmd/expression.c (local) @@ -14,10 +14,6 @@ #include <assert.h> #include <complex> -#if __GNUC__ -extern "C" long double strtold(const char *p,char **endp); -#endif - #if _WIN32 && __DMC__ extern "C" char * __cdecl __locale_decpoint; #endif === dmd/html.c ================================================================== --- dmd/html.c (revision 2011) +++ dmd/html.c (local) @@ -25,10 +25,6 @@ #include "root.h" #include "../mars/mars.h" -#if __GNUC__ -int memicmp(const char *s1, const char *s2, int n); -#endif - extern int HtmlNamedEntity(unsigned char *p, int length); /********************************** === dmd/lexer.c ================================================================== --- dmd/lexer.c (revision 2011) +++ dmd/lexer.c (local) @@ -28,7 +28,6 @@ #if __GNUC__ #include <time.h> -extern "C" long double strtold(const char *p,char **endp); #endif #if _WIN32 @@ -51,7 +50,6 @@ extern "C" char * __cdecl __locale_decpoint; #endif -extern int isUniAlpha(unsigned u); extern int HtmlNamedEntity(unsigned char *p, int length); #define LS 0x2028 // UTF line separator
Comment #1 by bugzilla — 2006-11-09T02:22:37Z
Incorporated DMD 0.173