IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5103 for trunk/psLib/src/types


Ignore:
Timestamp:
Sep 22, 2005, 4:39:06 PM (21 years ago)
Author:
drobbin
Message:

updated psMetadataConfigFormat to correctly output comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadataConfig.c

    r5057 r5103  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-09-15 21:22:22 $
     12*  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-09-23 02:39:06 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    12751275            snprintf(content, MAXSTR, "%d ", item->data.S32);
    12761276            strncat(mdString, content, MAXSTR);
    1277             if ( item->comment != NULL ) {
     1277            if ( strncmp(item->comment,"",2) ) {
    12781278                //                size = strlen(item->comment);
    12791279                snprintf(content, MAXSTR, " #%s \n", item->comment);
     
    12901290            snprintf(content, MAXSTR, "%f ", item->data.F32);
    12911291            strncat(mdString, content, MAXSTR);
    1292             if ( item->comment != NULL ) {
     1292            if ( strncmp(item->comment,"",2) ) {
     1293                //            if ( item->comment != NULL ) {
    12931294                //                size = strlen(item->comment);
    12941295                snprintf(content, MAXSTR, " #%s \n", item->comment);
     
    13051306            snprintf(content, MAXSTR, "%f ", item->data.F64);
    13061307            strncat(mdString, content, MAXSTR);
    1307             if ( item->comment != NULL ) {
     1308            if ( strncmp(item->comment,"",2) ) {
     1309                //            if ( item->comment != NULL ) {
     1310                //            if ( !strncmp((char*)item->comment, "", 2) ) {
    13081311                //                size = strlen(item->comment);
    13091312                snprintf(content, MAXSTR, " #%s \n", item->comment);
     
    13211324            snprintf(content, MAXSTR, "%s ", ((char *)(item->data.V)));
    13221325            strncat(mdString, content, MAXSTR);
    1323             if ( item->comment != NULL ) {
     1326            if ( strncmp(item->comment,"",2) ) {
     1327                //            if ( item->comment != NULL ) {
    13241328                //                size = strlen(item->comment);
    13251329                snprintf(content, MAXSTR, " #%s \n", item->comment);
     
    13421346                buffer2 = strtok(NULL, "\n");
    13431347            }
    1344             if ( item->comment != NULL ) {
     1348            if ( strncmp(item->comment,"",2) ) {
     1349                //            if ( item->comment != NULL ) {
    13451350                snprintf(content, MAXSTR, "\nEND   #%s\n\n", item->comment);
    13461351                strncat(mdString, content, MAXSTR);
     
    13771382            else
    13781383                strncat(mdString, "F ", MAXSTR);
    1379             if ( item->comment != NULL ) {
     1384            if ( strncmp(item->comment,"",2) ) {
     1385                //            if ( item->comment != NULL ) {
    13801386                snprintf(content, MAXSTR, " #%s \n", item->comment);
    13811387                strncat(mdString, content, MAXSTR);
     
    14311437                return NULL;
    14321438            }
    1433             if ( item->comment != NULL ) {
     1439            if ( strncmp(item->comment,"",2) ) {
     1440                //            if ( item->comment != NULL ) {
    14341441                //                size = strlen(item->comment);
    14351442                snprintf(content, MAXSTR, " #%s \n", item->comment);
Note: See TracChangeset for help on using the changeset viewer.