@@ -424,18 +424,18 @@ void SCHEMAprint(Schema schema, FILES *files, void *complexCol, int suffix)
424424 sprintf (schnm, " %s%s" , SCHEMA_FILE_PREFIX, StrToUpper (SCHEMAget_name (schema))); // TODO change file names to CamelCase?
425425 if (suffix == 0 ) {
426426 ocnt = snprintf (sufnm, MAX_LEN, " %s" , schnm);
427- if (ocnt > MAX_LEN) {
428- std::cerr << " Warning - classes_wrapper.cc line 425 - sufnm not large enough to hold schnm\n " ;
429- }
427+ if (ocnt > MAX_LEN) {
428+ std::cerr << " Warning - classes_wrapper.cc line 425 - sufnm not large enough to hold schnm\n " ;
429+ }
430430 } else {
431431 ocnt = snprintf (sufnm, MAX_LEN, " %s_%d" , schnm, suffix);
432- if (ocnt > MAX_LEN) {
433- std::cerr << " Warning - classes_wrapper.cc line 430 - sufnm not large enough to hold string\n " ;
434- }
432+ if (ocnt > MAX_LEN) {
433+ std::cerr << " Warning - classes_wrapper.cc line 430 - sufnm not large enough to hold string\n " ;
434+ }
435435 }
436436 ocnt = snprintf (fnm, MAX_LEN, " %s.h" , sufnm);
437- if (ocnt > MAX_LEN) {
438- std::cerr << " Warning - classes_wrapper.cc line 436 - sufnm not large enough to hold string\n " ;
437+ if (ocnt > MAX_LEN) {
438+ std::cerr << " Warning - classes_wrapper.cc line 436 - sufnm not large enough to hold string\n " ;
439439 }
440440
441441 if (!(incfile = (files -> inc) = FILEcreate (fnm))) {
@@ -478,8 +478,8 @@ void SCHEMAprint(Schema schema, FILES *files, void *complexCol, int suffix)
478478
479479 // 3. header for namespace to contain all formerly-global variables
480480 ocnt = snprintf (fnm, MAX_LEN, " %sNames.h" , schnm);
481- if (ocnt > MAX_LEN) {
482- std::cerr << " Warning - classes_wrapper.cc line 480 - fnm not large enough to hold schnm\n " ;
481+ if (ocnt > MAX_LEN) {
482+ std::cerr << " Warning - classes_wrapper.cc line 480 - fnm not large enough to hold schnm\n " ;
483483 }
484484
485485 if (!(files->names = FILEcreate (fnm))) {
@@ -497,9 +497,9 @@ void SCHEMAprint(Schema schema, FILES *files, void *complexCol, int suffix)
497497 if (suffix <= 1 ) {
498498 /* I.e., if this is our first pass with schema */
499499 ocnt = snprintf (fnm, MAX_LEN, " %s.init.cc" , schnm);
500- if (ocnt > MAX_LEN) {
501- std::cerr << " Warning - classes_wrapper.cc line 499 - fnm not large enough to hold string\n " ;
502- }
500+ if (ocnt > MAX_LEN) {
501+ std::cerr << " Warning - classes_wrapper.cc line 499 - fnm not large enough to hold string\n " ;
502+ }
503503
504504 /* Note - We use schnm (without the "_x" suffix sufnm has) since we
505505 ** only generate a single init.cc file. */
@@ -563,12 +563,12 @@ void SCHEMAprint(Schema schema, FILES *files, void *complexCol, int suffix)
563563 fprintf (files->classes , " \n #include \" %sNames.h\"\n " , schnm);
564564 } else {
565565 /* Just reopen the .init.cc (in append mode): */
566- ocnt = snprintf (fnm, MAX_LEN, " %s.init.cc" , schnm);
567- if (ocnt > MAX_LEN) {
568- std::cerr << " Warning - classes_wrapper.cc line 558 - sufnm not large enough to hold string\n " ;
569- }
566+ ocnt = snprintf (fnm, MAX_LEN, " %s.init.cc" , schnm);
567+ if (ocnt > MAX_LEN) {
568+ std::cerr << " Warning - classes_wrapper.cc line 558 - sufnm not large enough to hold string\n " ;
569+ }
570570
571- initfile = files->init = fopen (fnm, " a" );
571+ initfile = files->init = fopen (fnm, " a" );
572572 }
573573
574574 /* ********* record in files relating to entire input ***********/
0 commit comments