Ticket #549: changes_on_pmc_sans_unionval_branch.patch

File changes_on_pmc_sans_unionval_branch.patch, 2.1 KB (added by jessevdam, 5 years ago)

changes on sans unionval branch

  • src/string/charset/unicode.c

    ### Eclipse Workspace Patch 1.0
    #P pmc_sans_unionval
     
    440440 
    441441    /* use all available space - see below XXX */ 
    442442    /* TODO downcase, titlecase too */ 
    443     dest_len = PObj_buflen(src) / sizeof (UChar); 
     443    dest_len = Buffer_buflen(src) / sizeof (UChar); 
    444444    src_len  = src->bufused     / sizeof (UChar); 
    445445 
    446446    /* 
  • src/gc/alloc_resources.c

     
    873873check_memory_pool(Memory_Pool *pool) 
    874874{ 
    875875    size_t count; 
     876    Memory_Block * block_walker; 
    876877    count = 10000000; /*detect unendless loop just use big enough number*/ 
    877878 
    878         Memory_Block * block_walker = (Memory_Block *)pool->top_block; 
     879        block_walker = (Memory_Block *)pool->top_block; 
    879880        while(block_walker != NULL) 
    880881        { 
    881882                PARROT_ASSERT(block_walker->start == (char *)block_walker + sizeof (Memory_Block)); 
     
    912913    if(bufstart == NULL && Buffer_buflen(pobj) == 0) 
    913914        return; 
    914915 
    915     if(PObj_external_TEST(pobj)) /*buffer does not come from the memory pool*/ 
     916    if(PObj_external_TEST(pobj) || PObj_sysmem_TEST(pobj)) /*buffer does not come from the memory pool*/ 
    916917    { 
    917918        if (PObj_is_string_TEST(pobj)) 
    918919        { 
  • tools/build/nativecall.pl

     
    405405    /b/ && do { 
    406406        push @{$temps_ref},          "STRING *t_$temp_num;"; 
    407407        push @{$extra_preamble_ref}, "t_$temp_num = GET_NCI_S($reg_num);"; 
    408         return "PObj_bufstart(t_$temp_num)"; 
     408        return "Buffer_bufstart(t_$temp_num)"; 
    409409    }; 
    410410    /B/ && do { 
    411411        push @{$temps_ref}, "char *s_$temp_num;\n    char *t_$temp_num;\n    void** v_$temp_num = (void **) &t_$temp_num;";