summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-01-18 08:29:52 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-01-18 08:29:52 +0000
commitce72c53161ce2788ca7041402bca882195e5e6b5 (patch)
treee8e9cb936ff2910a745d36cd049a743b63cd9940
parentINTEGRATION: CWS dmake47 (1.1.1.1.156); FILE MERGED (diff)
downloadcore-ce72c53161ce2788ca7041402bca882195e5e6b5.tar.gz
core-ce72c53161ce2788ca7041402bca882195e5e6b5.zip
INTEGRATION: CWS dmake47 (1.9.12); FILE MERGED
2006/11/12 05:06:38 vq 1.9.12.4: #i71422# Add a new feature: Using @@ as a recipe prefix redirects the output (stdout and stderr) of a recipe to /dev/null (or NUL on W32) completely suppressing the output of that recipe to the terminal. As for the @ prefix this can be disabled using the -v[r] switch. 2006/10/01 19:18:27 vq 1.9.12.3: #i69742# Create Clean_path() function. 2006/09/29 21:20:45 vq 1.9.12.2: #i69953# Remove NO_DRIVE_LETTERS, use HAVE_DRIVE_LETTERS instead. 2006/09/29 18:50:22 vq 1.9.12.1: #i69814# Add/fix option to make directory cache case insensitive. (Make this the default for Windows and Mac OS X.) Added testcase.
-rw-r--r--dmake/extern.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/dmake/extern.h b/dmake/extern.h
index debab53f7954..c47a9a9d6a75 100644
--- a/dmake/extern.h
+++ b/dmake/extern.h
@@ -1,6 +1,6 @@
/* $RCSfile: extern.h,v $
--- $Revision: 1.9 $
--- last change: $Author: hr $ $Date: 2006-04-20 11:59:59 $
+-- $Revision: 1.10 $
+-- last change: $Author: vg $ $Date: 2007-01-18 09:29:52 $
--
-- SYNOPSIS
-- External declarations for dmake functions.
@@ -92,6 +92,38 @@
* the extern declarations however. */
#include "posix.h"
+
+
+/* Common declarations
+ * ===================
+ * are better made here then in local public.h. So far dmake didn't follow
+ * this strategy but new functions will be added here. */
+
+/* Use our own implementation if no library function is present. */
+#ifndef HAVE_STRLWR
+/* from dmstring.c */
+char *strlwr(char *p);
+#endif
+
+/* from path.c */
+void Clean_path(char *path);
+
+
+
+/* Define some usefull macros. This is done here and not in config.h
+ * to keep this changes usefull even when not using the autotools based
+ * build, i.e. using config.h files that are local to the architecture. */
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(MSDOS) || defined(OS2)
+# define HAVE_DRIVE_LETTERS 1
+#endif
+
+#if defined(_WIN32) || defined(MSDOS) || defined(OS2) && !defined(__CYGWIN__)
+# define NULLDEV "NUL"
+#else
+# define NULLDEV "/dev/null"
+#endif
+
+
/* Work around some of the functions that may or may not exist */
#if ! HAVE_TZSET
#if HAVE_SETTZ