1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 07:54:13 +00:00

Remove display name handling block ifdef'd for X11R1. (#110)

X11R1 was released in 1987 and superseded by X11R2 in 1988.

We should be able to safely remove this code. We set the
preprocessor variable on all platforms to indicate that we're
on X11R4 (or later, I guess).
This commit is contained in:
Bruce Mitchener 2020-12-22 01:04:28 +07:00 committed by GitHub
parent ce7eb99b05
commit 5835dbd9f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,24 +95,13 @@ int main(int argc, char *argv[])
char *pos;
for (i = 1; i < argc; i++) {
#ifdef XV11R1
pos = strchr(argv[i], ':');
if (pos != NULL) {
Display_Name = argv[i];
continue;
}
#endif /* XV11R1 */
#ifndef XV11R1
if ((strcmp(argv[i], "-d") == 0) || (strcmp(argv[i], "-display") == 0)) {
if (i == argc) break;
pos = (char *)strchr(argv[++i], ':');
if (pos != NULL) { Display_Name = argv[i]; }
continue;
}
#endif /* XV11R1 */
} /*end for() */
}
if ((Xdisplay = XOpenDisplay(Display_Name)) != (Display *)NULL) {
/* success to connect X-server */