]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
import gdb-19990422 snapshot
authorStan Shebs <shebs@codesourcery.com>
Mon, 26 Apr 1999 18:30:31 +0000 (18:30 +0000)
committerStan Shebs <shebs@codesourcery.com>
Mon, 26 Apr 1999 18:30:31 +0000 (18:30 +0000)
readline/Makefile.in
readline/display.c
readline/support/config.sub
readline/terminal.c

index 0c5c169fe28d039167ea02ad527f5f301a8684bc..ae402fd047d2c91284fde2daa558044c6ea64641 100644 (file)
@@ -19,7 +19,7 @@ RL_LIBRARY_VERSION = @LIBVERSION@
 RL_LIBRARY_NAME = readline
 
 srcdir = @srcdir@
-VPATH = .:@srcdir@
+VPATH = @srcdir@
 top_srcdir = @top_srcdir@
 BUILD_DIR = @BUILD_DIR@
 
@@ -197,20 +197,30 @@ examples: force
 
 force:
 
-install: installdirs $(STATIC_LIBS)
-       for f in ${INSTALLED_HEADERS}; do \
-               $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/readline ; \
-       done
-       -( if test -f $(libdir)/libreadline.a ; then $(MV) $(libdir)/libreadline.a $(libdir)/libreadline.old; fi )
-       $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
-       -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libreadline.a
-       -( if test -f $(libdir)/libhistory.a; then $(MV) $(libdir)/libhistory.a $(libdir)/libhistory.old; fi )
-       $(INSTALL_DATA) libhistory.a $(libdir)/libhistory.a
-       -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libhistory.a
-       -( if test -d doc ; then \
-               cd doc && \
-               ${MAKE} ${MFLAGS} infodir=$(infodir) $@; \
-         fi )
+## CYGNUS LOCAL
+## Don't mess with people's installed readline's.
+## This tries to install this version of readline over whatever
+## version is already installed on the system (which could be a
+## newer version). There is no real reason for us to install
+## readline along with GDB. GDB links statically against readline,
+## so it doesn't depend on us installing it on the system.
+
+install:
+
+#install: installdirs $(STATIC_LIBS)
+#      for f in ${INSTALLED_HEADERS}; do \
+#              $(INSTALL_DATA) $(srcdir)/$$f $(includedir)/readline ; \
+#      done
+#      -( if test -f $(libdir)/libreadline.a ; then $(MV) $(libdir)/libreadline.a $(libdir)/libreadline.old; fi )
+#      $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
+#      -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libreadline.a
+#      -( if test -f $(libdir)/libhistory.a; then $(MV) $(libdir)/libhistory.a $(libdir)/libhistory.old; fi )
+#      $(INSTALL_DATA) libhistory.a $(libdir)/libhistory.a
+#      -test -n "$(RANLIB)" && $(RANLIB) -t $(libdir)/libhistory.a
+#      -( if test -d doc ; then \
+#              cd doc && \
+#              ${MAKE} ${MFLAGS} infodir=$(infodir) $@; \
+#        fi )
 
 installdirs: $(srcdir)/support/mkdirs
        -$(SHELL) $(srcdir)/support/mkdirs $(includedir) \
index f7ec69b247c121054ca97c6cb6148b498ade8c2f..00caab69dbd79638401d6ed3c02efe659d4ec127 100644 (file)
@@ -632,8 +632,12 @@ rl_redisplay ()
          if (cursor_linenum == 0 && wrap_offset > 0 && _rl_last_c_pos > 0 &&
              _rl_last_c_pos <= last_invisible && local_prompt)
            {
+#if defined (__MSDOS__)
+             putc ('\r', rl_outstream);
+#else
              if (term_cr)
                tputs (term_cr, 1, _rl_output_character_function);
+#endif
              _rl_output_some_chars (local_prompt, nleft);
              _rl_last_c_pos = nleft;
            }
