1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-17 02:15:14 -07:00
emacs/lib
Paul Eggert 91f2d27289 Port to stricter C99 platforms.
Especially, C99 prohibits nesting a struct X inside struct Y if
struct X has a flexible array member.
Also, merge from gnulib, incorporating:
2013-11-03 intprops: port to Oracle Studio c99
* lib/intprops.h: Update from gnulib.
* src/alloc.c (struct sdata): New type.
(sdata): Implement in terms of struct sdata.
Remove u member; all uses replaced by next_vector, set_next_vector.
(SDATA_SELECTOR, SDATA_DATA, SDATA_DATA_OFFSET): Adjust to sdata change.
(SDATA_DATA_OFFSET): Now a constant, not a macro.
(struct sblock): Rename first_data member to data, which is now
a flexible array member.  All uses changed.
(next_vector, set_next_vector, large_vector_vec): New functions.
(vector_alignment): New constant.
(roundup_size): Make it a multiple of ALIGNOF_STRUCT_LISP_VECTOR, too.
(struct large-vector): Now merely a NEXT member, since the old approach
ran afoul of stricter C99.  All uses changed to use
large_vector_vec or large_vector_offset.
(large_vector_offset): New constant.
* src/dispnew.c: Include tparam.h, for tgetent.
Do not include term.h; no longer needed.
* src/gnutls.c (Fgnutls_boot): Don't continue after calling a _Noreturn.
* src/lisp.h (ENUM_BF) [__SUNPRO_C && __STDC__]: Use unsigned int.
(struct Lisp_Vector): Use a flexible array member for contents,
instead of a union with a member that is an array of size 1.
All uses changed.
(ALIGNOF_STRUCT_LISP_VECTOR): New constant, to make up for the
fact that the struct no longer contains a union.
(struct Lisp_Misc_Any, struct Lisp_Marker, struct Lisp_Overlay)
(struct Lisp_Save_Value, struct Lisp_Free):
Use unsigned, not int, for spacers, to avoid c99 warning.
(union specbinding): Use unsigned, not bool, for bitfield, as
bool is not portable to pre-C99 hosts.
2013-11-03 22:09:03 -08:00
..
acl-errno-valid.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
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
file-has-acl.c
filemode.c
filemode.h
fpending.c
fpending.h
fstatat.c
fsync.c
ftoastr.c
ftoastr.h
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
intprops.h
inttypes.in.h
lstat.c
Makefile.am
makefile.w32-in
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
qset-acl.c
readlink.c
readlinkat.c
root-uid.h
save-cwd.c
save-cwd.h
secure_getenv.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
stdarg.in.h
stdbool.in.h
stddef.in.h
stdint.in.h
stdio.in.h
stdlib.in.h
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.in.h
time_r.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
xalloc-oversized.h