library: provide for validating result type references
During development, we now have a means for validating that a type referenced in application code matches the actual type set by the library. The new feature can be activated through either of the following two methods: 1) ./configure CFLAGS='-DXTRA_PROCPS_DEBUG' (all pgms) 2) an #include <proc/xtra-procps-debug.h> (single pgm) [ in the future, one could add a formal configure.ac ] [ provision. but for now a manual approach is safer. ] Lastly, for any module which provides a sort function, the handling for both 'noop' & 'extra' enumerators was made consistent. Now, 'noop' is not sorted and 'extra' will be sorted as that module's widest supported type. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@ -34,4 +34,8 @@
|
||||
#define ESC_STRETCH 1 // since we mangle to '?' this is 1 (would be 4 for octal escapes)
|
||||
int escape_str(char *__restrict dst, const char *__restrict src, int bufsize, int *maxcells);
|
||||
|
||||
#ifdef XTRA_PROCPS_DEBUG
|
||||
#include <proc/xtra-procps-debug.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user