@@ -880,7 +884,11 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
       term_cr && lendiff > visible_length && _rl_last_c_pos > 0 &&
       od > lendiff && _rl_last_c_pos < last_invisible)
     {
+#if defined (__MSDOS__)
+      putc ('\r', rl_outstream);
+#else
       tputs (term_cr, 1, _rl_output_character_function);
+#endif /* !__MSDOS__ */
       _rl_output_some_chars (local_prompt, lendiff);
       _rl_last_c_pos = lendiff;
     }
@@ -1484,7 +1492,11 @@ cr ()
 {
   if (term_cr)
     {
+#if defined (__MSDOS__)
+      putc ('\r', rl_outstream);
+#else
       tputs (term_cr, 1, _rl_output_character_function);
+#endif /* !__MSDOS__ */
       _rl_last_c_pos = 0;
     }
 }
@@ -1499,8 +1511,16 @@ _rl_redisplay_after_sigwinch ()
      the right thing happens if we have wrapped to a new screen line. */
   if (term_cr)
     {
+#if defined (__MSDOS__)
+      putc ('\r', rl_outstream);
+#else
       tputs (term_cr, 1, _rl_output_character_function);
+#endif /* !__MSDOS__ */
       _rl_last_c_pos = 0;
+#if defined (__MSDOS__)
+      space_to_eol (screenwidth);
+      putc ('\r', rl_outstream);
+#else
       if (term_clreol)
        tputs (term_clreol, 1, _rl_output_character_function);
       else
@@ -1508,6 +1528,7 @@ _rl_redisplay_after_sigwinch ()
          space_to_eol (screenwidth);
          tputs (term_cr, 1, _rl_output_character_function);
        }
+#endif
       if (_rl_last_v_pos > 0)
        _rl_move_vert (0);
     }
index 7541a125fa674c0af4775b341f006bf33cfe45fd..244fbde1feb62f890ed8e5d5f701378c75394eeb 100755 (executable)
@@ -703,7 +703,7 @@ case $os in
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
-             | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+             | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
              | -linux-gnu* | -uxpv* | -qnx* | -powerux)
        # Remember, each alternative MUST END IN *, to match a version number.
                ;;
index c28669659b02fd3ec7362ad505651e2bc8727597..f532638721826748b13fdc83b78a0b7d17f7dfb8 100644 (file)
@@ -186,8 +186,10 @@ _rl_get_screen_size (tty, ignore_env)
       if (ignore_env == 0 && (ss = get_env_value ("COLUMNS")))
        screenwidth = atoi (ss);
 
+#if !defined(__DJGPP__)
       if (screenwidth <= 0 && term_string_buffer)
        screenwidth = tgetnum ("co");
+#endif
     }
 
   /* Environment variable LINES overrides setting of "li" if IGNORE_ENV
@@ -197,8 +199,10 @@ _rl_get_screen_size (tty, ignore_env)
       if (ignore_env == 0 && (ss = get_env_value ("LINES")))
        screenheight = atoi (ss);
 
+#if !defined(__DJGPP__)
       if (screenheight <= 0 && term_string_buffer)
        screenheight = tgetnum ("li");
+#endif
     }
 
   /* If all else fails, default to 80x24 terminal. */
@@ -277,10 +281,12 @@ static void
 get_term_capabilities (bp)
      char **bp;
 {
+#if !defined(__DJGPP__)
   register int i;
 
   for (i = 0; i < NUM_TC_STRINGS; i++)
     *(tc_strings[i].tc_value) = tgetstr (tc_strings[i].tc_var, bp);
+#endif
   tcap_initialized = 1;
 }
 
@@ -530,16 +536,20 @@ ding ()
 void
 _rl_enable_meta_key ()
 {
+#if !defined(__DJGPP__)
   if (term_has_meta && term_mm)
     tputs (term_mm, 1, _rl_output_character_function);
+#endif
 }
 
 void
 _rl_control_keypad (on)
      int on;
 {
+#if !defined(__DJGPP__)
   if (on && term_ks)
     tputs (term_ks, 1, _rl_output_character_function);
   else if (!on && term_ke)
     tputs (term_ke, 1, _rl_output_character_function);
+#endif
 }