Waitrud Weber’s blog

things and reminders for memories

WindowsAPI: windows-make: Analyzer: function step: 003: extract blocks of fucction we found: as prototype:

We could extract first funcyion line. it would be analyzed as function.

// prototype:
//
//
//
//
//
int aToken::block_to_function_end( int *index , int file_end, FILE *fp) {
	char dummy[256];
	char* a_token = nullptr;

	int breakable = 0;
	int ii = *index;

	int count_1 = 0;
	int count_2 = 0;

	// function start which is '{'.
	// function end which is '}'.

	for( ii=*index; iiblock = a_token; // the answer of token.
	err_msg_006( "a_token: %s\r\n", a_token );
	exit(-1);

	return 1;
}

---


end of m_fread: 1

fread: 1

end of m_fread: 1

end of m_fread: 1

fread: 1

end of m_fread: 1

end of m_fread: 1

fread: 1

end of m_fread: 1

end of m_fread: 1

fread: 1

end of m_fread: 1

a_token:  doPaste           PARM((byte *));