mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 14:40:54 -08:00
This follows up on recent problems with the fact that config.h includes stdlib.h etc.; some files need to include stdlib.h later. config.h generally should limit itself to includes that are universally safe; outside of MS-Windows, only stdbool.h makes the cut among the files currently included. So, move the other includes to just the files that need them (Bug#24506). * configure.ac (config_opsysfile): Remove, as this generic hook is no longer needed. * lib-src/etags.c, src/unexmacosx.c, src/w32.c, src/w32notify.c: * src/w32proc.c (_GNU_SOURCE): Remove, as it’s OK for config.h to do this now. * src/conf_post.h: Include <ms-w32.h>, instead of the generic config_opsysfile, for simplicity as this old way of configuring is now done only for the MS-Windows port. Do not include <ms-w32.h> if DEFER_MS_W32_H, for the benefit of the few files that want its effects later. Do not include <alloca.h>, <string.h>, or <stdlib.h>. Other files modified to include these headers as needed, or to not include headers that are no longer needed. * src/lisp.h: Include <alloca.h> and <string.h> here, since some of the inline functions need them. * src/regex.c: Include <alloca.h> if not emacs. (If emacs, we can rely on SAFE_ALLOCA.) There is no longer any need to worry about HAVE_ALLOCA_H. * src/unexmacosx.c: Rely on config.h not including stdlib.h. * src/w32.c, src/w32notify.c, src/w32proc.c (DEFER_MS_W32_H): Define before including <config.h> first, and include <ms-w32.h> after the troublesome headers. |
||
|---|---|---|
| .. | ||
| acl-errno-valid.c | ||
| acl-internal.c | ||
| acl-internal.h | ||
| acl.h | ||
| acl_entries.c | ||
| alloca.in.h | ||
| allocator.c | ||
| allocator.h | ||
| at-func.c | ||
| binary-io.c | ||
| binary-io.h | ||
| byteswap.in.h | ||
| c-ctype.c | ||
| c-ctype.h | ||
| c-strcase.h | ||
| c-strcasecmp.c | ||
| c-strncasecmp.c | ||
| careadlinkat.c | ||
| careadlinkat.h | ||
| close-stream.c | ||
| close-stream.h | ||
| COPYING | ||
| count-one-bits.c | ||
| count-one-bits.h | ||
| count-trailing-zeros.c | ||
| count-trailing-zeros.h | ||
| dirent.in.h | ||
| dirfd.c | ||
| dosname.h | ||
| dtoastr.c | ||
| dtotimespec.c | ||
| dup2.c | ||
| errno.in.h | ||
| euidaccess.c | ||
| execinfo.c | ||
| execinfo.in.h | ||
| faccessat.c | ||
| fcntl.c | ||
| fcntl.in.h | ||
| fdatasync.c | ||
| fdopendir.c | ||
| filemode.c | ||
| filemode.h | ||
| filevercmp.c | ||
| filevercmp.h | ||
| flexmember.h | ||
| fpending.c | ||
| fpending.h | ||
| fstatat.c | ||
| fsync.c | ||
| ftoastr.c | ||
| ftoastr.h | ||
| get-permissions.c | ||
| getdtablesize.c | ||
| getgroups.c | ||
| getloadavg.c | ||
| getopt.c | ||
| getopt.in.h | ||
| getopt1.c | ||
| getopt_.h | ||
| getopt_int.h | ||
| gettext.h | ||
| gettime.c | ||
| gettimeofday.c | ||
| gnulib.mk | ||
| group-member.c | ||
| ignore-value.h | ||
| intprops.h | ||
| inttypes.in.h | ||
| limits.in.h | ||
| lstat.c | ||
| Makefile.am | ||
| md5.c | ||
| md5.h | ||
| memrchr.c | ||
| min-max.h | ||
| mkostemp.c | ||
| mktime-internal.h | ||
| mktime.c | ||
| openat-die.c | ||
| openat-priv.h | ||
| openat-proc.c | ||
| openat.h | ||
| pathmax.h | ||
| pipe2.c | ||
| pselect.c | ||
| pthread_sigmask.c | ||
| putenv.c | ||
| qcopy-acl.c | ||
| readlink.c | ||
| readlinkat.c | ||
| root-uid.h | ||
| save-cwd.c | ||
| save-cwd.h | ||
| secure_getenv.c | ||
| set-permissions.c | ||
| sha1.c | ||
| sha1.h | ||
| sha256.c | ||
| sha256.h | ||
| sha512.c | ||
| sha512.h | ||
| sig2str.c | ||
| sig2str.h | ||
| signal.in.h | ||
| stat-time.c | ||
| stat-time.h | ||
| stat.c | ||
| stdalign.in.h | ||
| stddef.in.h | ||
| stdint.in.h | ||
| stdio.in.h | ||
| stdlib.in.h | ||
| stpcpy.c | ||
| strftime.c | ||
| strftime.h | ||
| string.in.h | ||
| strtoimax.c | ||
| strtol.c | ||
| strtoll.c | ||
| strtoul.c | ||
| strtoull.c | ||
| strtoumax.c | ||
| symlink.c | ||
| sys_select.in.h | ||
| sys_stat.in.h | ||
| sys_time.in.h | ||
| sys_types.in.h | ||
| tempname.c | ||
| tempname.h | ||
| time-internal.h | ||
| time.in.h | ||
| time_r.c | ||
| time_rz.c | ||
| timegm.c | ||
| timespec-add.c | ||
| timespec-sub.c | ||
| timespec.c | ||
| timespec.h | ||
| u64.c | ||
| u64.h | ||
| unistd.c | ||
| unistd.in.h | ||
| unsetenv.c | ||
| utimens.c | ||
| utimens.h | ||
| verify.h | ||
| vla.h | ||
| xalloc-oversized.h | ||