lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lynx-dev] parsdate.y and STRING


From: Gisle Vanem
Subject: [Lynx-dev] parsdate.y and STRING
Date: Mon, 22 Sep 2008 14:03:33 +0200

On djgpp/gcc I'm getting this:

parsdate.y:47: error: redefinition of typedef 'STRING'
/net/OpenSSL.099/openssl/safestack.h:105: error: previous declaration of 
'STRING'

<safestack.h> is included via <LYUtils.h>. An easy fix:

--- src/parsdate.y.orig    Sun Sep 21 21:49:47 2008
+++ src/parsdate.y      Mon Sep 22 13:57:58 2008
@@ -42,7 +42,7 @@

#define CTYPE(isXXXXX, c)      (((unsigned char)(c) < 128) && isXXXXX(((int)c)))

-typedef char   *STRING;
+typedef char    *PD_STRING;

extern int date_parse(void);

@@ -702,7 +702,7 @@
    length++;

    /* Drop out any periods. */
-    for (p = buff, q = (STRING)buff; *q; q++)
+    for (p = buff, q = (PD_STRING)buff; *q; q++)
       if (*q != '.')
           *p++ = *q;
    *p = '\0';
-----------

An btw, TIMEINFO in parsdate.h looks suspiciously like a Win32 structure.
Maybe rename to PD_TIMEINFO.

--gv





reply via email to

[Prev in Thread] Current Thread [Next in Thread]