aboutsummaryrefslogtreecommitdiffstats
path: root/lib/termcap/tparam.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2000-03-17 21:46:59 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:53 +0000
commitbb70624e964126b7ac4ff085ba163a9c35ffa18f (patch)
treeba2dd4add13ada94b1899c6d4aca80195b80b74b /lib/termcap/tparam.c
parentb72432fdcc59300c6fe7c9d6c8a31ad3447933f5 (diff)
downloadandroid_external_bash-bb70624e964126b7ac4ff085ba163a9c35ffa18f.tar.gz
android_external_bash-bb70624e964126b7ac4ff085ba163a9c35ffa18f.tar.bz2
android_external_bash-bb70624e964126b7ac4ff085ba163a9c35ffa18f.zip
Imported from ../bash-2.04.tar.gz.
Diffstat (limited to 'lib/termcap/tparam.c')
-rw-r--r--lib/termcap/tparam.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/termcap/tparam.c b/lib/termcap/tparam.c
index 2470289..1c83f04 100644
--- a/lib/termcap/tparam.c
+++ b/lib/termcap/tparam.c
@@ -12,12 +12,21 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+along with this program; see the file COPYING. If not, write to the
+Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
/* Emacs config.h may rename various library functions such as malloc. */
#ifdef HAVE_CONFIG_H
#include <config.h>
+
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+extern char *getenv ();
+extern char *malloc ();
+extern char *realloc ();
+#endif
+
#else /* not HAVE_CONFIG_H */
#if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
@@ -34,6 +43,8 @@ char *realloc ();
#endif /* not HAVE_CONFIG_H */
+#include "ltcap.h"
+
#ifndef NULL
#define NULL (char *) 0
#endif
@@ -101,11 +112,12 @@ tparam (string, outstring, len, arg0, arg1, arg2, arg3)
return tparam1 (string, outstring, len, NULL, NULL, arg);
}
-char *BC;
-char *UP;
+__private_extern__ char *BC;
+__private_extern__ char *UP;
static char tgoto_buf[50];
+__private_extern__
char *
tgoto (cm, hpos, vpos)
char *cm;