1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-29 20:46:22 -05:00

Insure CRYPT is defined before header inclusion.

This commit is contained in:
Renaud 2013-09-19 14:58:20 +08:00
parent 34e2041d8e
commit fb6d6bd595
7 changed files with 16 additions and 8 deletions

View File

@ -136,7 +136,7 @@ bindable.o: bindable.c bindable.h buffer.h estruct.h line.h utf8.h \
retcode.h display.h edef.h file.h input.h retcode.h display.h edef.h file.h input.h
buffer.o: buffer.c buffer.h estruct.h line.h utf8.h retcode.h display.h \ buffer.o: buffer.c buffer.h estruct.h line.h utf8.h retcode.h display.h \
edef.h file.h input.h window.h edef.h file.h input.h window.h
crypt.o: crypt.c crypt.h estruct.h line.h utf8.h retcode.h crypt.o: crypt.c estruct.h line.h utf8.h retcode.h crypt.h
display.o: display.c display.h estruct.h line.h utf8.h retcode.h edef.h \ display.o: display.c display.h estruct.h line.h utf8.h retcode.h edef.h \
termio.h version.h wrapper.h window.h termio.h version.h wrapper.h window.h
ebind.o: ebind.c ebind.h basic.h bind.h edef.h estruct.h line.h utf8.h \ ebind.o: ebind.c ebind.h basic.h bind.h edef.h estruct.h line.h utf8.h \
@ -149,9 +149,9 @@ exec.o: exec.c exec.h estruct.h line.h utf8.h retcode.h buffer.h bind.h \
edef.h display.h eval.h file.h flook.h input.h edef.h display.h eval.h file.h flook.h input.h
execute.o: execute.c edef.h estruct.h line.h utf8.h retcode.h bind.h \ execute.o: execute.c edef.h estruct.h line.h utf8.h retcode.h bind.h \
random.h display.h file.h random.h display.h file.h
file.o: file.c file.h buffer.h estruct.h line.h utf8.h retcode.h crypt.h \ file.o: file.c estruct.h line.h utf8.h retcode.h file.h buffer.h crypt.h \
edef.h execute.h fileio.h input.h lock.h log.h window.h edef.h execute.h fileio.h input.h lock.h log.h window.h
fileio.o: fileio.c fileio.h retcode.h estruct.h line.h utf8.h crypt.h fileio.o: fileio.c estruct.h line.h utf8.h retcode.h fileio.h crypt.h
flook.o: flook.c flook.h retcode.h estruct.h line.h utf8.h fileio.h flook.o: flook.c flook.h retcode.h estruct.h line.h utf8.h fileio.h
globals.o: globals.c estruct.h line.h utf8.h retcode.h edef.h globals.o: globals.c estruct.h line.h utf8.h retcode.h edef.h
ibmpc.o: ibmpc.c estruct.h line.h utf8.h retcode.h edef.h ibmpc.o: ibmpc.c estruct.h line.h utf8.h retcode.h edef.h

View File

@ -1,5 +1,7 @@
/* crypt.c -- implements crypt.h */ /* crypt.c -- implements crypt.h */
#include "estruct.h"
#include "crypt.h" #include "crypt.h"
/* CRYPT.C /* CRYPT.C

View File

@ -1,9 +1,9 @@
#ifndef _CRYPT_H_ #ifndef _CRYPT_H_
#define _CRYPT_H_ #define _CRYPT_H_
#include "estruct.h" #ifndef CRYPT
#error CRYPT should be defined
#if CRYPT #elif CRYPT
void myencrypt( char *bptr, unsigned len) ; void myencrypt( char *bptr, unsigned len) ;
#endif #endif

1
file.c
View File

@ -1,5 +1,6 @@
/* file.c -- implements file.h */ /* file.c -- implements file.h */
#include "estruct.h"
#include "file.h" #include "file.h"
/* file.c /* file.c

4
file.h
View File

@ -1,7 +1,9 @@
#ifndef _FILE_H_ #ifndef _FILE_H_
#define _FILE_H_ #define _FILE_H_
#if CRYPT #ifndef CRYPT
#error CRYPT should be defined.
#elif CRYPT
void cryptbufferkey( struct buffer *bp) ; void cryptbufferkey( struct buffer *bp) ;
int set_encryption_key( int f, int n) ; int set_encryption_key( int f, int n) ;
#endif #endif

View File

@ -1,5 +1,6 @@
/* fileio.c -- implements fileio.h */ /* fileio.c -- implements fileio.h */
#include "estruct.h"
#include "fileio.h" #include "fileio.h"
/* FILEIO.C /* FILEIO.C

View File

@ -18,7 +18,9 @@ typedef enum {
#define FTYPE_MAC 4 #define FTYPE_MAC 4
/* FTYPE_MIXED [ 3, 5, 6, 7] */ /* FTYPE_MIXED [ 3, 5, 6, 7] */
#if CRYPT #ifndef CRYPT
#error CRYPT should be defined.
#elif CRYPT
extern boolean is_crypted ; /* currently encrypting? */ extern boolean is_crypted ; /* currently encrypting? */
#endif #endif