Mercurial > hg > xemacs-beta
diff src/console-x.c @ 16:0293115a14e9 r19-15b91
Import from CVS: tag r19-15b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:20 +0200 |
parents | 376386a54a3c |
children | 3d6bfa290dbd |
line wrap: on
line diff
--- a/src/console-x.c Mon Aug 13 08:48:43 2007 +0200 +++ b/src/console-x.c Mon Aug 13 08:49:20 2007 +0200 @@ -46,25 +46,25 @@ { char *dotptr; - dotptr = strrchr ((char *) string_data (XSTRING (display)), ':'); + dotptr = strrchr ((char *) XSTRING_DATA (display), ':'); if (!dotptr) { - *hostname_length = string_length (XSTRING (display)); + *hostname_length = XSTRING_LENGTH (display); *display_length = 0; } else { - *hostname_length = dotptr - (char *) string_data (XSTRING (display)); + *hostname_length = dotptr - (char *) XSTRING_DATA (display); dotptr = strchr (dotptr, '.'); if (dotptr) - *display_length = (dotptr - (char *) string_data (XSTRING (display)) + *display_length = (dotptr - (char *) XSTRING_DATA (display) - *hostname_length); else - *display_length = string_length (XSTRING (display)) - *hostname_length; + *display_length = XSTRING_LENGTH (display) - *hostname_length; } - *screen_length = (string_length (XSTRING (display)) - *display_length + *screen_length = (XSTRING_LENGTH (display) - *display_length - *hostname_length); } @@ -92,7 +92,7 @@ split_up_display_spec (connection, &hostname_length, &display_length, &screen_length); - connection = make_string (string_data (XSTRING (connection)), + connection = make_string (XSTRING_DATA (connection), hostname_length + display_length); } @@ -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 *) string_data (XSTRING (connection)), + else if (!strncmp ((CONST char *) XSTRING_DATA (connection), "unix:", 5)) connection = concat2 (build_string ("localhost:"), Fsubstring (connection, make_int (5), Qnil)); @@ -209,7 +209,7 @@ hostname = Fsubstring (connection, Qzero, make_int (hostname_length)); hostname = canonicalize_host_name (hostname); connection = concat2 (hostname, - make_string (string_data (XSTRING (connection)) + make_string (XSTRING_DATA (connection) + hostname_length, display_length)); } @@ -260,7 +260,7 @@ split_up_display_spec (connection, &hostname_length, &display_length, &screen_length); - screen_str = build_string ((CONST char *) string_data (XSTRING (connection)) + screen_str = build_string ((CONST char *) XSTRING_DATA (connection) + hostname_length + display_length); connection = x_canonicalize_console_connection (connection, errb);