aboutsummaryrefslogtreecommitdiffstats
path: root/src/termcap.c
diff options
context:
space:
mode:
authorAndrew Choi2002-04-26 23:39:06 +0000
committerAndrew Choi2002-04-26 23:39:06 +0000
commite0f712ba55fa0d073f6ab93606e428f61fc7caf2 (patch)
tree7dc6d3403fafcbee1a83288ac840f7eba1d92b44 /src/termcap.c
parent501d8923ae2cdec4ef50f050bb66d3715ba2a8f6 (diff)
downloademacs-e0f712ba55fa0d073f6ab93606e428f61fc7caf2.tar.gz
emacs-e0f712ba55fa0d073f6ab93606e428f61fc7caf2.zip
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
Diffstat (limited to 'src/termcap.c')
-rw-r--r--src/termcap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/termcap.c b/src/termcap.c
index b87fee48e87..8918f06d244 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -144,6 +144,9 @@ find_capability (bp, cap)
144 return NULL; 144 return NULL;
145} 145}
146 146
147/* These are already defined in the System framework in Mac OS X and
148 cause prebinding to fail. */
149#ifndef MAC_OSX
147int 150int
148tgetnum (cap) 151tgetnum (cap)
149 char *cap; 152 char *cap;
@@ -177,6 +180,7 @@ tgetstr (cap, area)
177 return NULL; 180 return NULL;
178 return tgetst1 (ptr, area); 181 return tgetst1 (ptr, area);
179} 182}
183#endif /* MAC_OSX */
180 184
181#ifdef IS_EBCDIC_HOST 185#ifdef IS_EBCDIC_HOST
182/* Table, indexed by a character in range 0200 to 0300 with 0200 subtracted, 186/* Table, indexed by a character in range 0200 to 0300 with 0200 subtracted,
@@ -294,7 +298,12 @@ short ospeed;
294/* If OSPEED is 0, we use this as the actual baud rate. */ 298/* If OSPEED is 0, we use this as the actual baud rate. */
295int tputs_baud_rate; 299int tputs_baud_rate;
296#endif 300#endif
301
302/* Already defined in the System framework in Mac OS X and causes
303 prebinding to fail. */
304#ifndef MAC_OSX
297char PC; 305char PC;
306#endif /* MAC_OSX */
298 307
299#ifndef emacs 308#ifndef emacs
300/* Actual baud rate if positive; 309/* Actual baud rate if positive;
@@ -313,6 +322,9 @@ static int speeds[] =
313 322
314#endif /* not emacs */ 323#endif /* not emacs */
315 324
325/* Already defined in the System framework in Mac OS X and causes
326 prebinding to fail. */
327#ifndef MAC_OSX
316void 328void
317tputs (str, nlines, outfun) 329tputs (str, nlines, outfun)
318 register char *str; 330 register char *str;
@@ -375,6 +387,7 @@ tputs (str, nlines, outfun)
375 while (padcount-- > 0) 387 while (padcount-- > 0)
376 (*outfun) (PC); 388 (*outfun) (PC);
377} 389}
390#endif /* MAC_OSX */
378 391
379/* Finding the termcap entry in the termcap data base. */ 392/* Finding the termcap entry in the termcap data base. */
380 393
@@ -445,6 +458,9 @@ valid_filename_p (fn)
445 0 if the data base is accessible but the type NAME is not defined 458 0 if the data base is accessible but the type NAME is not defined
446 in it, and some other value otherwise. */ 459 in it, and some other value otherwise. */
447 460
461/* Already defined in the System framework in Mac OS X and causes
462 prebinding to fail. */
463#ifndef MAC_OSX
448int 464int
449tgetent (bp, name) 465tgetent (bp, name)
450 char *bp, *name; 466 char *bp, *name;
@@ -603,6 +619,7 @@ tgetent (bp, name)
603 term_entry = bp; 619 term_entry = bp;
604 return 1; 620 return 1;
605} 621}
622#endif /* MAC_OSX */
606 623
607/* Given file open on FD and buffer BUFP, 624/* Given file open on FD and buffer BUFP,
608 scan the file from the beginning until a line is found 625 scan the file from the beginning until a line is found