Ignore:
Timestamp:
06/22/12 17:27:12 (13 years ago)
Author:
Mathieu Morlighem
Message:

cosmetics

Location:
issm/trunk-jpl/src/c/objects/KML
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/KML/KMLFileReadUtils.cpp

    r12515 r12519  
    127127
    128128//      if      (itag)
    129 //              if(true) _pprintLine_("tag buffer (length=" << ibuf << "):");
     129//              _pprintLine_("tag buffer (length=" << ibuf << "):");
    130130//      else if (ifield)
    131 //              if(true) _pprintLine_("field buffer (length=" << ibuf << "):");
    132 //      if(true) _pprintLine_("" << buffer);
     131//              _pprintLine_("field buffer (length=" << ibuf << "):");
     132//      _pprintLine_("" << buffer);
    133133
    134134        if (!ibuf)
     
    193193                }
    194194
    195 //      if(true) _pprintLine_("comment buffer (length=" << ibuf << "):");
    196 //      if(true) _pprintLine_("" << buffer);
     195//      _pprintLine_("comment buffer (length=" << ibuf << "):");
     196//      _pprintLine_("" << buffer);
    197197
    198198        if (!ibuf)
     
    254254
    255255        ktokn=strtok(ktagi,"< >");
    256 //      if(true) _pprintLine_("KMLFileTagName -- initial token=\"" << ktokn << "\".");
     256//      _pprintLine_("KMLFileTagName -- initial token=\"" << ktokn << "\".");
    257257
    258258        if (!pname) {
     
    264264
    265265        if (maxlen && (maxlen < strlen(ktokn))) {
    266                 if(true) _pprintLine_("KMLFileTagName -- string field too short for " << ktag << ".");
    267                 if(true) _pprintLine_("KMLFileTagName -- \"" << ktokn << "\" truncated to " << maxlen << " characters.");
     266                _pprintLine_("KMLFileTagName -- string field too short for " << ktag << ".");
     267                _pprintLine_("KMLFileTagName -- \"" << ktokn << "\" truncated to " << maxlen << " characters.");
    268268                strncpy(pname,ktokn,maxlen);
    269269        }
     
    300300        /*  return first non blank and move past subsequent blank  */
    301301        ktokn=strtok(ktagi," ");
    302 //      if(true) _pprintLine_("KMLFileTagAttrib -- initial token=\"" << ktokn << "\".");
     302//      _pprintLine_("KMLFileTagAttrib -- initial token=\"" << ktokn << "\".");
    303303
    304304        /*  return next non " =?/>" and move past subsequent " =?/>"  */
     
    307307                /*  return next non quote and move past subsequent quote  */
    308308                ktokv=strtok(NULL,quote);
    309 //              if(true) _pprintLine_("KMLFileTagAttrib -- attribute " << ktokn << "=\"" << ktokv << "\".");
     309//              _pprintLine_("KMLFileTagAttrib -- attribute " << ktokn << "=\"" << ktokv << "\".");
    310310
    311311/*  add the attribute to the dataset  */
     
    323323                (!strncmp(&ktag[0],"<"        ,1) && !strncmp(&ktag[strlen(ktag)-2],"/>",2)))
    324324                isolo=1;
    325 //      if(true) _pprintLine_("KMLFileTagAttrib -- isolo=" << isolo << ".");
     325//      _pprintLine_("KMLFileTagAttrib -- isolo=" << isolo << ".");
    326326
    327327        return(isolo);
     
    357357                        xfree((void**)&kstr);
    358358
    359 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pival << ".");
     359//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pival << ".");
    360360
    361361        return(0);
     
    391391                        xfree((void**)&kstr);
    392392
    393 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << (*pbval ? "true" : "false") << ".");
     393//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << (*pbval ? "true" : "false") << ".");
    394394
    395395        return(0);
     
    428428
    429429        if (maxlen && (maxlen < strlen(kstr))) {
    430                 if(true) _pprintLine_("KMLFileTokenParse -- string field too short for " << ktag << ".");
    431                 if(true) _pprintLine_("KMLFileTokenParse -- \"" << kstr << "\" truncated to " << maxlen << " characters.");
     430                _pprintLine_("KMLFileTokenParse -- string field too short for " << ktag << ".");
     431                _pprintLine_("KMLFileTokenParse -- \"" << kstr << "\" truncated to " << maxlen << " characters.");
    432432                strncpy(pstr,kstr,maxlen);
    433433        }
     
    452452                        xfree((void**)&kstr);
    453453
    454 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=\"" << pstr << "\".");
     454//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=\"" << pstr << "\".");
    455455
    456456        return(pstr);
     
    486486                        xfree((void**)&kstr);
    487487
    488 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pfval << ".");
     488//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pfval << ".");
    489489
    490490        return(0);
     
    520520                        xfree((void**)&kstr);
    521521
    522 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pdval << ".");
     522//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pdval << ".");
    523523
    524524        return(0);
     
    578578                        xfree((void**)&kstr);
    579579
    580 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=...");
     580//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=...");
    581581//      for (j=0; j<=i; j++)
    582 //              if(true) _pprintLine_("   [" << j << "]: " << (*pdval)[j] << "g");
     582//              _pprintLine_("   [" << j << "]: " << (*pdval)[j] << "g");
    583583
    584584        return(0);
     
    631631
    632632        if (j != 2)
    633                 if(true) _pprintLine_("KMLFileTokenParse -- Double [m x 3] field for " << ktag << " does not have multiple of 3 values.");
     633                _pprintLine_("KMLFileTokenParse -- Double [m x 3] field for " << ktag << " does not have multiple of 3 values.");
    634634
    635635/*  get additional token and compare to closing tag  */
     
    645645                        xfree((void**)&kstr);
    646646
    647 //      if(true) _pprintLine_("KMLFileTokenParse -- " << ktag << "=...");
     647//      _pprintLine_("KMLFileTokenParse -- " << ktag << "=...");
    648648//      for (j=0; j<=i; j++)
    649 //              if(true) _pprintLine_("   [" << j << "][0-2]: " << (*pdval3)[j][0] << "g," << (*pdval3)[j][1] << "g," << (*pdval3)[j][2] << "g");
     649//              _pprintLine_("   [" << j << "][0-2]: " << (*pdval3)[j][0] << "g," << (*pdval3)[j][1] << "g," << (*pdval3)[j][2] << "g");
    650650
    651651        return(0);
     
    661661        opening tag, must find corresponding closing tag  */
    662662
    663         if(true) _pprintLine_("KMLFileTagSkip -- input tag " << ktag << ".");
     663        _pprintLine_("KMLFileTagSkip -- input tag " << ktag << ".");
    664664
    665665/*  if next token is a closing tag, compare to input  */
     
    670670                                 (kstr[1] == '/') &&
    671671                                 (!strncmp(&(kstr[2]),&(ktag[1]),(strcspn(ktag," >")-1)/sizeof(char)))) {
    672                         if(true) _pprintLine_("KMLFileTagSkip -- closing tag " << kstr << ".");
     672                        _pprintLine_("KMLFileTagSkip -- closing tag " << kstr << ".");
    673673                        xfree((void**)&kstr);
    674674                        return(0);
     
    679679                else if ((kstr[0] == '<') &&
    680680                                 (kstr[1] != '/')) {
    681                         if(true) _pprintLine_("KMLFileTagSkip -- opening tag " << kstr << ".");
     681                        _pprintLine_("KMLFileTagSkip -- opening tag " << kstr << ".");
    682682                        KMLFileTagSkip(kstr,
    683683                                                   fid);
  • issm/trunk-jpl/src/c/objects/KML/KML_Object.cpp

    r12515 r12519  
    253253
    254254        else if (!strncmp(kstr,"<",1)) {
    255                 if(true) _pprintLine_("KML_Object::Read -- Unrecognized opening tag " << kstr << ".");
     255                _pprintLine_("KML_Object::Read -- Unrecognized opening tag " << kstr << ".");
    256256//              KMLFileTagSkip(kstr,
    257257//                                         fid);
  • issm/trunk-jpl/src/c/objects/KML/KML_Unknown.cpp

    r12515 r12519  
    139139        name=KMLFileTagName(NULL,
    140140                                                kstr);
    141 //      if(true) _pprintLine_("KML_Unknown::Read -- opening name=" << name << ".");
     141//      _pprintLine_("KML_Unknown::Read -- opening name=" << name << ".");
    142142
    143143/*  get object attributes and check for solo tag  */
     
    151151        while (kstri=KMLFileToken(fid,
    152152                                                          &ncom,&pcom)) {
    153 //              if(true) _pprintLine_("KML_Unknown::Read -- kstri=" << kstri << ".");
     153//              _pprintLine_("KML_Unknown::Read -- kstri=" << kstri << ".");
    154154                if      (!strncmp(&kstri[0],"</", 2) &&
    155155                                 !strncmp(&kstri[2],name,strlen(name))) {
    156 //                      if(true) _pprintLine_("KML_Unknown::Read -- closing name=" << name << ".");
     156//                      _pprintLine_("KML_Unknown::Read -- closing name=" << name << ".");
    157157                        xfree((void**)&kstri);
    158158                        break;
Note: See TracChangeset for help on using the changeset viewer.