aboutsummaryrefslogtreecommitdiffstats
path: root/java/res/values/strings.xml
diff options
context:
space:
mode:
authorPaul Eggert2024-07-06 21:52:08 +0200
committerPaul Eggert2024-07-11 16:01:41 +0200
commit35365620e4c4c2560e13eba1f03332970129d7f8 (patch)
treed19745d4406edb311e1b104a1e47254c6a53921c /java/res/values/strings.xml
parent166685a7d9568cc8fcbc2ad85db1ed23efd9793e (diff)
downloademacs-35365620e4c4c2560e13eba1f03332970129d7f8.tar.gz
emacs-35365620e4c4c2560e13eba1f03332970129d7f8.zip
Refactor timefns more functionally
Use a more-functional style in timefns.c, rather than passing pointers to objects that are filled in. Although this does not change behavior, it should help future improvements to the code. * src/keyboard.c (decode_timer): Return a possibly-invalid struct timespec instead of storing a timespec into a location specified by an arg, and returning bool. All callers changed. * src/systime.h (struct lisp_time): Move from here to src/timefns.c, since the type is private to timefns.c. * src/timefns.c (decode_float_time, decode_ticks_hz): Return timestamp instead of storing it into a location specified by an arg. All callers changed. (enum cform, union c_time, struct err_time, struct form_time): New types, to aid functional style. (decode_time_components): Return struct err_time instead of returning err and storing timestamp into a location specified by an arg. New arg cform. All callers changed. (decode_lisp_time): Return struct form_time instead of returning form and storing timestamp into a location specified by an arg. New arg cform, replacing decode_secs_only. All callers changed. (list4_to_timespec): Return possibly-invalid timestamp instead of returning a bool and storing timestamp into a location specified by an arg. All callers changed. (lisp_time_struct): Omit no-longer-needed arg PFORM. All callers changed.
Diffstat (limited to 'java/res/values/strings.xml')
0 files changed, 0 insertions, 0 deletions