~ubuntu-branches/ubuntu/raring/parrot/raring-proposed

« back to all changes in this revision

Viewing changes to include/parrot/call.h

  • Committer: Bazaar Package Importer
  • Author(s): Allison Randal
  • Date: 2011-07-30 18:45:03 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110730184503-34d4mprtfx6pt5h3
Tags: 3.6.0-1
* New upstream release
* debian/watch:
  - Modified regular expression to capture numbered directory name
    (patch from Dominique Dumont).
* debian/rules:
  - Split build-arch and build-indep, resolving lintian warning.
  - Update path to pbc_disassemble for manpage generation (patch
    from Dominique Dumont).
* debian/patches:
  - Added patch 02_fix_perl_interpreter_path.patch, resolving
    lintian warnings.
* debian/control:
  - Added DM-Upload-Allowed field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
        FUNC_MODIFIES(*call_object)
216
216
        FUNC_MODIFIES(*args);
217
217
 
 
218
PARROT_EXPORT
 
219
void Parrot_pcc_set_call_from_c_args(PARROT_INTERP,
 
220
    ARGIN(PMC *signature),
 
221
    ARGIN(const char *sig),
 
222
    ...)
 
223
        __attribute__nonnull__(1)
 
224
        __attribute__nonnull__(2)
 
225
        __attribute__nonnull__(3);
 
226
 
 
227
PARROT_EXPORT
 
228
void Parrot_pcc_set_call_from_varargs(PARROT_INTERP,
 
229
    ARGIN(PMC *signature),
 
230
    ARGIN(const char *sig),
 
231
    ARGMOD(va_list *args))
 
232
        __attribute__nonnull__(1)
 
233
        __attribute__nonnull__(2)
 
234
        __attribute__nonnull__(3)
 
235
        __attribute__nonnull__(4)
 
236
        FUNC_MODIFIES(*args);
 
237
 
218
238
void Parrot_pcc_merge_signature_for_tailcall(PARROT_INTERP,
219
 
    ARGMOD_NULLOK(PMC * parent),
220
 
    ARGMOD_NULLOK(PMC * tailcall))
 
239
    ARGMOD(PMC *parent),
 
240
    ARGMOD(PMC *tailcall))
221
241
        __attribute__nonnull__(1)
222
 
        FUNC_MODIFIES(* parent)
223
 
        FUNC_MODIFIES(* tailcall);
 
242
        __attribute__nonnull__(2)
 
243
        __attribute__nonnull__(3)
 
244
        FUNC_MODIFIES(*parent)
 
245
        FUNC_MODIFIES(*tailcall);
224
246
 
225
247
PARROT_CAN_RETURN_NULL
226
248
void Parrot_pcc_parse_signature_string(PARROT_INTERP,
277
299
       PARROT_ASSERT_ARG(interp) \
278
300
    , PARROT_ASSERT_ARG(signature) \
279
301
    , PARROT_ASSERT_ARG(args))
 
302
#define ASSERT_ARGS_Parrot_pcc_set_call_from_c_args \
 
303
     __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
 
304
       PARROT_ASSERT_ARG(interp) \
 
305
    , PARROT_ASSERT_ARG(signature) \
 
306
    , PARROT_ASSERT_ARG(sig))
 
307
#define ASSERT_ARGS_Parrot_pcc_set_call_from_varargs \
 
308
     __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
 
309
       PARROT_ASSERT_ARG(interp) \
 
310
    , PARROT_ASSERT_ARG(signature) \
 
311
    , PARROT_ASSERT_ARG(sig) \
 
312
    , PARROT_ASSERT_ARG(args))
280
313
#define ASSERT_ARGS_Parrot_pcc_merge_signature_for_tailcall \
281
314
     __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
282
 
       PARROT_ASSERT_ARG(interp))
 
315
       PARROT_ASSERT_ARG(interp) \
 
316
    , PARROT_ASSERT_ARG(parent) \
 
317
    , PARROT_ASSERT_ARG(tailcall))
283
318
#define ASSERT_ARGS_Parrot_pcc_parse_signature_string \
284
319
     __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
285
320
       PARROT_ASSERT_ARG(interp) \
344
379
PARROT_EXPORT
345
380
PARROT_PURE_FUNCTION
346
381
PARROT_CANNOT_RETURN_NULL
347
 
Regs_ni* Parrot_pcc_get_regs_ni(SHIM_INTERP, ARGIN(const PMC *ctx))
 
382
Regs_ni* Parrot_pcc_get_regs_ni(PARROT_INTERP, ARGIN(const PMC *ctx))
348
383
        __attribute__nonnull__(2);
349
384
 
350
385
PARROT_EXPORT
351
386
PARROT_PURE_FUNCTION
352
387
PARROT_CANNOT_RETURN_NULL
353
 
Regs_ps* Parrot_pcc_get_regs_ps(SHIM_INTERP, ARGIN(PMC *ctx))
 
388
Regs_ps* Parrot_pcc_get_regs_ps(PARROT_INTERP, ARGIN(PMC *ctx))
354
389
        __attribute__nonnull__(2);
355
390
 
356
391
PARROT_EXPORT
357
392
PARROT_PURE_FUNCTION
358
 
UINTVAL Parrot_pcc_get_regs_used(SHIM_INTERP,
 
393
UINTVAL Parrot_pcc_get_regs_used(PARROT_INTERP,
359
394
    ARGIN(const PMC *ctx),
360
395
    int type)
361
396
        __attribute__nonnull__(2);
372
407
PARROT_EXPORT
373
408
PARROT_PURE_FUNCTION
374
409
PARROT_CAN_RETURN_NULL
375
 
PMC* Parrot_pcc_get_sub(SHIM_INTERP, ARGIN(const PMC *ctx))
 
410
PMC* Parrot_pcc_get_sub(PARROT_INTERP, ARGIN(const PMC *ctx))
376
411
        __attribute__nonnull__(2);
377
412
 
378
413
PARROT_EXPORT
382
417
 
383
418
PARROT_EXPORT
384
419
PARROT_CANNOT_RETURN_NULL
385
 
void Parrot_pcc_set_regs_ni(SHIM_INTERP,
 
420
void Parrot_pcc_set_regs_ni(PARROT_INTERP,
386
421
    ARGIN(PMC *ctx),
387
422
    ARGIN(Regs_ni *bp))
388
423
        __attribute__nonnull__(2)
390
425
 
391
426
PARROT_EXPORT
392
427
PARROT_CANNOT_RETURN_NULL
393
 
void Parrot_pcc_set_regs_ps(SHIM_INTERP,
 
428
void Parrot_pcc_set_regs_ps(PARROT_INTERP,
394
429
    ARGIN(PMC *ctx),
395
430
    ARGIN(Regs_ps *bp_ps))
396
431
        __attribute__nonnull__(2)
397
432
        __attribute__nonnull__(3);
398
433
 
399
434
PARROT_EXPORT
400
 
void Parrot_pcc_set_regs_used(SHIM_INTERP,
 
435
void Parrot_pcc_set_regs_used(PARROT_INTERP,
401
436
    ARGIN(PMC *ctx),
402
437
    int type,
403
438
    INTVAL num)
450
485
        __attribute__nonnull__(2);
451
486
 
452
487
PARROT_CANNOT_RETURN_NULL
453
 
PMC * Parrot_pcc_init_context(SHIM_INTERP,
 
488
PMC * Parrot_pcc_init_context(PARROT_INTERP,
454
489
    ARGIN(PMC *ctx),
455
490
    ARGIN_NULLOK(PMC *old))
456
491
        __attribute__nonnull__(2);