IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2005, 2:54:17 PM (21 years ago)
Author:
jhoblitt
Message:

factor out intermediate value variables where it doesn't impact readability

File:
1 edited

Legend:

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

    r4196 r4326  
    88{
    99    psDB            *dbh;
    10     bool            status;
    1110
    1211    dbh = psDBInit("localhost", "test", NULL, "test");
     
    1514    }
    1615
    17     status = [% namespace %]Insert(dbh,
     16    if (![% namespace %]Insert(dbh,
    1817[%- SET i = 0 -%]
    1918[%- FOREACH item = columns -%]
    2019[%- IF i == 0 -%][%- i = 1 -%][%- ELSE -%], [% END -%] [%- item.test -%]
    2120[%- END -%]
    22 );
    23 
    24     if (!status) {
     21)) {
    2522        exit(EXIT_FAILURE);
    2623    }
Note: See TracChangeset for help on using the changeset viewer.