usr.bin/tn3270/ascii/termin.c
/*
 * Initialize the keyboard mapping file.
 */
Initialize the keyboard mapping file.
Initialize the keyboard mapping file .
void
InitMapping()
{
    extern state *InitControl();
    register struct astosc *ptr;
    if (!headOfControl) {
	headOfControl = InitControl((char *)0, 0, ascii_to_index);
	if (!headOfControl) {		
	    quit();
	}
	for (ptr = &astosc[0]; ptr <= &astosc[highestof(astosc)]; ptr++) {
	    if (ptr->function == FCN_SPACE) {
		spacePTR = ptr;
	    }
	}
    }
}
void InitMapping ( ) { extern state * InitControl ( ) ; register struct astosc * ptr ; if ( ! headOfControl ) { headOfControl = InitControl ( ( char * ) 0 , 0 , ascii_to_index ) ; if ( ! headOfControl ) { quit ( ) ; } for ( ptr = & astosc [ 0 ] ; ptr <= & astosc [ highestof ( astosc ) ] ; ptr ++ ) { if ( ptr -> function == FCN_SPACE ) { spacePTR = ptr ; } } } }
Initialize the keyboard mapping file.
Initialize the keyboard mapping file .
/* need to initialize */ /* should not occur */