From: Florian Ragwitz Date: Wed, 11 Mar 2009 05:11:25 +0000 (+0100) Subject: Don't make DECLARE_KEY* available for anything but mop.c. X-Git-Tag: 0.78_01~62 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=95ac09c541e02e77935b0813c045c6e83fd9ad4a;p=gitmo%2FClass-MOP.git Don't make DECLARE_KEY* available for anything but mop.c. --- diff --git a/mop.c b/mop.c index 19b90bc..feae858 100644 --- a/mop.c +++ b/mop.c @@ -202,6 +202,9 @@ mop_get_all_package_symbols (HV *stash, type_filter_t filter) 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; @@ -235,7 +238,6 @@ void 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)); diff --git a/mop.h b/mop.h index aa04817..e3b5b91 100644 --- a/mop.h +++ b/mop.h @@ -18,9 +18,6 @@ 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,