#define MAX_STR_EMBLEN 15
struct naStr {
GC_HEADER;
- char emblen; /* [0-15], or -1 to indicate "not embedded" */
+ signed char emblen; /* [0-15], or -1 to indicate "not embedded" */
unsigned int hashcode;
union {
unsigned char buf[16];
struct naCCode {
GC_HEADER;
- naCFunction fptr;
+ union {
+ naCFunction fptr; //<! pointer to simple callback function. Invalid if
+ // fptru is not NULL.
+ struct {
+ void* user_data;
+ void(*destroy)(void*);
+ naCFunctionU fptru;
+ };
+ };
};
struct naGhost {