summaryrefslogtreecommitdiffstats
path: root/XAlloc.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove superfluous 'extern's from function declarations.Zev Weiss2020-09-031-6/+6
| | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
* Axe automated header generation.Zev Weiss2020-09-031-2/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Introduce xAsprintf as checked version of asprintfChristian Göttsche2020-08-211-0/+6
|
* Re-generate all headers with latest scripts/MakeHeader.pyNathan Scott2020-08-181-5/+5
| | | | Sync-up missing extern declarations for many functions.
* Security review: check results of snprintf.Hisham Muhammad2017-07-271-0/+3
| | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
* Fix xStrdup debug build failure & allow Clang to use ((nonnull))Explorer092016-06-031-2/+7
|
* Add assert and __attribute__((nonnull)) on xStrdupExplorer092016-06-021-1/+13
| | | | | | | | | __attribute__((nonnull)) will help catching "calling with NULL" mistake on compile time. I also convert xStrdup into a macro, that will do assert() inline when the code is *not* built with -DNDEBUG . For release builds (with -DNDEBUG), preprocessor trick will ensure that generated code remains the same.
* Add allocation testsHisham2016-01-311-0/+20

© 2014-2024 Faster IT GmbH | imprint | privacy policy