Expand|Select|Wrap|Line Numbers
- bool x =false
- for (i=0;i< MAX_WAFERQTY_PER_LOT ;i++)
- {
- if (strlen(inHouseScribeArray[i])> 12)
- {
- x = true;
- }
- else
- {
- x = false;
- break;
- }
- }
- if (x==false)
- {
- /* Transaction type */
- if (strcmp(action, OPERATION_VERIFY) == 0)
- {
- strcpy(txnType, "v");
- }
- else if (strcmp(action, OPERATION_INLINEVERIFY) == 0)
- {
- strcpy(txnType, "iv");
- }
- else if (strcmp(action, OPERATION_RANDOMIZE) == 0)
- {
- strcpy(txnType, "ra");
- }
- else if (strcmp(action, OPERATION_REORDER) == 0)
- {
- strcpy(txnType, "r");
- }
- /* Filename format = <lotId>.<trackout time>.to */
- strcpy(tmpBuff, toTime);
- pTmp = strtok(tmpBuff, " ");
- sprintf(fName, "%s.%s", Trim_End(lot), pTmp);
- pTmp = strtok( NULL, " ");
- strcat(fName, pTmp);
- strcat(fName, ".");
- strcat(fName, txnType);
- /* Open file and write out header info */
- sprintf(fullPath, "%s/%s", "AbnormalData" ,fName);
- fPtr = fopen(fullPath, "w");
- if( fPtr == NULL )
- {
- sprintf(tmpBuff, "Write_TO_DataFile: can't open %s", fullPath);
- Log_Error(tmpBuff, parms->errorLog);
- exit(1);
- }
- /*
- ** Replace the newline with a null
- */
- pTmp = strchr(startDate,'\n');
- if( pTmp != NULL)
- *pTmp=NULL;
- /*
- ** Write out to file.
- */
- /* Header */
- fprintf(fPtr, "#Date range %.20s - %.20s\n", startDate, endDate);
- fprintf(fPtr, "%-10s %d\n", "Revision", 1);
- fprintf(fPtr, "%-10s %.10s\n", "Action", action);
- fprintf(fPtr, "%-10s %.40s\n", "Lot", lot);
- fprintf(fPtr, "%-10s %.40s\n", "Operation", operation);
- fprintf(fPtr, "%-10s %.20s\n", "Suboperation", subOperation);
- fprintf(fPtr, "%-10s %.3s\n", "actualqty", actualQty);
- fprintf(fPtr, "%-10s %.10s\n", "equipment", equipment);
- fprintf(fPtr, "%-15s %.15s\n", "device", device);
- fprintf(fPtr, "%-10s %.15s\n", "technology", tech);
- fprintf(fPtr, "%-9s %20.20s\n", "Date", toTime);
- pTmp = strrchr(employee, ':');
- if( pTmp != NULL )
- fprintf(fPtr,"%-10s %.20s","Employee", ++pTmp);
- else
- fprintf(fPtr,"%-10s %.20s","Employee", employee);
- fprintf(fPtr,"\n%%wafer orig_slot orig_cass in_house_scribe vendor_scribe final_slot final_cass\n\n");
- /* Wafer content */
- i = 0;
- while((inHouseScribeArray[i][0] != NULL) && (i < MAX_WAFERQTY_PER_LOT))
- {
- fprintf(fPtr,"wafer %3.3s %6.6s %20.20s %20.20s %3.3s %6.6s\n",
- origSlotArray[i], origCassArray[i], inHouseScribeArray[i],
- vendorScribeArray[i], finalSlotArray[i], finalCassArray[i]);
- i++;
- }
- fclose(fPtr);
- }
- else
- {
- /* Transaction type */
- if (strcmp(action, OPERATION_VERIFY) == 0)
- {
- strcpy(txnType, "v");
- }
- else if (strcmp(action, OPERATION_INLINEVERIFY) == 0)
- {
- strcpy(txnType, "iv");
- }
- else if (strcmp(action, OPERATION_RANDOMIZE) == 0)
- {
- strcpy(txnType, "ra");
- }
- else if (strcmp(action, OPERATION_REORDER) == 0)
- {
- strcpy(txnType, "r");
- }
- /* Filename format = <lotId>.<trackout time>.to */
- strcpy(tmpBuff, toTime);
- pTmp = strtok(tmpBuff, " ");
- sprintf(fName, "%s.%s", Trim_End(lot), pTmp);
- pTmp = strtok( NULL, " ");
- strcat(fName, pTmp);
- strcat(fName, ".");
- strcat(fName, txnType);
- /* Open file and write out header info */
- sprintf(fullPath, "%s/%s", fPath ,fName);
- fPtr = fopen(fullPath, "w");
- if( fPtr == NULL )
- {
- sprintf(tmpBuff, "Write_TO_DataFile: can't open %s", fullPath);
- Log_Error(tmpBuff, parms->errorLog);
- exit(1);
- }
- /*
- ** Replace the newline with a null
- */
- pTmp = strchr(startDate,'\n');
- if( pTmp != NULL)
- *pTmp=NULL;
- /*
- ** Write out to file.
- */
- /* Header */
- fprintf(fPtr, "#Date range %.20s - %.20s\n", startDate, endDate);
- fprintf(fPtr, "%-10s %d\n", "Revision", 1);
- fprintf(fPtr, "%-10s %.10s\n", "Action", action);
- fprintf(fPtr, "%-10s %.40s\n", "Lot", lot);
- fprintf(fPtr, "%-10s %.40s\n", "Operation", operation);
- fprintf(fPtr, "%-10s %.20s\n", "Suboperation", subOperation);
- fprintf(fPtr, "%-10s %.3s\n", "actualqty", actualQty);
- fprintf(fPtr, "%-10s %.10s\n", "equipment", equipment);
- fprintf(fPtr, "%-15s %.15s\n", "device", device);
- fprintf(fPtr, "%-10s %.15s\n", "technology", tech);
- fprintf(fPtr, "%-9s %20.20s\n", "Date", toTime);
- pTmp = strrchr(employee, ':');
- if( pTmp != NULL )
- fprintf(fPtr,"%-10s %.20s","Employee", ++pTmp);
- else
- fprintf(fPtr,"%-10s %.20s","Employee", employee);
- fprintf(fPtr,"\n%%wafer orig_slot orig_cass in_house_scribe vendor_scribe final_slot final_cass\n\n");
- /* Wafer content */
- i = 0;
- while((inHouseScribeArray[i][0] != NULL) && (i < MAX_WAFERQTY_PER_LOT))
- {
- fprintf(fPtr,"wafer %3.3s %6.6s %20.20s %20.20s %3.3s %6.6s\n",
- origSlotArray[i], origCassArray[i], inHouseScribeArray[i],
- vendorScribeArray[i], finalSlotArray[i], finalCassArray[i]);
- i++;
- }
- fclose(fPtr);
- }
- #ifdef DEBUG
- printf("LEAVING Write_SA_DataFile\n");
- #endif
- } /* end Write_SA_DataFile */
Syntax error at line 1825, column 7, file ExtractHDBDataForWaferSleuth_test.pc:
Error at line 1825, column 7 in file ExtractHDBDataForWaferSleuth_test.pc
Expand|Select|Wrap|Line Numbers
- bool x=false;
- ......1
- PCC-S-02201, Encountered the symbol "x" when expecting one of the following:
- ; , = : ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>=
- &&= ||= ^= | & == != <= >= << >> ++ -- ->
- The symbol ";" was substituted for "x" to continue.
- Error at line 0, column 0 in file ExtractHDBDataForWaferSleuth_test.pc
- PCC-F-02102, Fatal error while doing C preprocessing
- *** Error code 1
- make: Fatal error: Command failed for target `ExtractHDBDataForWaferSleuth_test.
- c'