Changeset fde6d80 for style.c


Ignore:
Timestamp:
Jan 23, 2010, 10:49:54 AM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
c3a47c9
Parents:
2fec14b
Message:
owl_style_create_perl: Change refcounting convention.

Make owl_style_create_perl assume ownership of an existing ref, rather
than SvREFCNT_inc'ing its argument, for consistency with both perl
APIs and other code paths that retain SVs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • style.c

    rc0ddaea rfde6d80  
    22#include "owl.h"
    33
     4/* Assumes owenership of one existing ref on `obj`*/
    45void owl_style_create_perl(owl_style *s, const char *name, SV *obj)
    56{
    67  s->name=owl_strdup(name);
    7   s->perlobj = SvREFCNT_inc(obj);
     8  s->perlobj = obj;
    89}
    910
Note: See TracChangeset for help on using the changeset viewer.