Skip to content
This repository
Browse code

Add stub for Signature.clone()

  • Loading branch information...
commit bb88aecc184cea5780940b16c8875e1ef1d14206 1 parent 0aadce3
Vasily Chekalkin authored March 29, 2012
10  include/parrot/signature.h
@@ -65,6 +65,13 @@ typedef struct Parrot_Signature {
65 65
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
66 66
 
67 67
 PARROT_EXPORT
  68
+PARROT_CANNOT_RETURN_NULL
  69
+Parrot_Signature * Parrot_pcc_signature_clone(PARROT_INTERP,
  70
+    ARGIN(Parrot_Signature *self))
  71
+        __attribute__nonnull__(1)
  72
+        __attribute__nonnull__(2);
  73
+
  74
+PARROT_EXPORT
68 75
 void Parrot_pcc_signature_free(PARROT_INTERP,
69 76
     ARGFREE(Parrot_Signature *self))
70 77
         __attribute__nonnull__(1);
@@ -205,6 +212,9 @@ void Parrot_pcc_signature_push_string_named(PARROT_INTERP,
205 212
         __attribute__nonnull__(2)
206 213
         __attribute__nonnull__(3);
207 214
 
  215
+#define ASSERT_ARGS_Parrot_pcc_signature_clone __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
  216
+       PARROT_ASSERT_ARG(interp) \
  217
+    , PARROT_ASSERT_ARG(self))
208 218
 #define ASSERT_ARGS_Parrot_pcc_signature_free __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
209 219
        PARROT_ASSERT_ARG(interp))
210 220
 #define ASSERT_ARGS_Parrot_pcc_signature_new __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
16  src/call/signature.c
@@ -192,6 +192,22 @@ Parrot_pcc_signature_reset(PARROT_INTERP, ARGIN(Parrot_Signature *self))
192 192
 }
193 193
 
194 194
 /*
  195
+=item C<Parrot_Signature * Parrot_pcc_signature_clone(PARROT_INTERP,
  196
+Parrot_Signature *self)>
  197
+
  198
+Clone Signature.
  199
+
  200
+=cut
  201
+*/
  202
+PARROT_EXPORT
  203
+PARROT_CANNOT_RETURN_NULL
  204
+Parrot_Signature *
  205
+Parrot_pcc_signature_clone(PARROT_INTERP, ARGIN(Parrot_Signature *self))
  206
+{
  207
+    PARROT_ASSERT(!"NYI");
  208
+}
  209
+
  210
+/*
195 211
 =item C<INTVAL Parrot_pcc_signature_num_positionals(PARROT_INTERP,
196 212
 Parrot_Signature *self)>
197 213
 

0 notes on commit bb88aec

Please sign in to comment.
Something went wrong with that request. Please try again.