aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPhilipp Stephani2019-04-22 17:29:06 +0200
committerPhilipp Stephani2019-04-22 17:36:52 +0200
commit4e2ea400cbd78fa791fb897938a6dcb099401a25 (patch)
treebf386a4685abccf8ffc6ad6cf907e18671f0f405 /src/coding.c
parent3b4e312cfe1e0b185fea58bc35fa951a8389c144 (diff)
downloademacs-4e2ea400cbd78fa791fb897938a6dcb099401a25.tar.gz
emacs-4e2ea400cbd78fa791fb897938a6dcb099401a25.zip
Introduce a helper macro to convert a Lisp integer to a C integer.
This is similar to CONS_TO_INTEGER. The inverse (INT_TO_INTEGER) already exists. * src/lisp.h (INTEGER_TO_INT): New macro. (ranged_integer_to_int, ranged_integer_to_uint): New functions. * src/json.c (lisp_to_json): Use helper macro.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions