From: Yuval Kogman Date: Thu, 21 Aug 2008 10:27:16 +0000 (+0000) Subject: gcc -pedantic fixes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b2648065d8f08723bb6ec3199d338702d410b13;p=gitmo%2FMoose.git gcc -pedantic fixes --- diff --git a/Moose.xs b/Moose.xs index 6240980..9427ba2 100644 --- a/Moose.xs +++ b/Moose.xs @@ -107,7 +107,7 @@ typedef enum { tc_stash, /* a stash for a class, implements TypeConstraint::Class by comparing SvSTASH and then invoking C if necessary */ tc_cv, /* applies a code reference to the value and checks for truth */ tc_fptr, /* apply a C function pointer */ - tc_enum, /* TODO check that the value is in an allowed set of values (strings) */ + tc_enum /* TODO check that the value is in an allowed set of values (strings) */ } tc_kind; /* this is a enum of builtin type check. They are handled in a switch statement @@ -129,7 +129,7 @@ typedef enum { RegexpRef, Object, Role, /* TODO */ - ClassName, + ClassName } TC; /* auxillary pointer/int union used for constraint checking */ @@ -154,7 +154,7 @@ typedef enum { default_none = 0, /* no default value */ default_normal, /* code reference or scalar */ default_builder, /* builder method */ - default_type, /* TODO enumerated type optimization (will call newHV, newAV etc to avoid calling a code ref for these simple cases) */ + default_type /* TODO enumerated type optimization (will call newHV, newAV etc to avoid calling a code ref for these simple cases) */ } default_kind; typedef union { @@ -281,7 +281,7 @@ typedef enum { array, fptr, cv, - judy, + judy } instance_types;