Mass code cleanup and other janitorial work
- gitlab CI: stop requiring Signed-off-by in commits
- Eliminate 20
-Wimplicit-fallthrough
warnings - Remove
register
keyword from variable declarations - Variable scope reductions
- Use C99 struct initializers
- Delete unused
uTmpAlloc
/uTmpFree
wrappers aroundalloca()
- Replace
uAlloc()
anduTypedAlloc()
with directmalloc()
calls - Replace
uCalloc()
anduTypedCalloc()
with directcalloc()
calls - Replace
uTypedRealloc()
with directreallocarray()
calls - Replace
uTypedRecalloc()
with directrecallocarray()
calls - Replace
uFree()
with directfree()
calls - Remove unnecessary checks for
NULL
pointers before callingfree()
- Replace
Opaque
with direct usage ofvoid *
- Remove unnecessary casts from
memcpy()
calls - Remove unnecessary casts from
bzero()
calls - Replace
malloc()+bzero()
pairs withcalloc()
calls - Fix 106
missing-field-initializers
warnings inmisc.c
- Replace
&&
with&
for bitwise comparison - Use
asprintf()
if the platform supports it - Handle
-Wstringop-truncation
warning inHandleOverlayDef()
- Remove
#ifdef sgi
sections - FindKeypadVMod: check
xkb
is not NULL before dereference, not after - XkbAddDirectoryToPath: don't leak existing paths on
realloc()
failure - Mark more functions and variables
static
- Remove unused "no indent" (NOI) debug functions
- Only build debug infrastructure if
DEBUG
is defined - Stop building more unused functions
- Use unsigned ints when shifting to create bitmasks
- Mark more pointers as
const
- Replace
calloc(strlen())+strcpy()
pairs withstrdup()
calls