[Libreoffice-commits] .: hwpfilter/source

Thomas Arnhold tarnhold at kemper.freedesktop.org
Thu Feb 24 12:54:05 PST 2011


 hwpfilter/source/grammar.cpp |   14 --------------
 1 file changed, 14 deletions(-)

New commits:
commit e85cdf7bf946210a85c0c16ae1b426dc56ed92d1
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Thu Feb 24 21:45:17 2011 +0100

    Remove MSDOS support

diff --git a/hwpfilter/source/grammar.cpp b/hwpfilter/source/grammar.cpp
index 76cb457..3bd9528 100644
--- a/hwpfilter/source/grammar.cpp
+++ b/hwpfilter/source/grammar.cpp
@@ -428,24 +428,10 @@ static const short yycheck[] = {    11,
 #define YYSTACK_USE_ALLOCA
 #include <sal/alloca.h>
 #else /* not sparc */
-/* We think this test detects Watcom and Microsoft C.  */
-/* This used to test MSDOS, but that is a bad idea
-   since that symbol is in the user namespace.  */
-#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
-#if 0 /* No need for malloc.h, which pollutes the namespace;
-     instead, just don't use alloca.  */
-#include <malloc.h>
-#endif
-#else /* not MSDOS, or __TURBOC__ */
 #if defined(_AIX)
-/* I don't know what this was needed for, but it pollutes the namespace.
-   So I turned it off.   rms, 2 May 1997.  */
-/* #include <malloc.h>  */
  #pragma alloca
 #define YYSTACK_USE_ALLOCA
-#else /* not MSDOS, or __TURBOC__, or _AIX */
 #endif /* not _AIX */
-#endif /* not MSDOS, or __TURBOC__ */
 #endif /* not sparc */
 #endif /* not GNU C */
 #endif /* alloca not defined */


More information about the Libreoffice-commits mailing list