head 1.2; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2.2.2 OPENPKG_E1_FP:1.2.2.2 OPENPKG_2_STABLE_MP:1.2 OPENPKG_2_STABLE_20061018:1.2.2.2 OPENPKG_2_STABLE:1.2.0.2 OPENPKG_CW_FP:1.1; locks; strict; comment @# @; 1.2 date 2006.10.12.08.46.49; author rse; state Exp; branches 1.2.2.1; next 1.1; commitid CuSjfjQIxR368nQr; 1.1 date 2004.09.29.07.46.27; author rse; state Exp; branches; next ; 1.2.2.1 date 2006.10.12.08.46.49; author rse; state dead; branches; next 1.2.2.2; commitid iZxwRSmmWscPXUQr; 1.2.2.2 date 2006.10.16.14.48.52; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.2 log @fix building under GCC 4.1 world order @ text @Index: ccidemain.c --- ccidemain.c.orig 2004-09-28 17:18:35 +0200 +++ ccidemain.c 2006-10-12 10:45:16 +0200 @@@@ -465,7 +465,9 @@@@ #endif free(lws); - lws = strndup(s1,s-s1); + lws = malloc(s-s1+1); + memcpy(lws, s1, s-s1); + lws[s-s1] = '\0'; } Index: ccidemain.h --- ccidemain.h.orig 2004-09-27 18:36:43 +0200 +++ ccidemain.h 2006-10-12 10:45:49 +0200 @@@@ -107,7 +107,6 @@@@ extern int uselocaltime; /* 1=local time instead of UTC in timestamp */ extern int checkequal; /* 0=bypasss checking for '=' in cond stub. */ extern int changequote; /* 1=issue m4 changequote macro */ -extern char bufs[4096]; extern char *M4Comment; /* // for C++ code, else CCIDE_COMMENT() */ extern char *pComment; /* for C, // for C++, ... */ extern char *pEcomment; /* for C, // for C++, ... */ @ 1.2.2.1 log @file ccide.patch was added on branch OPENPKG_2_STABLE on 2006-10-16 14:48:52 +0000 @ text @d1 25 @ 1.2.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 25 Index: ccidemain.c --- ccidemain.c.orig 2004-09-28 17:18:35 +0200 +++ ccidemain.c 2006-10-12 10:45:16 +0200 @@@@ -465,7 +465,9 @@@@ #endif free(lws); - lws = strndup(s1,s-s1); + lws = malloc(s-s1+1); + memcpy(lws, s1, s-s1); + lws[s-s1] = '\0'; } Index: ccidemain.h --- ccidemain.h.orig 2004-09-27 18:36:43 +0200 +++ ccidemain.h 2006-10-12 10:45:49 +0200 @@@@ -107,7 +107,6 @@@@ extern int uselocaltime; /* 1=local time instead of UTC in timestamp */ extern int checkequal; /* 0=bypasss checking for '=' in cond stub. */ extern int changequote; /* 1=issue m4 changequote macro */ -extern char bufs[4096]; extern char *M4Comment; /* // for C++ code, else CCIDE_COMMENT() */ extern char *pComment; /* for C, // for C++, ... */ extern char *pEcomment; /* for C, // for C++, ... */ @ 1.1 log @upgrading package: ccide 0.0.8.5 -> 0.0.8.8 @ text @d3 1 a3 1 +++ ccidemain.c 2004-09-29 09:43:47 +0200 d15 11 @