aboutsummaryrefslogtreecommitdiffstats
path: root/src/s (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make GC_MAKE_GCPROS_NOOPS the default (Bug#9926).Paul Eggert2012-04-1312-22/+14
| | | | | | | | | | | * lisp.h (GC_MARK_STACK): Default to GC_MAKE_GCPROS_NOOPS. * s/cygwin.h, s/darwin.h, s/freebsd.h, s/gnu.h, s/irix6-5.h, s/msdos.h: * s/netbsd.h, s/sol2-6.h: Remove definition of GC_MARK_STACK, since the default now works. * s/aix4-2.h, s/hpux10-20.h, s/unixware.h: Define GC_MARK_STACK to GC_USE_GCPROS_AS_BEFORE, since that's no longer the default. * s/gnu-linux.h (GC_MARK_STACK): Adjust to change in default.
* * src/s/cygwin.h (PTY_OPEN): Don't try to close a bogus file descriptor.Ken Brown2012-04-131-1/+2
|
* Use the real vfork under CygwinDaniel Colascione2012-04-111-4/+0
| | | | | | | | * s/cygwin.h: The vfork the #define in cygwin.h was protecting against is gone. It's better to use vfork now so that when Cygwin gains a new, working vfork, we use it automatically. Fixes: debbugs:10398
* Avoid unnecessary pointer scanning in garbage collection (Bug#10780).Paul Eggert2012-04-071-3/+0
| | | | | | | | * alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): New macro. (mark_memory): Mark Lisp_Objects only if pointers might hide in objects, as mark_maybe_pointer will catch them otherwise. (GC_LISP_OBJECT_ALIGNMENT): Remove; no longer needed. * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT) [__mc68000__]: Likewise.
* Discourage in comments from defining HAVE_GETCWD on MS-Windows.Eli Zaretskii2012-03-291-0/+3
| | | | | src/s/ms-w32.h: Discourage from defining HAVE_GETCWD. nt/config.nt: Discourage from defining HAVE_GETCWD.
* Fix bug #9960 with MSVC build on MS-Windows.Eli Zaretskii2012-03-241-0/+6
| | | | | src/s/ms-w32.h (tzname): Include time.h before redirecting to _tzname. Fixes the MSVC build.
* * src/s/gnu.h: Define POSIX_SIGNALS.Chong Yidong2012-01-281-0/+2
| | | | Fixes: debbugs:10552
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-0516-16/+16
|
* * s/gnu-linux.h: Fix mark_memory typo (Bug#10286).Paul Eggert2011-12-161-1/+1
| | | | | | (GC_MARK_SECONDARY_STACK): Omit removed 3rd arg to mark_memory, which caused a build failure on GNU/Linux IA-64. This problem was introduced by my 2011-10-07 patch.
* Fix MS-Windows build with MSVC compiler.Eli Zaretskii2011-11-271-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Parts of the changes by Fabrice Popineau <fabrice.popineau@supelec.fr>. lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS). lib-src/emacsclient.c (main) <environ>: Remove declaration, already pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows. nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs. (UINT64_MAX) [_WIN64]: Fix definition. (uintmax_t, intmax_t): Fix definitions. nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide correct definitions. nt/config.nt (HAVE_DECL_STRTOLL): Define. (va_copy) [_WIN64]: Provide a better definition. src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define. (snprintf) [_MSC_VER]: Redirect to _snprintf. (strtoll) [_MSC_VER]: Redirect to _strtoi64. (malloc, free, realloc, calloc): Redirect to e_* only when compiling Emacs. src/lisp.h (GCTYPEBITS): Move before first use. (ALIGN_GCTYPEBITS) [_MSC_VER]: Define. (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in this macro definition. (tzname): Redirect to _tzname for all values of _MSC_VER. Fixes: debbugs:9960
* Merge from trunk.Paul Eggert2011-11-191-2/+1
|\
| * Spelling fixes.Paul Eggert2011-11-141-2/+1
| |
* | Merge from trunk.Paul Eggert2011-11-131-1/+1
|\ \ | |/
| * Fix typos.Juanma Barranquero2011-11-121-1/+1
| |
* | Standardize on VIRT_ADDR_VARIES behavior; otherwise, valgrindPaul Eggert2011-11-102-11/+0
|/ | | | | | | | | | | | | | | | | | does not work on some platforms. Problem reported by Andreas Schwab in <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00081.html>. * puresize.h (pure, PURE_P): Always behave as if VIRT_ADDR_VARIES is set, removing the need for VIRT_ADDRESS_VARIES. (PURE_P): Use a more-efficient implementation that needs just one comparison, not two: on x86-64 with GCC 4.6.2, this cut down the number of instructions from 6 (xorl, cmpq, jge, xorl, cmpq, setge) to 4 (xorl, subq, cmpq, setbe). * alloc.c (pure): Always extern now, since that's the VIRT_ADDR_VARIES behavior. (PURE_POINTER_P): Use a single comparison, not two, for consistency with the new puresize.h. * lisp.h (PNTR_COMPARISON_TYPE): Remove; no longer needed. * m/ibms390.h, m/intel386.h, m/template.h, s/cygwin.h, s/hpux10-20.h: Remove VIRT_ADDR_VARIES no longer needed.
* * s/gnu.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS (Bug#9926).Paul Eggert2011-11-081-0/+2
|
* Fix MSVC build in lib-src.Eli Zaretskii2011-11-051-9/+6
| | | | | | | src/s/ms-w32.h (fstat, stat, utime): Move redirections to "emacs"-only part. Fixes: debbugs:99690
* Support MSVC build with newer versions of Visual Studio.Eli Zaretskii2011-11-051-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small portions of the changes by Fabrice Popineau <fabrice.popineau@supelec.fr>. src/makefile.w32-in (TAGS-gmake): Don't use $(patsubst ...), as Nmake barfs on that. Use $(OBJ*_c) variables instead, defined on nt/gmake.defs. src/lisp.h (ENUM_BF): New macro, for enumerated types in bitfields, which are not supported by MSVC. (Lisp_Symbol, Lisp_Misc_Any, Lisp_Marker, Lisp_Misc_Overlay) (Lisp_Save_Value, Lisp_Free): Use ENUM_BF for enumerated types in bitfields. (Lisp_Object) [USE_LISP_UNION_TYPE]: Use ENUM_BF for enumerated types in bitfields. (DEFUN) [_MSC_VER]: Define in a different way for MSVC. src/w32fns.c [_MSC_VER]: DECLARE_HANDLE for any MSVC version. src/w32.c: Don't include w32api.h for MSVC. (init_environment) [_MSC_VER]: Call sys_access, not _access. src/s/ms-w32.h <sigset_t, ssize_t> [_MSC_VER]: Typedefs for MSVC. [_MSC_VER]: Include sys/timeb.h, sys/stat.h, and signal.h. (fstat, stat, utime) [_MSC_VER]: Redirect to their sys_* cousins. (malloc, free, realloc, calloc) [_MSC_VER]: Always redirect to the e_* cousins. (alloca) [_MSC_VER]: Define to _alloca. src/lisp.h (DECL_ALIGN) [_MSC_VER]: Define for MSVC. src/regex.c <re_char> [_MSC_VER]: A separate definition for MSVC. nt/makefile.w32-in (clean-other-dirs-nmake) (distclean-other-dirs-nmake, maintainer-clean-other-dirs-nmake): Update for current structure of doc/ subdirectories. nt/gmake.defs (OBJ0_c, OBJ1_c, OBJ2_c): New variables. nt/INSTALL: Update for newer versions of MSVC. lib/makefile.w32-in (FRC): New dummy target. (TAGS): Depend on FRC. Fixes: debbugs:9960
* Whitespace changes.Juanma Barranquero2011-09-092-2/+2
|
* Merge from trunk.Paul Eggert2011-07-191-1/+5
|\
| * Port to OpenBSD.Paul Eggert2011-07-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00688.html and the surrounding thread. * minibuf.c (read_minibuf_noninteractive): Rewrite to use getchar rather than fgets, and retry after EINTR. Otherwise, 'emacs --batch -f byte-compile-file' fails on OpenBSD if an inactivity timer goes off. * s/openbsd.h (BROKEN_SIGIO): Define. * unexelf.c (unexec) [__OpenBSD__]: Don't update the .mdebug section of the Alpha COFF symbol table.
* | Merge from trunk.Paul Eggert2011-07-091-0/+7
|\ \ | |/
| * Simplify Irix build, remove iris4d.h file.Dan Nicolaescu2011-07-061-0/+7
| | | | | | | | | | | | | | * configure.in: Remove reference to iris4d.h. * src/m/iris4d.h: Remove file, move contents ... * src/s/irix6-5.h: ... here.
* | Assume freestanding C89 headers, string.h, stdlib.h.Paul Eggert2011-07-062-10/+0
|/
* Merge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef.Glenn Morris2011-04-221-0/+1
|\
| * Fix a bug in time functions when timezone is changed on Windows.Eli Zaretskii2011-04-181-0/+1
| | | | | | | | | | | | src/s/ms-w32.h (localtime): Redirect to sys_localtime. src/w32.c: Include <time.h>. (sys_localtime): New function.
| * Two more hunks from the HP-UX patch at Bug#6811.Peter O'Gorman2011-01-231-0/+6
| | | | | | | | | | * configure.in: Add HP-UX on IA64 (Bug#6811). * src/s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
| * Distinguish between terminfo and termcap on NetBSD (Bug#7642).Chong Yidong2011-01-111-2/+1
| | | | | | | | | | | | | | | | * configure.in [netbsd systems]: Check for tputs definition. * src/config.in (TERMINFO): New definition. * src/s/netbsd.h: Use it to choose between terminfo and termcap.
* | * s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl.Paul Eggert2011-04-162-3/+2
| |
* | * s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'.Paul Eggert2011-04-161-3/+3
| |
* | Remove (RET)SIGTYPE; it is identical to void on all supported systems.Glenn Morris2011-03-262-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg01068.html * configure.in (AC_TYPE_SIGNAL): Remove obsolete macro. (AH_BOTTOM): Do not define SIGTYPE. * lib-src/emacsclient.c: Replace SIGTYPE with void. * nt/config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void). * src/syssignal.h: Replace RETSIGTYPE with void. * src/atimer.c, src/data.c, src/dispnew.c, src/emacs.c, src/floatfns.c: * src/keyboard.c, src/keyboard.h, src/lisp.h, src/process.c, src/sysdep.c: * src/xterm.c: Replace SIGTYPE with void everywhere. * src/s/template.h (SIGTYPE): Remove commented out definition. * src/s/usg5-4-common.h (SIGTYPE): Remove definition. * admin/CPP-DEFINES: Remove SIGTYPE.
* | * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.Paul Eggert2011-03-164-6/+4
| | | | | | | | | | | | | | | | That way, the code declares only the vars that it needs. * s/aix4-2.h (PTY_ITERATION): Declare iteration vars. * s/cygwin.h (PTY_ITERATION): Likewise. * s/darwin.h (PTY_ITERATION): Likewise. * s/gnu-linux.h (PTY_ITERATION): Likewise.
* | * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.Paul Eggert2011-03-161-2/+1
| | | | | | | | * process.c (allocate_pty): Don't declare stb unless it's needed.
* | Fix Sed scripts and srs/s/msdos.h for gnulib additions. Not tested yet.Eli Zaretskii2011-02-261-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04. (lstat): Define for DJGPP < 2.04. msdos/sedlibmk.inp (BITSIZEOF_PTRDIFF_T, BITSIZEOF_SIG_ATOMIC_T) (BITSIZEOF_SIZE_T, BITSIZEOF_WCHAR_T) (BITSIZEOF_WINT_TGNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_FUTIMENS) (GNULIB_LCHMOD, GNULIB_LSTAT, GNULIB_MBTOWC, GNULIB_MKDIRAT) (GNULIB_MKFIFO, GNULIB_MKFIFOAT, GNULIB_MKNOD, GNULIB_MKNODAT) (GNULIB_STAT, GNULIB_UTIMENSAT, GNULIB_WCTOMB, HAVE_FCHMODAT) (HAVE_FSTATAT, HAVE_FUTIMENS, HAVE_INTTYPES_H, HAVE_LCHMOD) (HAVE_LONG_LONG_INT, HAVE_LSTAT, HAVE_MKDIRAT, HAVE_MKFIFO) (HAVE_MKFIFOAT, HAVE_MKNOD, HAVE_MKNODAT) (HAVE_SIGNED_SIG_ATOMIC_T, HAVE_SIGNED_WCHAR_T) (HAVE_SIGNED_WINT_T, HAVE_STDINT_H, HAVE_SYS_BITYPES_H) (HAVE_SYS_INTTYPES_H, HAVE_SYS_TYPES_H) (HAVE_UNSIGNED_LONG_LONG_INT, HAVE_UTIMENSAT, HAVE_WCHAR_H) (MKDIR_P, NEXT_AS_FIRST_DIRECTIVE_STDINT_H) (NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H, NEXT_STDINT_H) (NEXT_SYS_STAT_H, REPLACE_LSTAT, REPLACE_MBTOWC, REPLACE_MKDIR) (REPLACE_MKFIFO, REPLACE_MKNOD, REPLACE_STAT, REPLACE_UTIMENSAT) (REPLACE_WCTOMB, SIG_ATOMIC_T_SUFFIX, SIZE_T_SUFFIX, STDINT_H) (WCHAR_T_SUFFIX, WINT_T_SUFFIX): New edits. ($(MKDIR_P)): Replace with equivalent DOS command. msdos/sed2v2.inp (BITSIZEOF_PTRDIFF_T, BITSIZEOF_SIG_ATOMIC_T) (BITSIZEOF_SIZE_T, BITSIZEOF_WCHAR_T, BITSIZEOF_WINT_T) (HAVE_LONG_LONG_INT, HAVE_SIGNED_SIG_ATOMIC_T, HAVE_SIGNED_WINT_T) (HAVE_UNSIGNED_LONG_LONG_INT, HAVE_WCHAR_H, HAVE_INTTYPES_H): New edits.
* | Initial version of fix for the MS-DOS build, not yet tested.Eli Zaretskii2011-02-191-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config.bat: Configure in `lib'. msdos/sedlibmk.inp: New file. msdos/sedlibcf.inp: New file. msdos/sed1v2.inp (NS_OBJC_OBJ): Edit to empty. (@true): Edit to "@rem". (move-if-change): Edit to "update". (echo): Edit to "djecho". (cd $(lib) && ...): Edit to "$(MAKE) -C ...". msdos/mainmake.v2 (version): Remove, no longer needed (config.in defines VERSION). (all): Add lib. (lib): New target and recipe. (lib-src): Depend on lib. (src): Depend on lib and lib-src. (clean, mostlyclean, distclean, maintainer-clean, extraclean) (bootstrap-clean): Recurse into lib. msdos/sed2v2.inp: Remove workaround for the "#if ! HAVE_MKTIME || BROKEN_MKTIME" stuff -- it's no longer in src/config.in. (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV) (HAVE__BOOL): Edit to 1. (VERSION, inline, restrict): Edit for DJGPP. src/s/msdos.h (strtold): Define to _strtold. admin/admin.el (set-version): Add msdos/sed2v2.inp.
* | src/s/ms-w32.h (getloadavg): Declare prototype which was removed from lisp.h.Eli Zaretskii2011-02-161-0/+2
| |
* | Use KVAR in MS-Windows build, remove buffer-file-type.Eli Zaretskii2011-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | w32fns.c (Fx_create_frame): Use KVAR. w32term.c (w32_create_terminal): Use KVAR. s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove. xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT. fileio.c (Finsert_file_contents, Fwrite_region): Remove references to buffer_file_type. (syms_of_fileio): Don't intern and staticpro find-buffer-file-type. callproc.c (syms_of_callproc): Remove references to buffer_file_type. buffer.c (reset_buffer_local_variables): Don't set buffer_file_type. (init_buffer_once): Likewise. (syms_of_buffer): Don't define buffer-file-type. buffer.h (struct buffer): Remove buffer_file_type.
* | Import getloadavg module from gnulib.Paul Eggert2011-02-157-61/+0
| |
* | Fix the MS-DOS build due to introduction of B_.Eli Zaretskii2011-02-141-1/+1
| | | | | | | | | | msdos.c (IT_frame_up_to_date): s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
* | Fix the MS-Windows build due to introduction of B_.Eli Zaretskii2011-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | dired.c (directory_files_internal): fileio.c (Finsert_file_contents): insdel.c (prepare_to_modify_buffer): xdisp.c (pos_visible_p): s/ms-w32.h (MODE_LINE_BINARY_TEXT): w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame): Use B_ for the MS-Windows build. From Tom Tromey: buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
* | Don't define HAVE_STRFTIME on MS-Windows.Eli Zaretskii2011-01-311-1/+0
| | | | | | | | s/ms-w32.h (HAVE_STRFTIME): Don't define.
* | Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu ↵Eli Zaretskii2011-01-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and emacs-23/2010-05-21T19:51:48Z!acm@muc.de. lib/makefile.w32-in: lib/getopt_.h: New files. src/s/ms-w32.h (HAVE_MKTIME): Remove. src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib. (GNULIB): New variable. (LIBS): Add $(GNULIB). $(TEMACS): Depend on $(GNULIB). <top-level>: Fix font-lock disrupted by a lone `"'. src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib. (GETOPTOBJS, GETOPTDEPS): Remove targets. (MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A). ($(BLD)/movemail.exe): Depend on ../lib/getopt.h. (ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o and getopt1.o with ../lib/$(BLD)/libgnu.$(A). (clean): Don't remove getopt.h. (getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets. ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with $(EMACS_ROOT)/lib/getopt.h. nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake) (bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake) (bootstrap-clean-gmake, clean-other-dirs-nmake) (clean-other-dirs-gmake, cleanall-other-dirs-nmake) (cleanall-other-dirs-gmake, distclean-other-dirs-nmake) (distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake) (maintainer-clean-other-dirs-gmake): Recurse into ../lib as well. nt/configure.bat: Create lib/makefile. nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove. (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV) (HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline) (_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
* | Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-2416-35/+16
| |
* | Refill some copyright headers.Glenn Morris2011-01-157-13/+18
| |
* | Nuke arch-tags.Glenn Morris2011-01-1520-42/+0
| |
* | Add 2011 to remaining FSF/AIST copyright years.Glenn Morris2011-01-152-2/+2
| |
* | Merge from emacs-23Stefan Monnier2011-01-1414-25/+21
|\ \ | |/
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-0217-17/+17
| |
* | * src/s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.Dan Nicolaescu2010-11-131-1/+0
| |
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-10-191-0/+3
|\ \ | |/