void ReplaceInvalidFileNameChars(char *strName)
{
  TRACEENTER();

  unsigned char         *s, *d;

  s = SkipCharTableBytes(strName);
  d = s;

  while(*s)
  {
    if(isLegalChar(s, InvalidFileNameChars))
    {
      *d = *s;
    }
    else
    {
      switch(*s)
      {
        // These characters are not allowed in Windows.
        case '*': *d = 'x'; break;
        case '"': *d = '\''; break;

        default:
          *d = '-';
          break;
      }
    }
    d++;
    s++;
  }
  *d = '\0';

  TRACEEXIT();
}
예제 #2
0
Operand getOperand(char line[LINE_LENGTH], int i) {
	Operand op;

	/* Check if number */
	if (line[i] == '#')
	{
		
		int num;
		num = getNumber(line, &i);

		op.type = Number;
		op.data.number = num;
		
	}
	else if (line[i] == 'r' && !isLegalChar(line[i + 2]) && line[i + 1] > '0' && line[i + 1] < '7') {
		/* Register */
		op.type = Reg;
		switch (line[i + 1])
		{
		case 1: op.data.reg = r1; break;
		case 2: op.data.reg = r2; break;
		case 3: op.data.reg = r3; break;
		case 4: op.data.reg = r4; break;
		default: /* ERROR: Unknown register */ break;

		}
	}
	else {
		/* Label */
		char label[LABEL_LENGTH];
		int j;
		for (j = i; j < LABEL_LENGTH && isLegalChar(line[j]); j++)
		{
			/* j = i + <current_iteration_number> */
			label[j - i] = line[j];
		}

		if (line[j] == '[') {
			/* Special label stuff */

		}
	}

	return op;
}
예제 #3
0
파일: path.cpp 프로젝트: unoyx/vfs
bool isLegalName(MyString name)
{
    for (int i = 0; i < name.size(); ++i)
    {
        if (!isLegalChar(name[i]))
            return false;
    }
    if (name.startWith(_T(" ")) || name.size() > g_MAX_NAME_SIZE)
        return false;
    return true;
}
예제 #4
0
void hexString::operator = (const std::string Right){
	std::string temp = "";
	
	//strip out any illegal characters and whitespace
	for (int j = 0; j < Right.length(); j++){
		if (isLegalChar(Right[j])) {
			temp += Right[j];
		}
		//Convert lowercase characters to uppercase  ASCII a-f
		if (Right[j] > 96 && Right[j] < 103){
			char tempchar = Right[j] - 32;
			temp += tempchar;
		}
	}
		
	hexValue = temp;
	setIntValue();;
}
예제 #5
0
void hexString::operator = (const char Right[]){
	std::string temp = "";
	std::string newHexString(Right);
	
	//strip out any illegal characters and whitespace
	for (int j = 0; j < newHexString.length(); j++){
		if (isLegalChar(newHexString[j])) {
			temp += newHexString[j];
		}
		//Convert lowercase characters to uppercase  ASCII a-f
		if (newHexString[j] > 96 && newHexString[j] < 103){
			newHexString[j] -= 32;
			temp += newHexString[j];
		}
	}
		
	hexValue = temp;
	setIntValue();
}
예제 #6
0
hexString::hexString(const std::string newHexString){
	//Constructor from a string value.
	std::string temp = "";
	
	//strip out any illegal characters and whitespace
	for (int j = 0; j < newHexString.length(); j++){
		if (isLegalChar(newHexString[j])) {
			temp += newHexString[j];
		}
		//Convert lowercase characters to uppercase  ASCII a-f
		if (newHexString[j] > 96 && newHexString[j] < 103){
			char tempchar = newHexString[j] - 32;
			temp += tempchar;
		}
	}
		
	hexValue = temp;
	setIntValue();
}
예제 #7
0
char *ValidFileName(char *strName, eRemoveChars ControlCharacters, char *Result, int ResultSize)
{
  TRACEENTER();

  char                  *s, *d, *l;
  byte                  BytesPerCharacter;

  d = Result;

  if(strName && *strName && Result && (ResultSize > (int)strlen(strName)))
  {
    strcpy(Result, strName);
    s = strName;
    l = d + MAX_FILE_NAME_SIZE - 1;

    while(*s)
    {
      if(isLegalChar(s, ControlCharacters))
      {
        *d = *s;
        if(isUTF8Char(s, &BytesPerCharacter))
        {
          //As this is a multibyte UTF character, copy all bytes
          memcpy(d, s, BytesPerCharacter);
          d += BytesPerCharacter;
          s += (BytesPerCharacter - 1);
        }
        else
        {
          *d = *s;
          d++;
        }
      }
      if(d == l) break;
      s++;
    }
  }
  if(ResultSize) *d = '\0';

  TRACEEXIT();
  return Result;
}
예제 #8
0
//-------------------------------- MakeValidFileName ---------------------------
//
void MakeValidFileName (char *strName, eRemoveChars ControlCharacters)
{
  unsigned char         *p, c;
  int                   i;
  int                   fileNameLength;

  p = strName;
  i = 0;
  fileNameLength = strlen(strName);
  while (i < fileNameLength)
  {
    c = strName[i];
    if (isLegalChar(c, ControlCharacters))
    {
      *p = c;
      p++;
    }
    i++;
  }
  *p = '\0';
}
void CThreadManager::parseFile(const string& docName, int mCurrTargetTupleCount)
{
	P267_FILE *fp = P267_open(docName.c_str(), P267_IOREAD);

	if (fp != NULL)
	{
		CFreqList tempTupleList;

		deque<CToken> lsTokens;
		CToken aToken;
		string sTemp;

		int c,d=10;
		int wc = 0;

                printf("Analyzing %d-tuples for %s [tid=%lu]\n",
                        mCurrTargetTupleCount, docName.c_str(), pthread_self());

		//find file size
		fseek(fp, 0, SEEK_END); // seek to end of file 
		long filesize = ftell(fp); // get current file pointer 
		fseek(fp, 0, SEEK_SET); // seek back to beginning of file 
		//printf("\nparseFile(%s) with %d bytes....       \n",docName.c_str(), filesize);

		while (isDelimiter(c=P267_getcf(fp)));
	
		bool usAddressDetected=false;
		P267_ungetc(c,fp);
		while((c = P267_getcf(fp)) != P267_ENDFILE) 
		{
#if 0
                    printf("analyzing... thread_id = %lu, file = %s\n",
                            pthread_self(), docName.c_str());
#endif

			if (!isLegalChar(c) && (c!=P267_NEWLINE) && (c!=P267_CARRIAGERETURN))
			{
				wc++;
				//fprintf(ofp," [0x%x]\t%d\t unprintable\n", c, wc);
			}
		
			if (isLegalChar(c))
			{ 
				aToken.clear();
				aToken.LastDocFound(docName);
				sTemp="";

				//Form a generic token with all legal chars
				do 
				{
					sTemp += c;
					//fprintf(ofp,"%c", c);
				} 
				while (isLegalChar(c=P267_getcf(fp)));
				P267_ungetc(c,fp);

				wc++;
				//fprintf(ofp,"\t%d\t%s\n",wc,srcfilename);
			
				aToken.set(sTemp.c_str(),wc);

				////// Determine whether the period character signifies end of sentence.
				//if (aToken.Token()[aToken.Token().length()-1] == '.' || aToken.Token()[aToken.Token().length()-1] == ',')
				//{
				//	//period is last char, remove it.
				//	string s = aToken.Token().substr(0,aToken.Token().length()-1);
				//	aToken.set(s.c_str(), aToken.Pos());

				//	wc++; // this accounts for the extra period just removed.
				//}
			
				if (aToken.Token().empty())
					continue; // it is blank after trimming so skip it

				/// Insert into our token list
				lsTokens.push_back(aToken);

				/////// Determine if possible US address and put it into a single token
				if (isUSState(aToken.Token()))
				{	
					usAddressDetected=true;  // allow one more iteration to consume the zip code.
				} 
				else if (usAddressDetected && isZipCode(aToken.Token()))
				{
					// Assume we have a zip code. This is a US address, so merge all relevant tokens into one.
					mergeUSAddress(lsTokens, wc);
					usAddressDetected=false;
				} 
				else 
				{
					usAddressDetected=false; //false alarm, not US address
				}
			} 
			else
			{
				//we try to analyze when there is newline, but it has to be greater than minsize but less than maxsize
	
				if ((lsTokens.size() >= MAXPARAGRAPH_SIZE) || 
					( ((c==P267_NEWLINE) || (c==P267_CARRIAGERETURN)) && (lsTokens.size() > MINPARAGRAPH_SIZE)) )
				{
					// permute within the paragraph
					long currPos=ftell(fp);
					//printf("\b\b\b\b\b\b\b\b[%05.2lf%%]",currPos*100.0/filesize);
					//printf("parseFile(%s) [%05.2lf%%]\n",docName.c_str(), currPos*100.0/filesize);
					permuteParagraph(mCurrTargetTupleCount, docName, lsTokens, tempTupleList);

					//mergeTupleList(mCurrTargetTupleCount, tempTupleList);
					mergeTokenList(lsTokens, mCurrTargetTupleCount);
					lsTokens.clear();

					////// Output to file 
					//outputToFile(ofp, srcfilename, lsTokens);
				}		
			}

		}

		//permute and output remaining
		permuteParagraph(mCurrTargetTupleCount, docName, lsTokens, tempTupleList);

		//tempTupleList.pruneTermFreq(0.01, 0.3);
		tempTupleList.pruneTermFreq(TERMFREQ_FROM, TERMFREQ_TO);

//printf("thread_id = %lu, temp_tuple_list = %p\n",
//        pthread_self(), &tempTupleList);
		mergeTupleList(mCurrTargetTupleCount, tempTupleList);
		tempTupleList.clear();

		mergeTokenList(lsTokens, mCurrTargetTupleCount);
		lsTokens.clear();

		lsTokens.clear();
		tempTupleList.clear();

		P267_close(fp);
	}
	else
	{
		printf("Can't open %s\n", docName.c_str());
	}

}
예제 #10
0
int assemble(char *filename)
{
	FILE *data = NULL;
	int instructionCounter, dataCounter, lineCounter;
	char lineContent[LINE_LENGTH];

	instructionCounter = dataCounter = 0;
	data = fopen(filename, "r");

	/* Go over all lines */
	for (lineCounter = 1; fgets(lineContent, LINE_LENGTH, data); lineCounter++)
	{
		/* Go over each row individually */

		char label[LABEL_LENGTH];
		int currentChar, isLabel, isError;
		isError = isLabel = FALSE;
		/* First check if there is a label */
		for (currentChar = 0; currentChar != ':' && currentChar < LABEL_LENGTH; currentChar++)
		{
			/* Check if the character is allowed to be part of label */
			if (isLegalChar(lineContent[currentChar]))
			{
				label[currentChar] = lineContent[currentChar];
			}
			else {
				isError = TRUE;
				break;
			}
		}
		/* Check if loop terminated because it found a proper label. Would otherwise terminate before */
		if (lineContent[currentChar] == ':')
			isLabel = TRUE;

		/* Reset the current character if needed */
		currentChar = isLabel ? currentChar : 0;

		/* Right now label[] contains the label, if there is one. Need to check if it's a special instruction or an operator. */
		IGNORE_SPACES(lineContent, currentChar);

		/* Now there has to be either a dot ('.') or the beginning of an operator */
		if (lineContent[currentChar] == '.')
		{
			/* It is a special instruction */
			char specialInstruction[10];
			int i;

			for (i = 0, currentChar++; lineContent[currentChar] != ' '; i++, currentChar++) {
				specialInstruction[i] = lineContent[currentChar];
			}
			IGNORE_SPACES(lineContent, currentChar);
			if (strcmp("data", specialInstruction)) {
				/* .data instruction, get the numbers */
				int size = 0;
				int numbers[MAX_DATA];
				/* Get all numbers in the line */
				while (lineContent[currentChar] != '\n')
				{
					int n;

					n = getNumber(lineContent, &currentChar);
					if(lineContent[currentChar] != ',') { /* error */}
					numbers[size] = n;
					IGNORE_SPACES(lineContent, currentChar);

					size++;
				}

				/* Insert the data instruction to the table */

				Symbol sym;
				sym.counter = dataCounter;
				sym.size = size;
				/* If there is a label, attach it, otherwise attach a blank label "$" */
				if (isLabel)
					strcpy(sym.label, label);
				else
					strcpy(sym.label, BLANK_LABEL);
				sym.type = Data;
				for (i = 0; i < size; i++)
				{
					sym.content[i] = numbers[i];
				}

				/* Actually insert it */
				if (SymbolTable == NULL)
				{
					/* First time */

					SymbolTable = &sym;
					
				}
				else {
					if (lookup(SymbolTable, label) != NULL && isLabel) {
						/* Error: Can't have same labels twice */
					} else
						SymbolTable->next = &sym;
				}

				dataCounter += size;

			}
			else if (strcmp("string", specialInstruction)) {
				/* .string instruction */
				char str[MAX_DATA];
				int size = 0;
				IGNORE_SPACES(lineContent, lineCounter);
				
				while (lineContent[lineCounter] != '\n')
				{
					if (lineContent[lineCounter] == '"')
					{
						/* proper string beginning */
						int j;
						/* Save all chars in an array */
						for (j = 0, lineCounter++; lineContent[lineCounter] != '"'; size++, lineCounter++, j++) {
							str[size] = lineContent[lineCounter];
							dataCounter++;
						}
						str[size + 1] = '\0';
						/* Check if there is another string afterwards */
						lineCounter++;
						IGNORE_SPACES(lineContent, lineCounter);
						if (lineContent[lineCounter] == ',') {
							/* another string */
							lineCounter++;
						}
					}
					else {
						/* Missing , or " */
					}


				}
				/* Insert the string into the table */


			}
			else if (strcmp("extern", specialInstruction)) {
				/* .extern instruction */
			}
			else if (strcmp("entry", specialInstruction)) {
				/* .entry instruction */
			}
			else {
				/* unknown instruction */

			}
			
			
		}
		else
		{
			/* An instruction.  */
			short numOperands = 0;
			Operand operands[2];

			/* Get the operator */
			char op[MAX_OP_LENGTH] = { lineContent[currentChar],lineContent[currentChar + 1],lineContent[currentChar + 2],lineContent[currentChar + 3] };

			currentChar += lineContent[lineCounter] == ' ' ? 3 : 4;
			IGNORE_SPACES(lineContent, lineCounter);
			
			/* Now all that's remaining is either 1, 2, or no operands. */
			if (lineContent[lineCounter] == '\n')
			{
				/* No operands. */
			}
			else {
				numOperands++;
				/* One or two operands, get them. */

				operands[0] = getOperand(lineContent, lineCounter);

				/* Check if there's a second operand */

				IGNORE_SPACES(lineContent, lineCounter);

				if (lineContent[lineCounter] == ',') {
					numOperands++;
					getOperand(lineContent, lineCounter);

				}
				else if (lineContent[lineCounter] == '\n') {
					/* only one operand */
				}
				else {
					/* illegal char */
				}

				IGNORE_SPACES(lineContent,lineCounter);

				if (lineContent[lineCounter] != '\n') 
				{
					/* Error: can't have more characters after the 2nd operand */
				}
				else {
					/* Everything is all right. Calculate L and update the label, if it exists. */
					int L = 1;
					if (numOperands == 1) { L = 2; }
					if (numOperands == 2) {
						/* Complicated. Need to check more precisely operands. */

						if (operands[0].type == Reg && operands[1].type == Reg);
						if (operands[0].type == Label) L++;
					}

					/* Finally ready to finish with processing the line. */

					

					instructionCounter += L;
				}


			}


		}

	}
	
	fclose(data);
	/* Finished going over all lines first time, ready to create machine code */
	


}
예제 #11
0
int TAP_Main (void)
{
  AddTime(0, 0);
  BMP_WriteHeader(NULL, 0, 0);
  BootReason();
  BuildWindowBorder();
  BuildWindowInfo();
  BuildWindowLine();
  BuildWindowLineSelected();
  BuildWindowScrollBar();
  BuildWindowTitle();
  busyWait();
  CalcAbsSectorFromFAT(NULL, 0);
  CalcPrepare();
  CalcTopIndex(0, 0);
  Callback(0, NULL, 0, 0, 0, 0);
  CallbackHelper(NULL, NULL, 0, 0, 0, 0);
  CallBIOS(0, 0, 0, 0, 0);
  CallFirmware(0, 0, 0, 0, 0);
  CallTraceEnable(FALSE);
  CallTraceEnter(NULL);
  CallTraceExit(NULL);
  CallTraceInit();
  CaptureScreen(0, 0, 0, NULL, 0, 0);
  ChangeDirRoot();
  CheckSelectable(0, 0);
  combineVfdData(NULL, NULL);
  compact(NULL, 0);
  CompressBlock(NULL, 0, NULL);
  CompressedTFDSize(NULL, 0, NULL);
  CompressTFD(NULL, 0, NULL, 0, 0, NULL);
  CRC16(0, NULL, 0);
  CRC32 (0, NULL, 0);
  Delay(0);
  DialogEvent(NULL, NULL, NULL);
  DialogMsgBoxButtonAdd(NULL, FALSE);
  DialogMsgBoxExit();
  DialogMsgBoxInit(NULL, NULL, NULL, NULL);
  DialogMsgBoxShow();
  DialogMsgBoxShowInfo(0);
  DialogMsgBoxShowOK();
  DialogMsgBoxShowOKCancel(0);
  DialogMsgBoxShowYesNo(0);
  DialogMsgBoxShowYesNoCancel(0);
  DialogMsgBoxTitleSet(NULL, NULL);
  DialogProfileChange(NULL);
  DialogProfileCheck(NULL, NULL, FALSE);
  DialogProfileLoad(NULL);
  DialogProfileLoadDefault();
  DialogProfileLoadMy(NULL, FALSE);
  DialogProfileSave(NULL);
  DialogProfileSaveDefault();
  DialogProfileScrollBehaviourChange(FALSE, FALSE);
  DialogProgressBarExit();
  DialogProgressBarInit(NULL, NULL, 0, 0, NULL, 0, 0);
  DialogProgressBarSet(0, 0);
  DialogProgressBarShow();
  DialogProgressBarTitleSet(NULL);
  DialogWindowChange(NULL, FALSE);
  DialogWindowCursorChange(FALSE);
  DialogWindowCursorSet(0);
  DialogWindowExit();
  DialogWindowHide();
  DialogWindowInfoAddIcon(0, 0, NULL);
  DialogWindowInfoAddS(0, 0, 0, NULL, 0, 0, 0, 0, 0);
  DialogWindowInfoDeleteAll();
  DialogWindowInit(NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, 0, 0, 0);
  DialogWindowItemAdd(NULL, 0, NULL, 0, FALSE, FALSE, 0, NULL);
  DialogWindowItemAddSeparator();
  DialogWindowItemChangeFlags(0, FALSE, FALSE);
  DialogWindowItemChangeIcon(0, 0, NULL);
  DialogWindowItemChangeParameter(0, NULL, 0);
  DialogWindowItemChangeValue(0, NULL, 0);
  DialogWindowItemDelete(0);
  DialogWindowItemDeleteAll();
  DialogWindowRefresh();
  DialogWindowReInit(0, 0, 0, 0, 0, 0);
  DialogWindowScrollDown();
  DialogWindowScrollDownPage();
  DialogWindowScrollUp();
  DialogWindowScrollUpPage();
  DialogWindowShow();
  DialogWindowTabulatorSet(0, 0);
  DialogWindowTitleChange(NULL, NULL, NULL);
  DialogWindowTypeChange(0);
  DrawMsgBoxButtons();
  DrawMsgBoxTitle();
  DrawOSDLine(0, 0, 0, 0, 0, 0);
  DrawProgressBarBar(0, 0);
  DrawProgressBarTitle();
  DrawWindowBorder();
  DrawWindowInfo();
  DrawWindowLine(0);
  DrawWindowLines();
  DrawWindowScrollBar();
  DrawWindowTitle();
  EndMessageWin();
  exitHook();
  ExtractLine(NULL, NULL);
  FileSelector(NULL, NULL, NULL, 0);
  FileSelectorKey(0, 0);
  FindDBTrack();
  FindInstructionSequence(NULL, NULL, 0, 0, 0, 0);
  findSendToVfdDisplay(0, 0);
  FlashAddFavourite(NULL, 0, FALSE);
  FlashDeleteFavourites();
  FlashFindEndOfServiceNameTableAddress();
  FlashFindEndOfServiceTableAddress(0);
  FlashFindServiceAddress(0, 0, 0, 0);
  FlashFindTransponderIndex(0, 0, 0);
  FlashGetBlockStartAddress(0);
  FlashGetChannelNumber(0, 0, 0, 0);
  FlashGetSatelliteByIndex(0);
  FlashGetServiceByIndex(0, FALSE);
  FlashGetServiceByName (NULL, FALSE);
  FlashGetTransponderCByIndex(0);
  FlashGetTransponderSByIndex(0, 0);
  FlashGetTransponderTByIndex(0);
  FlashGetTrueLocalTime(0, 0);
  FlashGetType();
  FlashInitialize(0);
  FlashProgram();
  FlashReindexFavourites(0, 0, 0);
  FlashReindexTimers(0, 0, 0);
  FlashRemoveCASServices(FALSE);
  FlashRemoveServiceByIndex(0, FALSE);
  FlashRemoveServiceByIndexString(NULL, FALSE);
  FlashRemoveServiceByLCN(NULL, FALSE);
  FlashRemoveServiceByName(NULL, FALSE);
  FlashRemoveServiceByPartOfName(NULL, FALSE);
  FlashRemoveServiceByUHF(NULL, FALSE, FALSE);
  FlashServiceAddressToServiceIndex(NULL);
  FlashWrite(NULL, NULL, 0, NULL);
  FlushCache(NULL, 0);
  FreeOSDRegion(0);
  fwHook(0);
  GetAudioTrackPID(0, NULL);
  GetClusterPointer(0);
  GetCurrentEvent(NULL);
  GetEEPROMAddress();
  GetEEPROMPin();
  GetFrameBufferPixel(0, 0);
  GetFrameSize(0, 0);
  GetFWInfo(0, 0, 0, 0, 0, 0, 0, 0);
  GetHeapParameter(NULL, 0);
  GetLine(NULL, 0);
  GetOSDMapAddress();
  GetOSDRegionHeight(0);
  GetOSDRegionWidth(0);
  GetPinStatus();
  GetPIPPosition(NULL, NULL, NULL, NULL);
  getRECSlotAddress();
  GetSysOsdControl(0);
  GetToppyString(0);
  HasEnoughItemMemory();
  HDD_AAM_Disable();
  HDD_AAM_Enable(0);
  HDD_APM_Disable();
  HDD_APM_Enable(0);
  HDD_BigFile_Read(NULL, 0, 0, NULL);
  HDD_BigFile_Size(NULL);
  HDD_BigFile_Write(NULL, 0, 0, NULL);
  HDD_ChangeDir(NULL);
  HDD_DecodeRECHeader(NULL, NULL);
  HDD_EncodeRECHeader(NULL, NULL, 0);
  HDD_FappendOpen(NULL);
  HDD_FappendWrite(NULL, NULL);
  HDD_FindPCR(NULL, 0);
  HDD_FindPMT(NULL, 0, NULL);
  HDD_FreeSize();
  HDD_GetClusterSize();
  HDD_GetFileDir(NULL, 0, NULL);
  HDD_GetFirmwareDirCluster();
  HDD_GetHddID(NULL, NULL, NULL);
  HDD_IdentifyDevice(NULL);
  HDD_isAnyRecording();
  HDD_isCryptedStream(NULL, 0);
  HDD_isRecording(0);
  HDD_LiveFS_GetChainLength(0);
  HDD_LiveFS_GetFAT1Address();
  HDD_LiveFS_GetFAT2Address();
  HDD_LiveFS_GetFirstCluster(0);
  HDD_LiveFS_GetLastCluster(0);
  HDD_LiveFS_GetNextCluster(0);
  HDD_LiveFS_GetPreviousCluster(0);
  HDD_LiveFS_GetRootDirAddress();
  HDD_LiveFS_GetSuperBlockAddress();
  HDD_MakeNewRecName(NULL, 0);
  HDD_Move(NULL, NULL, NULL);
  HDD_ReadClusterDMA(0, NULL);
  HDD_ReadSector(0, 0);
  HDD_ReadSectorDMA(0, 0, NULL);
  HDD_RECSlotGetAddress(0);
  HDD_RECSlotIsPaused(0);
  HDD_RECSlotPause(0, FALSE);
  HDD_RECSlotSetDuration(0, 0);
  HDD_SetCryptFlag(NULL, 0);
  HDD_SetFileDateTime(NULL, 0, 0, 0);
  HDD_SetSkipFlag (NULL, FALSE);
  HDD_SetStandbyTimer(0);
  HDD_Smart_DisableAttributeAutoSave();
  HDD_Smart_DisableOperations();
  HDD_Smart_EnableAttributeAutoSave();
  HDD_Smart_EnableOperations();
  HDD_Smart_ExecuteOfflineImmediate(0);
  HDD_Smart_ReadData(0);
  HDD_Smart_ReadThresholdData(0);
  HDD_Smart_ReturnStatus();
  HDD_Stop();
  HDD_TAP_Callback(0, NULL, 0, 0, 0, 0);
  HDD_TAP_Disable(0, 0);
  HDD_TAP_DisableAll(0);
  HDD_TAP_DisabledEventHandler(0, 0, 0);
  HDD_TAP_GetCurrentDir(NULL);
  HDD_TAP_GetCurrentDirCluster();
  HDD_TAP_GetIDByFileName(NULL);
  HDD_TAP_GetIDByIndex(0);
  HDD_TAP_GetIndexByID(0);
  HDD_TAP_GetInfo(0, NULL);
  HDD_TAP_GetStartParameter();
  HDD_TAP_isAnyRunning();
  HDD_TAP_isBatchMode();
  HDD_TAP_isDisabled(0);
  HDD_TAP_isDisabledAll();
  HDD_TAP_isRunning(0);
  HDD_TAP_SendEvent(0, FALSE, 0, 0, 0);
  HDD_TAP_SetCurrentDirCluster(0);
  HDD_TAP_Start(NULL, FALSE, NULL, NULL);
  HDD_TAP_StartedByTAP();
  HDD_TAP_Terminate(0);
  HDD_TouchFile(NULL);
  HDD_TranslateDirCluster(0, NULL);
  HDD_TruncateFile(NULL, 0);
  HDD_Write(NULL, 0, NULL);
  HDD_WriteClusterDMA(0, NULL);
  HDD_WriteSectorDMA(0, 0, NULL);
  HookEnable(0, 0);
  HookExit();
  HookIsEnabled(0);
  HookMIPS_Clear(0, 0, 0);
  HookMIPS_Set(0, 0, 0);
  HookSet(0, 0);
  IMEM_Alloc(0);
  IMEM_Init(0);
  IMEM_isInitialized();
  IMEM_Compact();
  IMEM_Free(NULL);
  IMEM_GetInfo(NULL, NULL);
  IMEM_Kill();
  InfoTestGrid();
  INICloseFile();
  INIFindStartEnd(NULL, NULL, NULL, 0);
  INIGetARGB(NULL, NULL, NULL, NULL, NULL, 0);
  INIGetHexByte(NULL, 0, 0, 0);
  INIGetHexDWord(NULL, 0, 0, 0);
  INIGetHexWord(NULL, 0, 0, 0);
  INIGetInt(NULL, 0, 0, 0);
  INIGetString(NULL, NULL, NULL, 0);
  INIKillKey(NULL);
  INIOpenFile(NULL);
  INISaveFile(NULL);
  INISetARGB(NULL, 0, 0, 0, 0);
  INISetComment(NULL);
  INISetHexByte(NULL, 0);
  INISetHexDWord(NULL, 0);
  INISetHexWord(NULL, 0);
  INISetInt(NULL, 0);
  INISetString(NULL, NULL);
  initCodeWrapper(0);
  InitTAPAPIFix();
  InitTAPex();
  InteractiveGetStatus();
  InteractiveSetStatus(FALSE);
  intLock();
  intUnlock(0);
  isAnyOSDVisible(0, 0, 0, 0);
  isLegalChar(0, 0);
  isMasterpiece();
  isMPMenu();
  iso639_1(0);
  isOSDRegionAlive(0);
  isValidChannel(NULL);
  LangGetString(0);
  LangLoadStrings(NULL, 0, 0);
  LangUnloadStrings();
  Log(NULL, NULL, FALSE, 0, NULL);
  LowerCase(NULL);
  MakeValidFileName(NULL, 0);
  MHEG_Status();
  MPDisplayClearDisplay();
  MPDisplayClearSegments(0, 0);
  MPDisplayDisplayLongString(NULL);
  MPDisplayDisplayShortString(NULL);
  MPDisplayGetDisplayByte(0);
  MPDisplayGetDisplayMask(0);
  MPDisplayInstallMPDisplayFwHook();
  MPDisplaySetAmFlag(0);
  MPDisplaySetColonFlag(0);
  MPDisplaySetDisplayByte(0, 0);
  MPDisplaySetDisplayMask(0, 0);
  MPDisplaySetDisplayMemory(NULL);
  MPDisplaySetDisplayMode(0);
  MPDisplaySetPmFlag(0);
  MPDisplaySetSegments(0, 0);
  MPDisplayToggleSegments(0, 0);
  MPDisplayUninstallMPDisplayFwHook();
  MPDisplayUpdateDisplay();
  Now(NULL);
  OSDCopy(0, 0, 0, 0, 0, 0, 0);
  OSDLinesForeDirty(FALSE);
  ParseLine(NULL, NULL, 0);
  ProfileDirty();
  ProfileInit();
  ProfileLoad(NULL, FALSE);
  ProfileMayReload();
  ReadEEPROM(0, 0, NULL);
  ReadIICRegister(0, 0, 0, 0, NULL);
  Reboot(0);
  ReceiveSector(0);
  RTrim(NULL);
  SaveBitmap(NULL, 0, 0, NULL);
  SendEvent(0, 0, 0, 0);
  SendEventHelper(NULL, 0, 0, 0);
  SendHDDCommand(0, 0, 0, 0, 0, 0, 0);
  SendToFP(NULL);
  SeparatePathComponents(NULL, NULL, NULL, NULL);
  SetCrashBehaviour(0);
  setSymbol14(0, 0);
  setSymbol17(0, 0);
  ShowMessageWin(NULL, NULL, NULL, 0);
  ShowMessageWindow(NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  Shutdown(0);
  SoundSinus(0, 0, 0);
  StrEndsWith(NULL, NULL);
  stricstr(NULL, NULL);
  SubtitleGetStatus();
  SubtitleSetStatus(FALSE);
  SuppressedAutoStart();
  SwapDWords(0);
  SwapWords(0);
  TAP_Osd_PutFreeColorGd(0, 0, 0, NULL, FALSE, 0);
  TAPCOM_CloseChannel(NULL);
  TAPCOM_Finish(NULL, 0);
  TAPCOM_GetChannel(0, NULL, NULL, NULL, NULL);
  TAPCOM_GetReturnValue(NULL);
  TAPCOM_GetStatus(NULL);
  TAPCOM_LastAlive(NULL);
  TAPCOM_OpenChannel(0, 0, 0, NULL);
  TAPCOM_Reject(NULL);
  TAPCOM_StillAlive(NULL);
  TFDSize(NULL);
  TimeDiff(0, 0);
  TimeFormat(0, 0, 0);
  TunerGet(0);
  TunerSet(0);
  UncompressBlock(NULL, 0, NULL, 0);
  UncompressedFirmwareSize(NULL);
  UncompressedLoaderSize(NULL);
  UncompressedTFDSize(NULL);
  UncompressFirmware(NULL, NULL, NULL);
  UncompressLoader(NULL, NULL, NULL);
  UncompressTFD(NULL, NULL, NULL);
  UpperCase(NULL);
  ValidFileName(NULL, 0);
  WindowDirty();
  WriteIICRegister(0, 0, 0, 0, NULL);
  YUV2RGB(0, 0, 0, NULL, NULL, NULL);
  YUV2RGB2(0, 0, 0, NULL, NULL, NULL);

  return 0;
}