IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2006, 2:16:35 PM (21 years ago)
Author:
jhoblitt
Message:

split global and per table data
forward port generated code to pslib 0.9.0

File:
1 edited

Legend:

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

    r4355 r5907  
    99int main ()
    1010{
    11     [% indented(object_name, "*object") %];
     11    [% indented(table.object_name, "*object") %];
    1212
    13     object = [% object_name %]Alloc(
     13    object = [% table.object_name %]Alloc(
    1414[%- SET i = 0 -%]
    15 [%- FOREACH item = columns -%]
     15[%- FOREACH item = table.columns -%]
    1616    [%- IF i == 0 -%][%- i = 1 -%][%- ELSE -%], [% END -%] [%- item.test -%]
    1717[%- END -%]
     
    2222    }
    2323
    24 [% FOREACH item = columns -%]
     24[% FOREACH item = table.columns -%]
    2525[% IF item.type == "S32" or item.type == "F32" or item.type == "F64" or item.type == "BOOL" -%]
    2626    if (!object->[% item.name %] == [% item.test %]) {
Note: See TracChangeset for help on using the changeset viewer.