mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
add file header.
This commit is contained in:
parent
93f2a6d691
commit
73c372fc7f
4
Makefile
4
Makefile
@ -28,7 +28,7 @@ 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=basic.h crypt.h display.h ebind.h edef.h efunc.h estruct.h fileio.h \
|
||||
HDR=basic.h crypt.h display.h ebind.h edef.h efunc.h estruct.h file.h fileio.h \
|
||||
input.h line.h main.h version.h window.h wrapper.h
|
||||
|
||||
# DO NOT ADD OR MODIFY ANY LINES ABOVE THIS -- make source creates them
|
||||
@ -139,7 +139,7 @@ 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 window.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
|
||||
file.o: file.c file.h 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 input.h estruct.h edef.h
|
||||
|
14
efunc.h
14
efunc.h
@ -129,19 +129,7 @@ extern int unmark(int f, int n);
|
||||
extern struct buffer *bfind(char *bname, int cflag, int bflag);
|
||||
|
||||
/* file.c */
|
||||
extern int fileread(int f, int n);
|
||||
extern int insfile(int f, int n);
|
||||
extern int filefind(int f, int n);
|
||||
extern int viewfile(int f, int n);
|
||||
extern int getfile(char *fname, int lockfl);
|
||||
extern int readin(char *fname, int lockfl);
|
||||
extern void makename(char *bname, char *fname);
|
||||
extern void unqname(char *name);
|
||||
extern int filewrite(int f, int n);
|
||||
extern int filesave(int f, int n);
|
||||
extern int writeout(char *fn);
|
||||
extern int filename(int f, int n);
|
||||
extern int ifile(char *fname);
|
||||
#include "file.h"
|
||||
|
||||
/* exec.c */
|
||||
extern int namedcmd(int f, int n);
|
||||
|
7
file.c
7
file.c
@ -1,3 +1,7 @@
|
||||
/* file.c -- implements file.h */
|
||||
|
||||
#include "file.h"
|
||||
|
||||
/* file.c
|
||||
*
|
||||
* The routines in this file handle the reading, writing
|
||||
@ -11,11 +15,14 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "crypt.h"
|
||||
#include "display.h"
|
||||
#include "estruct.h"
|
||||
#include "edef.h"
|
||||
#include "efunc.h"
|
||||
#include "fileio.h"
|
||||
#include "input.h"
|
||||
#include "line.h"
|
||||
#include "main.h"
|
||||
|
||||
#if defined(PKCODE)
|
||||
/* Max number of lines from one file. */
|
||||
|
18
file.h
Normal file
18
file.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef _FILE_H_
|
||||
#define _FILE_H_
|
||||
|
||||
int fileread( int f, int n) ;
|
||||
int insfile( int f, int n) ;
|
||||
int filefind( int f, int n) ;
|
||||
int viewfile( int f, int n) ;
|
||||
int getfile( char *fname, int lockfl) ;
|
||||
int readin( char *fname, int lockfl) ;
|
||||
void makename( char *bname, char *fname) ;
|
||||
void unqname( char *name) ;
|
||||
int filewrite( int f, int n) ;
|
||||
int filesave( int f, int n) ;
|
||||
int writeout( char *fn) ;
|
||||
int filename( int f, int n) ;
|
||||
int ifile( char *fname) ;
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user