1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-06-03 02:50:42 +00:00

termio and posix implement same prototypes.

This commit is contained in:
Renaud 2013-05-20 15:16:19 +08:00
parent 9c311a1ba8
commit 548973517b
5 changed files with 12 additions and 10 deletions

View File

@ -30,8 +30,8 @@ OBJ=basic.o bind.o buffer.o crypt.o display.o eval.o exec.o \
HDR=basic.h bind.h buffer.h crypt.h display.h ebind.h edef.h efunc.h \ HDR=basic.h bind.h buffer.h crypt.h display.h ebind.h edef.h efunc.h \
estruct.h eval.h exec.h file.h fileio.h input.h isearch.h line.h \ estruct.h eval.h exec.h file.h fileio.h input.h isearch.h line.h \
lock.h main.h pklock.h posix.h random.h region.h search.h spawn.h \ lock.h main.h pklock.h random.h region.h search.h spawn.h \
utf8.h version.h window.h word.h wrapper.h termio.h utf8.h version.h window.h word.h wrapper.h
# DO NOT ADD OR MODIFY ANY LINES ABOVE THIS -- make source creates them # DO NOT ADD OR MODIFY ANY LINES ABOVE THIS -- make source creates them
@ -151,13 +151,13 @@ lock.o: lock.c lock.h estruct.h edef.h
main.o: main.c main.h estruct.h crypt.h efunc.h edef.h ebind.h version.h main.o: main.c main.h estruct.h crypt.h efunc.h edef.h ebind.h version.h
names.o: names.c estruct.h crypt.h edef.h efunc.h line.h names.o: names.c estruct.h crypt.h edef.h efunc.h line.h
pklock.o: pklock.c pklock.h estruct.h pklock.o: pklock.c pklock.h estruct.h
posix.o: posix.c posix.h estruct.h utf8.h posix.o: posix.c termio.h estruct.h utf8.h
random.o: random.c random.h estruct.h edef.h random.o: random.c random.h estruct.h edef.h
region.o: region.c region.h estruct.h edef.h region.o: region.c region.h estruct.h edef.h
search.o: search.c search.h estruct.h edef.h search.o: search.c search.h estruct.h edef.h
spawn.o: spawn.c spawn.h estruct.h edef.h spawn.o: spawn.c spawn.h estruct.h edef.h
tcap.o: tcap.c estruct.h edef.h tcap.o: tcap.c estruct.h edef.h
termio.o: termio.c estruct.h edef.h termio.o: termio.c termio.h estruct.h edef.h
utf8.o: utf8.c utf8.h utf8.o: utf8.c utf8.h
vmsvt.o: vmsvt.c estruct.h edef.h vmsvt.o: vmsvt.c estruct.h edef.h
vt52.o: vt52.c estruct.h edef.h vt52.o: vt52.c estruct.h edef.h

View File

@ -36,7 +36,7 @@
#include "region.h" #include "region.h"
/* posix.c */ /* posix.c */
#include "posix.h" #include "termio.h"
/* input.c */ /* input.c */
#include "input.h" #include "input.h"

View File

@ -1,5 +1,5 @@
/* posix.c -- implements posix.h */ /* posix.c -- implements termio.h */
#include "posix.h" #include "termio.h"
/* posix.c /* posix.c
* *

View File

@ -1,3 +1,4 @@
#include "termio.h"
/* TERMIO.C /* TERMIO.C
* *
@ -273,7 +274,7 @@ void ttclose(void)
* On CPM terminal I/O unbuffered, so we just write the byte out. Ditto on * On CPM terminal I/O unbuffered, so we just write the byte out. Ditto on
* MS-DOS (use the very very raw console output routine). * MS-DOS (use the very very raw console output routine).
*/ */
void ttputc( int c) { int ttputc( int c) {
#if VMS #if VMS
if (nobuf >= NOBUF) if (nobuf >= NOBUF)
ttflush(); ttflush();
@ -287,6 +288,7 @@ void ttputc( int c) {
#if V7 | USG | BSD #if V7 | USG | BSD
fputc(c, stdout); fputc(c, stdout);
#endif #endif
return 0 ;
} }
/* /*

View File

@ -1,5 +1,5 @@
#ifndef _POSIX_H_ #ifndef _TERMIO_H_
#define _POSIX_H_ #define _TERMIO_H_
void ttopen( void) ; void ttopen( void) ;
void ttclose( void) ; void ttclose( void) ;