Home | History | Annotate | Download | only in codesighs

Lines Matching full:current

611     Switch* current = NULL;
636 current = NULL;
660 current = gSwitches[switchLoop];
661 current->mValue = inArgv[loop];
666 current = gSwitches[switchLoop];
679 else if(NULL == current)
690 if(current == &gInputSwitch)
699 outOptions->mInput = fopen(current->mValue, "r");
703 ERROR_REPORT(retval, current->mValue, "Unable to open input file.");
707 outOptions->mInputName = strdup(current->mValue);
711 ERROR_REPORT(retval, current->mValue, "Unable to strdup.");
715 else if(current == &gOutputSwitch)
724 outOptions->mOutput = fopen(current->mValue, "a");
728 ERROR_REPORT(retval, current->mValue, "Unable to open output file.");
732 outOptions->mOutputName = strdup(current->mValue);
736 ERROR_REPORT(retval, current->mValue, "Unable to strdup.");
740 else if(current == &gHelpSwitch)
744 else if(current == &gModuleSwitch)
748 else if(current == &gTotalSwitch)
752 else if(current == &gMinSize)
758 arg = strtoul(current->mValue, &endScan, 0);
759 if(0 == errno && endScan != current->mValue)
766 ERROR_REPORT(retval, current->mValue, "Unable to convert to a number.");
769 else if(current == &gMaxSize)
775 arg = strtoul(current->mValue, &endScan, 0);
776 if(0 == errno && endScan != current->mValue)
783 ERROR_REPORT(retval, current->mValue, "Unable to convert to a number.");
786 else if(current == &gMatchClass)
790 dupMatch = strdup(current->mValue);
805 ERROR_REPORT(retval, current->mLongName, "Unable to expand array.");
811 ERROR_REPORT(retval, current->mValue, "Unable to duplicate string.");
814 else if(current == &gMatchScope)
818 dupMatch = strdup(current->mValue);
833 ERROR_REPORT(retval, current->mLongName, "Unable to expand array.");
839 ERROR_REPORT(retval, current->mValue, "Unable to duplicate string.");
842 else if(current == &gMatchModule)
846 dupMatch = strdup(current->mValue);
861 ERROR_REPORT(retval, current->mLongName, "Unable to expand array.");
867 ERROR_REPORT(retval, current->mValue, "Unable to duplicate string.");
870 else if(current == &gMatchSection)
874 dupMatch = strdup(current->mValue);
889 ERROR_REPORT(retval, current->mLongName, "Unable to expand array.");
895 ERROR_REPORT(retval, current->mValue, "Unable to duplicate string.");
898 else if(current == &gMatchObject)
902 dupMatch = strdup(current->mValue);
917 ERROR_REPORT(retval, current->mLongName, "Unable to expand array.");
923 ERROR_REPORT(retval, current->mValue, "Unable to duplicate string.");
926 else if(current == &gMatchSymbol)
930 dupMatch = strdup(current->mValue);
945 ERROR_REPORT(retval, current->mLongName, "Unable to expand array.");
951 ERROR_REPORT(retval, current->mValue, "Unable to duplicate string.");
957 ERROR_REPORT(retval, current->mLongName, "No handler for command line switch.");