aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-17 21:41:29 -0700
committerPaul Eggert2011-04-17 21:41:29 -0700
commit36372bf93fc75b5f85d04007268e98840d1699c5 (patch)
treebd15d9623db1c58cbac99a5b3b40590fee8703c9 /src/coding.c
parentc7bda33cad5112de8c093dce0eaf62c84fb32063 (diff)
downloademacs-36372bf93fc75b5f85d04007268e98840d1699c5.tar.gz
emacs-36372bf93fc75b5f85d04007268e98840d1699c5.zip
* alloc.c: Remove unportable assumptions about struct layout.
(SDATA_SELECTOR, SDATA_DATA_OFFSET): New macros. (SDATA_OF_STRING, SDATA_SIZE, allocate_string_data): (allocate_vectorlike, make_pure_vector): Use the new macros, plus offsetof, to remove unportable assumptions about struct layout. These assumptions hold on all porting targets that I know of, but they are not guaranteed, they're easy to remove, and removing them makes further changes easier.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions