View mode: basic / threaded / horizontal-split · Log in · Help
October 24, 2006
[Issue 451] New: frontend: redundant function definitions
http://d.puremagic.com/issues/show_bug.cgi?id=451

          Summary: frontend: redundant function definitions
          Product: D
          Version: 0.170
         Platform: PC
       OS/Version: Linux
           Status: NEW
         Severity: trivial
         Priority: P2
        Component: DMD
       AssignedTo: bugzilla@digitalmars.com
       ReportedBy: thomas-dloop@kuehne.cn


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


--
Top | Discussion index | About this forum | D home