IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2005, 11:55:33 AM (21 years ago)
Author:
jhoblitt
Message:

add const to params where appropriate
tt cleanup

File:
1 edited

Legend:

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

    r4172 r4196  
    44
    55[% object_name %] *[% object_name %]Alloc(
    6     [%- SET i = 0 -%]
    7     [%- FOREACH item = columns -%]
    8         [%- IF i == 0 -%]
    9             [%- i = 1 -%]
    10 
    11         [%- ELSE -%]
    12 ,
    13         [%- END -%]
    14         [%- item.ctype %] [% item.name %]
    15         [%- i = i + 1 -%]
    16     [%- END -%]
     6[%- SET i = 0 -%]
     7[% FOREACH item = columns -%]
     8[% IF i == 0 %][% i = 1 %][% ELSE %], [% END -%]
     9[% IF item.type == "STR" -%]
     10const char *[% item.name %]
     11[%- ELSE -%]
     12[% item.ctype %] [% item.name %]
     13[%- END -%]
     14[% END -%]
    1715)
    1816{
     
    2321
    2422[% FOREACH item = columns -%]
     23[% IF item.type == "STR" -%]
     24    object->[% item.name %] = psStringCopy([% item.name %]);
     25[% ELSE -%]
    2526    object->[% item.name %] = [% item.name %];
     27[% END -%]
    2628[% END -%]
    2729
Note: See TracChangeset for help on using the changeset viewer.