mirror of
https://github.com/rfivet/uemacs.git
synced 2025-11-23 11:41:15 -05:00
Revise types for names and keys bindings.
This commit is contained in:
23
main.c
23
main.c
@@ -164,15 +164,10 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialize the editor. */
|
||||
if( !init_bindings()) { /* initialize mapping of function to name and key */
|
||||
return( EXIT_FAILURE) ;
|
||||
}
|
||||
|
||||
vtinit(); /* Display */
|
||||
vtinit() ; /* Display */
|
||||
mloutfmt = mlwrite ;
|
||||
edinit("main"); /* Buffers, windows */
|
||||
varinit(); /* user variables */
|
||||
edinit( "main") ; /* Bindings, buffers, windows */
|
||||
varinit() ; /* user variables */
|
||||
|
||||
viewflag = FALSE; /* view mode defaults off in command line */
|
||||
gotoflag = FALSE; /* set to off to begin with */
|
||||
@@ -331,14 +326,14 @@ int main(int argc, char **argv)
|
||||
* as an argument, because the main routine may have been told to read in a
|
||||
* file by default, and we want the buffer name to be right.
|
||||
*/
|
||||
static void edinit(char *bname)
|
||||
{
|
||||
struct buffer *bp;
|
||||
static void edinit( char *bname) {
|
||||
buffer_p bp;
|
||||
struct window *wp;
|
||||
|
||||
if( NULL == (bp = bfind( bname, TRUE, 0)) /* First buffer */
|
||||
|| NULL == (blistp = bfind( "*List*", TRUE, BFINVS)) /* Buffer list buffer */
|
||||
|| NULL == (wp = (struct window *) malloc( sizeof( struct window)))) { /* First window */
|
||||
if( !init_bindings() /* initialize mapping of function to name and key */
|
||||
|| NULL == (bp = bfind( bname, TRUE, 0)) /* First buffer */
|
||||
|| NULL == (blistp = bfind( "*List*", TRUE, BFINVS)) /* Buffer list */
|
||||
|| NULL == (wp = malloc( sizeof *wp))) { /* First window */
|
||||
fputs( "First initialisation failed!\n", stderr) ;
|
||||
exit( EXIT_FAILURE) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user