[Prev][Next][Index]

problem on t3d



My program has something like the following:

    for(a = 1; a < argc; a++) {
      if(argv[a][0] == '-') {
      switch(argv[a][1]){
      case 'A' :      useArea       = TRUE;   break;
      case 'L' :      useLnArea     = TRUE;   break;
      case 'O' :      useOrder      = TRUE;   break;
#if COUNTER
        case 'c' :      reportCount   = TRUE;   break;
#endif
      case 'r' :      printReport   = FALSE;  break;
      case 's' :      vectorsSorted = FALSE;  break;
        case 't' :      reportTime    = TRUE;   break;
      case 'u' :      ioFormatted   = FALSE;  break;
      default :
  

In temp.C which is generated by pC++ unparser, the code is converted to:

         for (a = 1 ; a < argc ; (a)++)
         {
            if (argv[a][0] == '\0') 
            {
               {
                  switch (argv[a][1])
                  {
                     case '\0':
                     useArea = 1;
                     break;
                     case '\0':
                     useLnArea = 1;
                     break;
                     case '\0':
                     useOrder = 1;
                     break;
                     case '\0':
                     printReport = 0;
                     break;
                     case '\0':
                     vectorsSorted = 0;
                     break;
                     case '\0':
                     reportTime = 1;
                     break;
                     case '\0':
                     ioFormatted = 0;
                     break;
                     default:


All the quotes of characters are replaced by '\0'.  This only happens on the
T3D.

Shelby