diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-04-30 13:31:17 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-04-30 13:31:17 +0300 |
commit | 8db90b73941f09a17c41069828c64b91eca790d6 (patch) | |
tree | 85c45053563b0662294fea78e88bb0a27febbbd7 /msdos | |
parent | 330d880c3acc6b9e072b75af68a6332120de4457 (diff) | |
download | emacs-8db90b73941f09a17c41069828c64b91eca790d6.tar.gz |
Adapt the MSDOS build to latest changes.
msdos/inttypes.h: New file.
msdos/sed2v2.inp (HAVE_DECL_STRTOULL, HAVE_DECL_STRTOUMAX)
(HAVE_STRTOULL, HAVE_STRTOULL): Define to 1.
src/sedlibmk.inp (BUILT_SOURCES): Edit out inttypes.h.
src/sed1v2.inp (CPPFLAGS): Edit to "-I../msdos".
Add ../msdos/inttypes.h to prerequisites of lread.o.
src/dosfns.c (Fint86, Fdos_memget, Fdos_memput): Use `ASIZE (FOO)'
rather than `XVECTOR (FOO)->size'.
Diffstat (limited to 'msdos')
-rw-r--r-- | msdos/ChangeLog | 12 | ||||
-rw-r--r-- | msdos/inttypes.h | 31 | ||||
-rw-r--r-- | msdos/sed1v2.inp | 5 | ||||
-rw-r--r-- | msdos/sed2v2.inp | 4 | ||||
-rw-r--r-- | msdos/sedlibmk.inp | 5 |
5 files changed, 54 insertions, 3 deletions
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 5c345de5e35..5e793544545 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog @@ -1,3 +1,15 @@ +2011-04-30 Eli Zaretskii <eliz@gnu.org> + + * inttypes.h: New file. + + * sed2v2.inp (HAVE_DECL_STRTOULL, HAVE_DECL_STRTOUMAX) + (HAVE_STRTOULL, HAVE_STRTOULL): Define to 1. + + * sedlibmk.inp (BUILT_SOURCES): Edit out inttypes.h. + + * sed1v2.inp (CPPFLAGS): Edit to "-I../msdos". + Add ../msdos/inttypes.h to prerequisites of lread.o. + 2011-04-24 Eli Zaretskii <eliz@gnu.org> * sedlibmk.inp (am_libgnu_a_OBJECTS): Edit out diff --git a/msdos/inttypes.h b/msdos/inttypes.h new file mode 100644 index 00000000000..650fea1d0a8 --- /dev/null +++ b/msdos/inttypes.h @@ -0,0 +1,31 @@ +/* Replacement inntypes.h file for building GNU Emacs on MS-DOS with DJGPP. + +Copyright (C) 2011 Free Software Foundation, Inc. + +This file is part of GNU Emacs. + +GNU Emacs is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +GNU Emacs is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ + +#ifndef _REPL_INTTYPES_H +#define _REPL_INTTYPES_H + +#if __DJGPP__ > 2 || __DJGPP_MINOR__ >= 4 +#include_next <inttypes.h> +#else /* __DJGPP__ < 2.04 */ +#include <stdlib.h> +#define uintmax_t unsigned long long +#define strtoumax strtoull +#endif /* __DJGPP__ < 2.04 */ + +#endif diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index 2afce070e30..44ee53a5c34 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp @@ -28,7 +28,8 @@ s/\.h\.in/.h-in/ /^CPP *=/s/@[^@\n]*@/gcc -e/ /^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/ /^ALL_CFLAGS *=/s/@[^@\n]*@//g -/^CPPFLAGS *=/s/@[^@\n]*@// +/^ALL_CFLAGS *=/s/ -I\.//g +/^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos| /^LDFLAGS *=/s/@[^@\n]*@// /^LD_FIRSTFLAG *=/s/@[^@\n]*@// /^LIBS *=/s/@[^@\n]*@// @@ -193,3 +194,5 @@ s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) // s/ \$(C_SWITCH_X_SITE)// s/ \$(DBUS_CFLAGS)// s| -I\$(srcdir)/../lib|| +# Add our local inttypes.h to prerequisites where needed +/^lread\.o:/s|lread\.c|& ../msdos/inttypes.h| diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp index 030b69e583f..18144ccf9fc 100644 --- a/msdos/sed2v2.inp +++ b/msdos/sed2v2.inp @@ -100,6 +100,10 @@ s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ #else\ #undef HAVE_STDINT_H\ #endif +s/^#undef HAVE_DECL_STRTOULL *$/#define HAVE_DECL_STRTOULL 1/ +s/^#undef HAVE_DECL_STRTOUMAX *$/#define HAVE_DECL_STRTOUMAX 1/ +s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/ +s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/ # Comment out any remaining undef directives, because some of them # might be defined in sys/config.h we include at the top of config.h. diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index 92313b96421..a99d0229df8 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp @@ -515,8 +515,9 @@ am__cd = cd /^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/ /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@// /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o md5.o filemode.o/ -/^am_libgnu_a_OBJECTS *=/s/careadlinkat.\$(OBJEXT)// -/^am_libgnu_a_OBJECTS *=/s/allocator.\$(OBJEXT)// +/^BUILT_SOURCES *=/s/ *inttypes\.h// +/^am_libgnu_a_OBJECTS *=/s/careadlinkat\.\$(OBJEXT)// +/^am_libgnu_a_OBJECTS *=/s/allocator\.\$(OBJEXT)// /^srcdir *=/s/@[^@\n]*@/./ /^top_srcdir *=/s/@[^@\n]*@/../ /^top_builddir *=/s/@[^@\n]*@/../ |