return ret;
}
+#define DECLARE_KEY(name) { #name, #name, NULL, 0 }
+#define DECLARE_KEY_WITH_VALUE(name, value) { #name, value, NULL, 0 }
+
/* the order of these has to match with those in mop.h */
static struct {
const char *name;
mop_prehash_keys ()
{
int i;
-
for (i = 0; i < key_last; i++) {
const char *value = prehashed_keys[i].value;
prehashed_keys[i].key = newSVpv(value, strlen(value));
void mop_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *), CV *cv, SV **mark);
-#define DECLARE_KEY(name) { #name, #name, NULL, 0 }
-#define DECLARE_KEY_WITH_VALUE(name, value) { #name, value, NULL, 0 }
-
typedef enum {
KEY_name,
KEY_package,