More code cleanup and small bug fixes
- More typo fixes
- Use
memcpy
instead ofmemmove
when buffers are known not to overlap - Use
_CONST_X_STRING
to make libXt declare String asconst char *
- Clear some more
-Wdiscarded-qualifiers
warnings - Handle
-Wsign-compare
warnings - Handle
-Wmissing-field-initializers
warnings -
_XEditResGet32
: Fix casts to avoid unexpected sign extension in 64-bit - Add simple test cases for
_XEditRes{Put,Get}*
functions
Edited by Alan Coopersmith