Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add stub for Signature.clone()

  • Loading branch information...
commit bb88aecc184cea5780940b16c8875e1ef1d14206 1 parent 0aadce3
@bacek bacek authored
Showing with 26 additions and 0 deletions.
  1. +10 −0 include/parrot/signature.h
  2. +16 −0 src/call/signature.c
View
10 include/parrot/signature.h
@@ -65,6 +65,13 @@ typedef struct Parrot_Signature {
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
PARROT_EXPORT
+PARROT_CANNOT_RETURN_NULL
+Parrot_Signature * Parrot_pcc_signature_clone(PARROT_INTERP,
+ ARGIN(Parrot_Signature *self))
+ __attribute__nonnull__(1)
+ __attribute__nonnull__(2);
+
+PARROT_EXPORT
void Parrot_pcc_signature_free(PARROT_INTERP,
ARGFREE(Parrot_Signature *self))
__attribute__nonnull__(1);
@@ -205,6 +212,9 @@ void Parrot_pcc_signature_push_string_named(PARROT_INTERP,
__attribute__nonnull__(2)
__attribute__nonnull__(3);
+#define ASSERT_ARGS_Parrot_pcc_signature_clone __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(interp) \
+ , PARROT_ASSERT_ARG(self))
#define ASSERT_ARGS_Parrot_pcc_signature_free __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_pcc_signature_new __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
View
16 src/call/signature.c
@@ -192,6 +192,22 @@ Parrot_pcc_signature_reset(PARROT_INTERP, ARGIN(Parrot_Signature *self))
}
/*
+=item C<Parrot_Signature * Parrot_pcc_signature_clone(PARROT_INTERP,
+Parrot_Signature *self)>
+
+Clone Signature.
+
+=cut
+*/
+PARROT_EXPORT
+PARROT_CANNOT_RETURN_NULL
+Parrot_Signature *
+Parrot_pcc_signature_clone(PARROT_INTERP, ARGIN(Parrot_Signature *self))
+{
+ PARROT_ASSERT(!"NYI");
+}
+
+/*
=item C<INTVAL Parrot_pcc_signature_num_positionals(PARROT_INTERP,
Parrot_Signature *self)>
Please sign in to comment.
Something went wrong with that request. Please try again.