Ticket #2001: 0001-Add-missing-ASSERT_ARGS-macros.patch

File 0001-Add-missing-ASSERT_ARGS-macros.patch, 2.2 KB (added by benabik, 4 years ago)

Add missing ASSERT_ARGS macros

  • src/gc/fixed_allocator.h

    From 422240dc1668e3c6db1302fc37afe443dd29c948 Mon Sep 17 00:00:00 2001
    From: Brian Gernhardt <brian@gernhardtsoftware.com>
    Date: Tue, 8 Feb 2011 11:00:39 -0500
    Subject: [PATCH] Add missing ASSERT_ARGS macros
    
    Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
    ---
     src/gc/fixed_allocator.h |    3 +++
     src/gc/gc_gms.c          |    7 +++++++
     2 files changed, 10 insertions(+), 0 deletions(-)
    
    diff --git a/src/gc/fixed_allocator.h b/src/gc/fixed_allocator.h
    index 51df42f..43f9547 100644
    a b  
    167167#define ASSERT_ARGS_Parrot_gc_pool_free __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ 
    168168       PARROT_ASSERT_ARG(interp) \ 
    169169    , PARROT_ASSERT_ARG(pool)) 
     170#define ASSERT_ARGS_Parrot_gc_pool_is_maybe_owned __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ 
     171       PARROT_ASSERT_ARG(pool) \ 
     172    , PARROT_ASSERT_ARG(ptr)) 
    170173#define ASSERT_ARGS_Parrot_gc_pool_is_owned __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ 
    171174       PARROT_ASSERT_ARG(pool) \ 
    172175    , PARROT_ASSERT_ARG(ptr)) 
  • src/gc/gc_gms.c

    diff --git a/src/gc/gc_gms.c b/src/gc/gc_gms.c
    index ea974ba..e76274a 100644
    a b  
    435435        __attribute__nonnull__(1) 
    436436        __attribute__nonnull__(2); 
    437437 
     438static void gc_gms_validate_str(PARROT_INTERP, ARGIN(STRING *str)) 
     439        __attribute__nonnull__(1) 
     440        __attribute__nonnull__(2); 
     441 
    438442static void gc_gms_write_barrier(PARROT_INTERP, ARGIN(PMC *pmc)) 
    439443        __attribute__nonnull__(1) 
    440444        __attribute__nonnull__(2); 
     
    589593#define ASSERT_ARGS_gc_gms_validate_pmc __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ 
    590594       PARROT_ASSERT_ARG(interp) \ 
    591595    , PARROT_ASSERT_ARG(pmc)) 
     596#define ASSERT_ARGS_gc_gms_validate_str __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ 
     597       PARROT_ASSERT_ARG(interp) \ 
     598    , PARROT_ASSERT_ARG(str)) 
    592599#define ASSERT_ARGS_gc_gms_write_barrier __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ 
    593600       PARROT_ASSERT_ARG(interp) \ 
    594601    , PARROT_ASSERT_ARG(pmc))