Mercurial > emacs
comparison src/termcap.c @ 22066:a09f2b697d0a
Renamed "struct buffer" to "struct termcap_buffer" to
avoid confusing the MSVC debugger.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 15 May 1998 00:34:07 +0000 |
parents | 6e7bb4bd5010 |
children | 3790e185acc0 |
comparison
equal
deleted
inserted
replaced
22065:dd225ba510b4 | 22066:a09f2b697d0a |
---|---|
347 (*outfun) (PC); | 347 (*outfun) (PC); |
348 } | 348 } |
349 | 349 |
350 /* Finding the termcap entry in the termcap data base. */ | 350 /* Finding the termcap entry in the termcap data base. */ |
351 | 351 |
352 struct buffer | 352 struct termcap_buffer |
353 { | 353 { |
354 char *beg; | 354 char *beg; |
355 int size; | 355 int size; |
356 char *ptr; | 356 char *ptr; |
357 int ateof; | 357 int ateof; |
420 tgetent (bp, name) | 420 tgetent (bp, name) |
421 char *bp, *name; | 421 char *bp, *name; |
422 { | 422 { |
423 register char *termcap_name; | 423 register char *termcap_name; |
424 register int fd; | 424 register int fd; |
425 struct buffer buf; | 425 struct termcap_buffer buf; |
426 register char *bp1; | 426 register char *bp1; |
427 char *tc_search_point; | 427 char *tc_search_point; |
428 char *term; | 428 char *term; |
429 int malloc_size = 0; | 429 int malloc_size = 0; |
430 register int c; | 430 register int c; |
583 | 583 |
584 static int | 584 static int |
585 scan_file (str, fd, bufp) | 585 scan_file (str, fd, bufp) |
586 char *str; | 586 char *str; |
587 int fd; | 587 int fd; |
588 register struct buffer *bufp; | 588 register struct termcap_buffer *bufp; |
589 { | 589 { |
590 register char *end; | 590 register char *end; |
591 | 591 |
592 bufp->ptr = bufp->beg; | 592 bufp->ptr = bufp->beg; |
593 bufp->full = 0; | 593 bufp->full = 0; |
679 thing as one line. The caller decides when a line is continued. */ | 679 thing as one line. The caller decides when a line is continued. */ |
680 | 680 |
681 static char * | 681 static char * |
682 gobble_line (fd, bufp, append_end) | 682 gobble_line (fd, bufp, append_end) |
683 int fd; | 683 int fd; |
684 register struct buffer *bufp; | 684 register struct termcap_buffer *bufp; |
685 char *append_end; | 685 char *append_end; |
686 { | 686 { |
687 register char *end; | 687 register char *end; |
688 register int nread; | 688 register int nread; |
689 register char *buf = bufp->beg; | 689 register char *buf = bufp->beg; |