IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9243


Ignore:
Timestamp:
Oct 4, 2006, 1:25:08 PM (20 years ago)
Author:
jhoblitt
Message:

attempt to protect internal variables names from collision with parameter names

File:
1 edited

Legend:

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

    r7669 r9243  
    1515)
    1616{
    17     [% indented(table.object_name, "*object") %];
     17    [% indented(table.object_name, "*_object") %];
    1818
    19     object = psAlloc(sizeof([% table.object_name %]));
    20     psMemSetDeallocator(object, (psFreeFunc)[% table.object_name %]Free);
     19    _object = psAlloc(sizeof([% table.object_name %]));
     20    psMemSetDeallocator(_object, (psFreeFunc)[% table.object_name %]Free);
    2121
    2222[% FOREACH item = table.columns -%]
    2323[% IF item.type == "STR" -%]
    24     object->[% item.name %] = psStringCopy([% item.name %]);
     24    _object->[% item.name %] = psStringCopy([% item.name %]);
    2525[% ELSE -%]
    26     object->[% item.name %] = [% item.name %];
     26    _object->[% item.name %] = [% item.name %];
    2727[% END -%]
    2828[% END -%]
Note: See TracChangeset for help on using the changeset viewer.