Changeset 8779
- Timestamp:
- Sep 7, 2006, 5:46:24 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psMetadataConfig.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psMetadataConfig.c
r8778 r8779 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-09-08 03:4 2:24 $12 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-09-08 03:46:24 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1303 1303 item->name, #type, item->data.type); \ 1304 1304 if (item->comment && strncmp(item->comment, "", 2)) { \ 1305 psStringAppend(&content, " # %s", item->comment); \1305 psStringAppend(&content, " # %s", item->comment); \ 1306 1306 } \ 1307 1307 psStringAppend(&content, "\n"); … … 1310 1310 switch (item->type) { 1311 1311 case PS_DATA_METADATA_MULTI: { 1312 if (item->comment ) {1312 if (item->comment && strncmp(item->comment, "", 2)) { 1313 1313 psStringAppend(&content, "%s MULTI # %s\n", item->name, item->comment); 1314 1314 } else { … … 1332 1332 item->name, "BOOL", item->data.B ? "T" : "F"); 1333 1333 if (item->comment && strncmp(item->comment, "", 2)) { 1334 psStringAppend(&content, " # %s", item->comment);1334 psStringAppend(&content, " # %s", item->comment); 1335 1335 } 1336 1336 psStringAppend(&content, "\n"); … … 1370 1370 item->name, "STR", item->data.str); 1371 1371 if (item->comment && strncmp(item->comment,"",2)) { 1372 psStringAppend(&content, " # %s", item->comment);1372 psStringAppend(&content, " # %s", item->comment); 1373 1373 } 1374 1374 psStringAppend(&content, " \n"); … … 1387 1387 } 1388 1388 if ( strncmp(item->comment,"",2) ) { 1389 psStringAppend(&content, "\nEND #%s\n", item->comment);1389 psStringAppend(&content, "\nEND # %s\n", item->comment); 1390 1390 } else { 1391 1391 psStringAppend(&content, "\nEND\n"); … … 1415 1415 1416 1416 if (item->comment && strncmp(item->comment,"",2)) { 1417 psStringAppend(&content, " # %s", item->comment);1418 } 1419 psStringAppend(&content, " \n");1417 psStringAppend(&content, " # %s", item->comment); 1418 } 1419 psStringAppend(&content, "\n"); 1420 1420 break; 1421 1421 case PS_DATA_VECTOR: … … 1491 1491 return NULL; 1492 1492 } 1493 if (item->comment && strncmp(item->comment, "",2)) {1494 psStringAppend(&content, " # %s", item->comment);1493 if (item->comment && strncmp(item->comment, "", 2)) { 1494 psStringAppend(&content, " # %s", item->comment); 1495 1495 } 1496 1496 psStringAppend(&content, "\n");
Note:
See TracChangeset
for help on using the changeset viewer.
