IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4173


Ignore:
Timestamp:
Jun 8, 2005, 5:17:50 PM (21 years ago)
Author:
jhoblitt
Message:

change psAlloc() -> [foo]Alloc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/popobject.tt

    r4164 r4173  
    2424    }
    2525
    26     object = psAlloc(sizeof([% object_name %]));
    27 
     26    object = [% object_name %]Alloc(
     27[%- SET i = 0 -%]
    2828[% FOREACH item = columns -%]
    29 [% IF item.type == "STR" -%]
    30     object->[% item.name %] = psStringCopy([% item.name %]);
    31 [% ELSE -%]
    32     object->[% item.name %] = [% item.name %];
    33 [% END -%]
    34 [% END -%]
     29[% IF i == 0 -%][%- i = 1 -%][% ELSE %], [% END -%]
     30[%- IF item.type == "STR" -%]
     31psStringCopy([% item.name %])
     32[%- ELSE -%]
     33[% item.name %]
     34[%- END -%]
     35[% END -%]);
    3536
    3637    return object;
Note: See TracChangeset for help on using the changeset viewer.