interrogate: add back NULL definition, fixes some keyword arguments

I am not sure why the definition of NULL was removed; it might have been by mistake, but in any case it broke code like this:

    img = PNMImage(w, h, color_space=CS_srgb)

since it would not understand the default value (NULL) for the argument preceding color_space.
This commit is contained in:
rdb 2018-04-04 21:48:02 +02:00
parent 94476fd1f0
commit 552a649ef3
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ inline namespace std {
struct timeval;
#ifdef __cplusplus
#define NULL 0L
#else
#define NULL ((void *)0)
#endif
typedef decltype(nullptr) nullptr_t;
// One day, we might extend interrogate to be able to parse this,