mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-27 00:59:46 +00:00
Fix missing prototype adding ttydefs.h, declare tty_baudtosymbol() as static.
This commit is contained in:
@@ -842,8 +842,8 @@ $(OBJECTDIR)timer.o: $(SRCDIR)timer.c $(REQUIRED-INCS) \
|
||||
|
||||
$(OBJECTDIR)tty.o: $(SRCDIR)tty.c $(REQUIRED-INCS) \
|
||||
$(INCDIR)lispemul.h $(INCDIR)lispmap.h \
|
||||
$(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h \
|
||||
$(INCDIR)iopage.h $(INCDIR)miscstat.h $(INCDIR)commondefs.h $(INCDIR)tty.h
|
||||
$(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lspglob.h \
|
||||
$(INCDIR)commondefs.h $(INCDIR)tty.h $(INCDIR)ttydefs.h
|
||||
$(CC) $(RFLAGS) $(SRCDIR)tty.c -o $(OBJECTDIR)tty.o
|
||||
|
||||
$(OBJECTDIR)typeof.o: $(SRCDIR)typeof.c $(REQUIRED-INCS) \
|
||||
|
||||
14
inc/ttydefs.h
Normal file
14
inc/ttydefs.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef TTYDEFS_H
|
||||
#define TTYDEFS_H 1
|
||||
void tty_init(void);
|
||||
void tty_open(void);
|
||||
void tty_close(void);
|
||||
void tty_get(void);
|
||||
void tty_put(void);
|
||||
void tty_setbaudrate(void);
|
||||
void tty_setparam(void);
|
||||
void tty_breakon(void);
|
||||
void tty_breakoff(void);
|
||||
void tty_cmd(void);
|
||||
void tty_debug(const char *name);
|
||||
#endif
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "lspglob.h"
|
||||
#include "commondefs.h"
|
||||
#include "tty.h"
|
||||
#include "ttydefs.h"
|
||||
|
||||
DLTTY_OUT_COMMAND *DLTTYPortCmd;
|
||||
DLTTY_IN_CSB *DLTTYIn;
|
||||
@@ -108,7 +109,7 @@ void tty_put(void)
|
||||
}
|
||||
}
|
||||
|
||||
speed_t tty_baudtosymbol(short aBaud)
|
||||
static speed_t tty_baudtosymbol(short aBaud)
|
||||
{
|
||||
/* This matches the constants in DLTTY where possible. */
|
||||
if (aBaud == 0) return (B50);
|
||||
|
||||
Reference in New Issue
Block a user