# HG changeset patch # User Karoly Lorentey # Date 1121034328 0 # Node ID 76e51706154eed8a9481305c03d4258fda28968e # Parent f92ac4808cd4e39020fc89e9678b8fbb6ce70ac1 Rename term_init to init_tty. * src/term.c (term_init): Rename to init_tty. * src/dispextern.h (term_init): Rename to init_tty. * src/dispnew.c (init_display): Update. * src/frame.c (Fmake_terminal_frame): Update. * src/term.c (tty_setup_colors): Update comment. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-381 diff -r f92ac4808cd4 -r 76e51706154e src/dispextern.h --- a/src/dispextern.h Sun Jul 10 22:18:46 2005 +0000 +++ b/src/dispextern.h Sun Jul 10 22:25:28 2005 +0000 @@ -2933,7 +2933,7 @@ extern struct display *get_named_tty_display P_ ((char *)); EXFUN (Fdisplay_tty_type, 1); extern struct display *init_initial_display P_ ((void)); -extern struct display *term_init P_ ((char *, char *, int)); +extern struct display *init_tty P_ ((char *, char *, int)); extern void delete_tty P_ ((struct display *)); extern void fatal P_ ((/* char *, ... */)); extern void cursor_to P_ ((struct frame *, int, int)); diff -r f92ac4808cd4 -r 76e51706154e src/dispnew.c --- a/src/dispnew.c Sun Jul 10 22:18:46 2005 +0000 +++ b/src/dispnew.c Sun Jul 10 22:25:28 2005 +0000 @@ -6727,7 +6727,7 @@ struct frame *f = XFRAME (selected_frame); /* Open a display on the controlling tty. */ - d = term_init (0, terminal_type, 1); /* Errors are fatal. */ + d = init_tty (0, terminal_type, 1); /* Errors are fatal. */ /* Convert the initial frame to use the new display. */ if (f->output_method != output_initial) diff -r f92ac4808cd4 -r 76e51706154e src/frame.c --- a/src/frame.c Sun Jul 10 22:18:46 2005 +0000 +++ b/src/frame.c Sun Jul 10 22:25:28 2005 +0000 @@ -736,7 +736,7 @@ type[SBYTES (tty_type)] = 0; } - d = term_init (name, type, 0); /* Errors are not fatal. */ + d = init_tty (name, type, 0); /* Errors are not fatal. */ } f = make_terminal_frame (d); diff -r f92ac4808cd4 -r 76e51706154e src/term.c --- a/src/term.c Sun Jul 10 22:18:46 2005 +0000 +++ b/src/term.c Sun Jul 10 22:25:28 2005 +0000 @@ -2023,7 +2023,7 @@ /* Setup one of the standard tty color schemes according to MODE. MODE's value is generally the number of colors which we want to support; zero means set up for the default capabilities, the ones - we saw at term_init time; -1 means turn off color support. */ + we saw at init_tty time; -1 means turn off color support. */ void tty_setup_colors (struct tty_display_info *tty, int mode) { @@ -2358,7 +2358,7 @@ If MUST_SUCCEED is true, then all errors are fatal. */ struct display * -term_init (char *name, char *terminal_type, int must_succeed) +init_tty (char *name, char *terminal_type, int must_succeed) { char *area; char **address = &area; @@ -2376,7 +2376,7 @@ /* If we already have an active display on the given device, use that. If all displays are suspended, create a new one instead. */ - /* XXX Perhaps this should be made explicit by having term_init + /* XXX Perhaps this should be made explicit by having init_tty always create a new display and separating display and frame creation on Lisp level. */ display = get_named_tty_display (name); @@ -2931,7 +2931,7 @@ #endif /* not WINDOWSNT */ } -/* Auxiliary error-handling function for term_init. +/* Auxiliary error-handling function for init_tty. Free BUFFER and delete DISPLAY, then call error or fatal with str1 or str2, respectively, according to MUST_SUCCEED. */