Waitrud Weber’s blog

things and reminders for memories

WindowsAPI: windows-make: Analyzer: not Qualified: and no reason.

Analyzed #include and #defined and else but which is #define tipically how could we mistake.

//
//
//
//
//
int Analyzer::parse ( char* filename ) {
	FILE *fp;
	aToken *iToken = nullptr;
	char *parse_token;
	int previous_index = 0;
	char dummy[256];
	char* a_token;

	int mode_token = 0;
	iToken = new aToken();
	fp = fopen ( filename, "rb" );
	int file_end = filesize ( fp );

	int anz_count = 0;
	int inc_count = 0;

	level_error_msg = 3;
	set_level_error_msg = 2;

	for( int i=0; igetToken( fp, &i, &file_end );

		if ( m_compare( (char*) "#define", parse_token ) == 1 ) {
			iToken->block_to( (char*)"\n", &i, file_end, fp);
			a_token = iToken->block;
			printf( "#define a_token: |%s|\r\n", a_token );
			// 20190923 printed and qualified.
			// dummy[0] = iToken->getChar( fp, &i, &file_end);
			// dummy[1] = '\0';
			// printf("#define next: i:%d  dummy: |%s|\r\n", i, dummy );
			// exit(-1);
			// end of m_fread: 1
			// #define next: i:1903  dummy: |#|
			anz_count++;
		} else if ( m_compare( (char*) "#include", parse_token ) == 1 ) {
			iToken->block_to( (char*)"\n", &i, file_end, fp);
			a_token = iToken->block;
			printf( "#include a_token: |%s|\r\n", a_token );
			inc_count++;
		} else {
			printf( "else: parse_token: |%s| a_token: |%s|\r\n", parse_token, a_token );
			printf("Exit(-1): Analyzer::parse: %s\r\n", filename);
			exit(-1);
		}

		iToken->free_main_token ();

		if ( inc_count == 6 ) break;
		// if ( anz_count == 3 ) break;

		switch( mode_token ) {
		case 0:
			break;
		case 1:
			break;
		}
	}

	fclose(fp);
	return 1;

}
WM_MESSG 003: 15 *(p_evt->uMsg):20
wButtonController::Process: 20 / 15<-WM_PAINT wParam -402581319 lParam 0 this->event->uMsg:6551900 *(this->event->uMsg)=20
wButtonController::WM_PAINT:
this->event->main_mode = 3
default:
M i: 0
#define a_token: |  NEEDSDIR               /* for stat() */
|
M i: 1904
#include a_token: | "copyright.h"
|
M i: 1920
#include a_token: | "xv.h"
|
M i: 1929
#include a_token: | "bits/copy"
|
M i: 1954
#include a_token: | "bits/copym"
|
M i: 1969
#define a_token: | CLIPPROP   "XV_CLIPBOARD"
|
M i: 2003
else: parse_token: || a_token: | CLIPPROP   "XV_CLIPBOARD"
|
Exit(-1): Analyzer::parse: .\xvcut.c