crypt depends on display and input instead of efunc.

This commit is contained in:
Renaud 2013-05-18 14:21:28 +08:00
parent 86d5b10fa9
commit 08a3aa81e1
7 changed files with 40 additions and 19 deletions

View File

@ -28,7 +28,8 @@ OBJ=basic.o bind.o buffer.o crypt.o display.o eval.o exec.o \
termio.o window.o word.o names.o globals.o \
wrapper.o utf8.o
HDR=crypt.h display.h ebind.h edef.h efunc.h estruct.h fileio.h version.h
HDR=crypt.h display.h ebind.h edef.h efunc.h estruct.h fileio.h input.h \
version.h
# DO NOT ADD OR MODIFY ANY LINES ABOVE THIS -- make source creates them
@ -134,14 +135,14 @@ ansi.o: ansi.c estruct.h edef.h
basic.o: basic.c estruct.h edef.h
bind.o: bind.c estruct.h edef.h fileio.h
buffer.o: buffer.c estruct.h edef.h
crypt.o: crypt.c crypt.h estruct.h edef.h
crypt.o: crypt.c crypt.h display.h estruct.h edef.h input.h
display.o: display.c display.h estruct.h edef.h utf8.h version.h
eval.o: eval.c estruct.h edef.h version.h fileio.h
exec.o: exec.c estruct.h edef.h
file.o: file.c crypt.h estruct.h edef.h fileio.h
fileio.o: fileio.c fileio.h crypt.h display.h estruct.h edef.h
ibmpc.o: ibmpc.c estruct.h edef.h
input.o: input.c estruct.h edef.h
input.o: input.c input.h estruct.h edef.h
isearch.o: isearch.c estruct.h edef.h
line.o: line.c estruct.h edef.h
lock.o: lock.c estruct.h edef.h

View File

@ -9,10 +9,11 @@
* written by Dana Hoggatt and Daniel Lawrence
*/
#include <stdio.h>
#include "estruct.h"
#include "edef.h"
#include "efunc.h"
#include <stdio.h>
#include "display.h"
#include "estruct.h"
#include "edef.h"
#include "input.h"
#if CRYPT

2
edef.h
View File

@ -10,6 +10,8 @@
#ifndef EDEF_H_
#define EDEF_H_
#include "estruct.h"
#include <stdlib.h>
#include <string.h>

13
efunc.h
View File

@ -138,18 +138,7 @@ extern int ttgetc(void);
extern int typahead(void);
/* input.c */
extern int mlyesno(char *prompt);
extern int mlreply(char *prompt, char *buf, int nbuf);
extern int mlreplyt(char *prompt, char *buf, int nbuf, int eolchar);
extern int ectoc(int c);
extern int ctoec(int c);
extern fn_t getname(void);
extern int tgetc(void);
extern int get1key(void);
extern int getcmd(void);
extern int getstring(char *prompt, char *buf, int nbuf, int eolchar);
extern void outstring(char *s);
extern void ostring(char *s);
#include "input.h"
/* bind.c */
extern int help(int f, int n);

View File

@ -1,3 +1,6 @@
#ifndef _ESTRUCT_H_
#define _ESTRUCT_H_
/* ESTRUCT.H
*
* Structure and preprocessor defines
@ -678,3 +681,5 @@ struct magic_replacement {
};
#endif /* MAGIC */
#endif

View File

@ -1,3 +1,7 @@
/* input.c -- implements input.h */
#include "input.h"
/* input.c
*
* Various input routines

19
input.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef _INPUT_H_
#define _INPUT_H_
#include "edef.h"
int mlyesno( char *prompt) ;
int mlreply( char *prompt, char *buf, int nbuf) ;
int mlreplyt( char *prompt, char *buf, int nbuf, int eolchar) ;
int ectoc( int c) ;
int ctoec( int c) ;
fn_t getname( void) ;
int tgetc( void) ;
int get1key( void) ;
int getcmd( void) ;
int getstring( char *prompt, char *buf, int nbuf, int eolchar) ;
void outstring( char *s) ;
void ostring( char *s) ;
#endif