Mercurial > hg > xemacs-beta
diff src/console-x.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | 11054d720c21 |
line wrap: on
line diff
--- a/src/console-x.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/console-x.c Mon Aug 13 11:20:41 2007 +0200 @@ -102,7 +102,7 @@ static Lisp_Object get_display_arg_connection (void) { - const char *disp_name; + CONST char *disp_name; /* If the user didn't explicitly specify a display to use when they called make-x-device, then we first check to see if a @@ -140,12 +140,12 @@ /* assert: display_arg is only set if we found the display arg earlier so we can't fail to find it now. */ assert (disp_name != NULL); - conn = build_ext_string (disp_name, Qctext); + conn = build_ext_string (disp_name, FORMAT_CTEXT); free_argc_argv (argv); return conn; } else - return build_ext_string (XDisplayName (0), Qctext); + return build_ext_string (XDisplayName (0), FORMAT_CTEXT); } /* "semi-canonicalize" means convert to a nicer form for printing, but @@ -181,7 +181,7 @@ /* Check for a couple of standard special cases */ if (string_byte (XSTRING (connection), 0) == ':') connection = concat2 (build_string ("localhost"), connection); - else if (!strncmp ((const char *) XSTRING_DATA (connection), + else if (!strncmp ((CONST char *) XSTRING_DATA (connection), "unix:", 5)) connection = concat2 (build_string ("localhost:"), Fsubstring (connection, make_int (5), Qnil)); @@ -260,7 +260,7 @@ split_up_display_spec (connection, &hostname_length, &display_length, &screen_length); - screen_str = build_string ((const char *) XSTRING_DATA (connection) + screen_str = build_string ((CONST char *) XSTRING_DATA (connection) + hostname_length + display_length); connection = x_canonicalize_console_connection (connection, errb); @@ -280,9 +280,3 @@ CONSOLE_HAS_METHOD (x, initially_selected_for_input); } - -void -reinit_console_type_create_x (void) -{ - REINITIALIZE_CONSOLE_TYPE (x); -}