Changeset 2619 for trunk/texinfo/info
- Timestamp:
- Mar 12, 2006, 6:02:46 PM (19 years ago)
- Location:
- trunk/texinfo/info
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/texinfo/info/echo-area.c
r2617 r2619 592 592 593 593 counter = input_line_end - input_line_point; 594 594 595 595 for (i = input_line_point - len; counter; i++, counter--) 596 596 input_line[i] = input_line[i + len]; … … 894 894 return (line); 895 895 } 896 896 897 897 /* Read a line in the echo area with completion over COMPLETIONS. */ 898 898 char * … … 1488 1488 pause_or_input (void) 1489 1489 { 1490 #if def FD_SET1490 #if defined(FD_SET) && !defined(__INNOTEK_LIBC__) 1491 1491 struct timeval timer; 1492 1492 fd_set readfds; -
trunk/texinfo/info/filesys.h
r2617 r2619 79 79 /* The default value of INFOPATH. */ 80 80 #if !defined (DEFAULT_INFOPATH) 81 # define DEFAULT_INFOPATH "/usr/local/info:/usr/info:/usr/local/lib/info:/usr/lib/info:/usr/local/gnu/info:/usr/local/gnu/lib/info:/usr/gnu/info:/usr/gnu/lib/info:/opt/gnu/info:/usr/share/info:/usr/share/lib/info:/usr/local/share/info:/usr/local/share/lib/info:/usr/gnu/lib/emacs/info:/usr/local/gnu/lib/emacs/info:/usr/local/lib/emacs/info:/usr/local/emacs/info:." 81 # ifndef __EMX__ 82 # define DEFAULT_INFOPATH "/usr/local/info:/usr/info:/usr/local/lib/info:/usr/lib/info:/usr/local/gnu/info:/usr/local/gnu/lib/info:/usr/gnu/info:/usr/gnu/lib/info:/opt/gnu/info:/usr/share/info:/usr/share/lib/info:/usr/local/share/info:/usr/local/share/lib/info:/usr/gnu/lib/emacs/info:/usr/local/gnu/lib/emacs/info:/usr/local/lib/emacs/info:/usr/local/emacs/info:." 83 # else 84 # define DEFAULT_INFOPATH ".;/usr/local/info;/usr/info;/usr/local/lib/info;/usr/lib/info;/usr/local/gnu/info;/usr/local/gnu/lib/info;/usr/gnu/info;/usr/gnu/lib/info;/opt/gnu/info;/usr/share/info;/usr/share/lib/info;/usr/local/share/info;/usr/local/share/lib/info;/usr/gnu/lib/emacs/info;/usr/local/gnu/lib/emacs/info;/usr/local/lib/emacs/info;/usr/local/emacs/info;/emx/info;" 85 # endif /* __EMX__ */ 82 86 #endif /* !DEFAULT_INFOPATH */ 83 87 -
trunk/texinfo/info/man.c
r2617 r2619 33 33 #include "tilde.h" 34 34 #include "man.h" 35 36 #ifdef __EMX__ 37 # include <process.h> 38 # include <sys/wait.h> 39 # undef PIPE_USE_FORK 40 #endif 35 41 36 42 #if !defined (_POSIX_VERSION) … … 471 477 int bindex = 0; 472 478 int select_result; 473 #if defined (FD_SET) 479 #if defined (FD_SET) && !defined (__INNOTEK__LIBC__) 474 480 fd_set read_fds; 475 481 -
trunk/texinfo/info/session.c
r2617 r2619 24 24 #include "search.h" 25 25 #include <sys/ioctl.h> 26 27 #ifdef __EMX__ 28 # include <stdlib.h> 29 # include "pc.h" 30 #endif /* __EMX__ */ 26 31 27 32 #if defined (HAVE_SYS_TIME_H) … … 1994 1999 prefer the one forward. The return is in newly-allocated memory, 1995 2000 since the caller frees it. 1996 2001 1997 2002 This is called from info_menu_or_ref_item with XREF_LIST being all 1998 2003 the xrefs in the node, and POS being point. The ui function that … … 2009 2014 int nearest = -1; 2010 2015 long best_delta = -1; 2011 2016 2012 2017 for (this_xref = 0; xref_list[this_xref]; this_xref++) 2013 2018 { … … 2019 2024 break; 2020 2025 } 2021 2026 2022 2027 /* See how far POS is from this xref. Take into account the 2023 2028 `*Note' that begins the xref, since as far as the user is … … 2025 2030 delta = MIN (labs (pos - (xref->start - strlen (INFO_XREF_LABEL))), 2026 2031 labs (pos - xref->end)); 2027 2032 2028 2033 /* It's the <= instead of < that makes us choose the forward xref 2029 2034 of POS if two are equidistant. Of course, because of all the … … 2036 2041 } 2037 2042 } 2038 2043 2039 2044 /* Maybe there was no list to search through. */ 2040 2045 if (nearest < 0) 2041 2046 return NULL; 2042 2047 2043 2048 /* Ok, we have a nearest xref, make a list of it. */ 2044 2049 { … … 3299 3304 3300 3305 #if !defined (DEFAULT_INFO_PRINT_COMMAND) 3306 # ifndef __EMX__ 3301 3307 # define DEFAULT_INFO_PRINT_COMMAND "lpr" 3308 # else 3309 # define DEFAULT_INFO_PRINT_COMMAND "expand --tabs=4 >>InfoLog.tmp" 3310 # endif /* __EMX__ */ 3302 3311 #endif /* !DEFAULT_INFO_PRINT_COMMAND */ 3303 3312 … … 4114 4123 break; 4115 4124 } 4116 4125 4117 4126 4118 4127 if (search_result == 0) … … 4575 4584 !info_input_pending_p ()) 4576 4585 { 4577 #if defined (FD_SET) 4586 #if defined (FD_SET) && !defined (__EMX__) 4578 4587 struct timeval timer; 4579 4588 fd_set readfds; … … 4924 4933 space_avail = info_input_buffer_space_available (); 4925 4934 4935 #ifdef __EMX__ 4936 if ( is_xfree86 == XFREE86_NO ) 4937 { 4938 while (chars_avail < space_avail && (tty = pc_getc(0)) != -1) 4939 input[chars_avail++] = tty; 4940 } 4941 else 4942 { 4943 #endif /* __EMX__ */ 4926 4944 /* If we can just find out how many characters there are to read, do so. */ 4927 4945 #if defined (FIONREAD) … … 4976 4994 # endif /* O_NDELAY */ 4977 4995 #endif /* !FIONREAD */ 4996 #ifdef __EMX__ 4997 } 4998 #endif /* __EMX__ */ 4978 4999 4979 5000 while (i < chars_avail) … … 5002 5023 unsigned char c; 5003 5024 int tty = fileno (info_input_stream); 5025 5026 #ifdef __EMX__ 5027 if (is_xfree86 == XFREE86_NO) 5028 keystroke = pc_getc(1); 5029 else 5030 { 5031 #endif /* __EMX__ */ 5004 5032 5005 5033 /* Using stream I/O causes FIONREAD etc to fail to work … … 5046 5074 } 5047 5075 } 5076 #ifdef __EMX__ 5077 } 5078 #endif /* __EMX__ */ 5048 5079 } 5049 5080 -
trunk/texinfo/info/terminal.c
r2617 r2619 24 24 #include "terminal.h" 25 25 #include "termdep.h" 26 #ifdef __EMX__ 27 # include <stdlib.h> 28 # include "pc.h" 29 #endif /* __EMX__ */ 26 30 27 31 #include <sys/types.h> … … 135 139 if (term_keypad_on) 136 140 send_to_terminal (term_keypad_on); 137 141 138 142 if (!term_begin_use || !*term_begin_use) 139 143 return; 140 144 141 145 #ifdef SIGWINCH 142 sigsave = signal (SIGWINCH, SIG_IGN); 146 sigsave = signal (SIGWINCH, SIG_IGN); 143 147 #endif 144 148 … … 166 170 if (term_keypad_off) 167 171 send_to_terminal (term_keypad_off); 168 172 169 173 if (!term_end_use || !*term_end_use) 170 174 return; … … 460 464 screenwidth = screenheight = 0; 461 465 466 #ifdef __EMX__ 467 { 468 int s[2]; 469 _scrsize (s); 470 screenwidth = s[0]; 471 screenheight = s[1]; 472 if (getenv ("WINDOWID")) 473 { 474 FILE *fd = popen ("scrsize","rt"); 475 if (fd) 476 { 477 fscanf (fd, "%i %i", &screenwidth, &screenheight); 478 pclose (fd); 479 } 480 } 481 } 482 #endif /* __EMX__ */ 483 462 484 #if defined (TIOCGWINSZ) 463 485 { … … 705 727 706 728 tty = fileno (stdin); 729 730 #ifdef __EMX__ 731 if (is_xfree86 == XFREE86_NO) 732 pc_init (); 733 else 734 { 735 #endif /* __EMX__ */ 707 736 708 737 #if defined (HAVE_TERMIOS_H) … … 827 856 ioctl (tty, TIOCSETN, &ttybuff); 828 857 #endif /* !HAVE_TERMIOS_H && !HAVE_TERMIO_H */ 858 #ifdef __EMX__ 859 } 860 #endif /* __EMX__ */ 829 861 } 830 862 … … 843 875 844 876 tty = fileno (stdin); 877 878 #ifdef __EMX__ 879 if ( is_xfree86 == XFREE86_NO ) 880 pc_exit (); 881 else 882 { 883 #endif /* __EMX__ */ 845 884 846 885 #if defined (HAVE_TERMIOS_H) … … 868 907 # endif /* !HAVE_TERMIO_H */ 869 908 #endif /* !HAVE_TERMIOS_H */ 909 #ifdef __EMX__ 910 } 911 #endif /* __EMX__ */ 870 912 terminal_end_using_terminal (); 871 913 }
Note:
See TracChangeset
for help on using the changeset viewer.