emacs/m4
Paul Eggert d7c6836288 Avoid some strlen work, primarily via strnlen
* admin/merge-gnulib (GNULIB_MODULES): Add strnlen.
* lib-src/etags.c (find_entries):
* src/emacs.c (main):
* src/nsmenu.m (parseKeyEquiv:):
* src/nsterm.m (ns_xlfd_to_fontname):
* src/term.c (vfatal):
Prefer !*X to !strlen (X).
* lib-src/etags.c (pfnote, add_regex):
* lib-src/pop.c (pop_open):
* lib-src/update-game-score.c (main):
* lwlib/lwlib.c (lw_separator_p):
* src/doprnt.c (doprnt):
* src/emacs.c (main):
* src/inotify.c (inotifyevent_to_event):
* src/keyboard.c (menu_separator_name_p, parse_tool_bar_item):
* src/sysdep.c (get_current_dir_name_or_unreachable):
* src/xdisp.c (store_mode_line_string):
Use strnlen to avoid unnecessary work with strlen.
* lib-src/etags.c (Prolog_functions, prolog_pr)
(Erlang_functions, erlang_func):
Prefer ptrdiff_t to size_t when either will do.
(prolog_pr, erlang_func): New arg LASTLEN, to avoid
unnecessary strlen call. All callers changed.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/strnlen.c, m4/strnlen.m4: New files, copied from Gnulib.
* lwlib/lwlib.c (lw_separator_p):
* src/json.c (json_has_prefix):
Use strncmp to avoid unecessary work with strlen + memcmp.
* src/process.c (set_socket_option): Use SBYTES instead of strlen.
2019-06-25 14:55:08 -07:00
..
00gnulib.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
__inline.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
absolute-header.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
acl.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
alloca.m4 Update from Gnulib 2019-03-10 23:05:30 -07:00
builtin-expect.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
byteswap.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
canonicalize.m4 Fix locating pdump by symlink 2019-06-23 18:19:08 -07:00
clock_time.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
close-stream.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
copy-file-range.m4 Use copy_file_range to copy files 2019-06-07 00:44:45 -07:00
count-leading-zeros.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
count-one-bits.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
count-trailing-zeros.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
d-type.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
dirent_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dirfd.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
double-slash-root.m4 Fix locating pdump by symlink 2019-06-23 18:19:08 -07:00
dup2.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
eealloc.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
environ.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
errno_h.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
euidaccess.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
execinfo.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
explicit_bzero.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
extensions.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
extern-inline.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
faccessat.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
fcntl.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
fcntl_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
fdopendir.m4 Update from Gnulib. 2019-03-25 14:55:49 -07:00
filemode.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
flexmember.m4 Update from Gnulib 2019-05-29 16:34:57 -07:00
fpending.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
fpieee.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
fstatat.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
fsusage.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
fsync.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
getdtablesize.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
getgroups.m4 Update from Gnulib. 2019-03-25 14:55:49 -07:00
getloadavg.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
getopt.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gettime.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
gettimeofday.m4 Update from Gnulib. 2019-03-25 14:55:49 -07:00
glibc21.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
gnulib-common.m4 Update from Gnulib. 2019-03-25 14:55:49 -07:00
gnulib-comp.m4 Avoid some strlen work, primarily via strnlen 2019-06-25 14:55:08 -07:00
group-member.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
ieee754-h.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
include_next.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
inttypes.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
largefile.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
limits-h.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
localtime-buffer.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
longlong.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
lstat.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
malloca.m4 Fix locating pdump by symlink 2019-06-23 18:19:08 -07:00
manywarnings.m4 Update from Gnulib 2019-05-03 12:17:31 -07:00
mbstate_t.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
md5.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
memmem.m4 Replace executable’s fingerprint in place 2019-04-14 17:06:09 -07:00
memrchr.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
minmax.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mkostemp.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mktime.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
mode_t.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
multiarch.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
nocrash.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
nstrftime.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
off_t.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
open-cloexec.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
open.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
pathmax.m4 Fix locating pdump by symlink 2019-06-23 18:19:08 -07:00
pipe2.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
pkg.m4 Merge from pkg-config 2018-02-11 13:10:41 -08:00
pselect.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
pthread_sigmask.m4 Update from Gnulib 2019-05-29 16:34:57 -07:00
putenv.m4 Update from Gnulib. 2019-03-25 14:55:49 -07:00
readlink.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
readlinkat.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
regex.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
sha1.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sha256.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sha512.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sig2str.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
signal_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
socklen.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
ssize_t.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
st_dm_mode.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
stat-time.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
std-gnu11.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
stdalign.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
stddef_h.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
stdint.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
stdio_h.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
stdlib_h.m4 Update from Gnulib 2019-02-02 13:15:10 -08:00
stpcpy.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
string_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
strnlen.m4 Avoid some strlen work, primarily via strnlen 2019-06-25 14:55:08 -07:00
strtoimax.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
strtoll.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
symlink.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sys_select_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sys_socket_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sys_stat_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sys_time_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
sys_types_h.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
tempname.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
time_h.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
time_r.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
time_rz.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
timegm.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
timer_time.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
timespec.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
tm_gmtoff.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
unistd_h.m4 Update from Gnulib 2019-06-07 00:44:45 -07:00
unlocked-io.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
utimens.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
utimes.m4 Update from Gnulib. 2019-03-25 14:55:49 -07:00
vararrays.m4 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
warnings.m4 Update from Gnulib 2018-12-31 18:20:07 -08:00
wchar_t.m4 Update copyright year to 2019 2019-01-01 01:01:13 +00:00