1
0

Refactored error handling (#62)

Instead of using and checking malloc'd error strings formatted with asprintf and passed through a pointer in function arguments, use a global thread-local statically allocated error buffer with functions to set and get it.

This is more efficient, less error-prone, and easier to use than the old method, especially now that NM is larger (meaning that errors are returned through multiple layers) and parts of it are re-used in other things.
This commit is contained in:
Patrick Gaskin
2020-07-21 17:47:22 -04:00
committed by GitHub
parent 5a6ae2b462
commit 6329328daf
23 changed files with 403 additions and 432 deletions

1
.gitignore vendored
View File

@@ -23,6 +23,7 @@ compile_flags.txt
/src/config.o
/src/kfmon.o
/src/action.o
/src/util.o
/src/dlhook.o
/src/generator.o
/src/action_c.o