Subversion Repositories planix.SVN

Rev

Rev 106 | Rev 113 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 106 Rev 109
Line 11... Line 11...
11
#include "ex.h"
11
#include "ex.h"
12
#include "ex_argv.h"
12
#include "ex_argv.h"
13
#include "ex_temp.h"
13
#include "ex_temp.h"
14
#include "ex_tty.h"
14
#include "ex_tty.h"
15
#include "ex_vis.h"
15
#include "ex_vis.h"
-
 
16
void
-
 
17
checkmodeline(char * li_ne);
-
 
18
void
-
 
19
putfile(int isfilter);
16
 
20
 
17
/*
21
/*
18
 * File input/output, source, preserve and recover
22
 * File input/output, source, preserve and recover
19
 */
23
 */
20
 
24
 
Line 39... Line 43...
39
/*
43
/*
40
 * Parse file name for command encoded by comm.
44
 * Parse file name for command encoded by comm.
41
 * If comm is E then command is doomed and we are
45
 * If comm is E then command is doomed and we are
42
 * parsing just so user won't have to retype the name.
46
 * parsing just so user won't have to retype the name.
43
 */
47
 */
-
 
48
void
44
filename(comm)
49
filename(comm)
45
	int comm;
50
	int comm;
46
{
51
{
47
	register int c = comm, d;
52
	register int c = comm, d;
48
	register int i;
53
	register int i;
Line 189... Line 194...
189
 
194
 
190
/*
195
/*
191
 * Glob the argument words in genbuf, or if no globbing
196
 * Glob the argument words in genbuf, or if no globbing
192
 * is implied, just split them up directly.
197
 * is implied, just split them up directly.
193
 */
198
 */
-
 
199
void
194
glob(gp)
200
glob(gp)
195
	struct glob *gp;
201
	struct glob *gp;
196
{
202
{
197
	int pvec[2];
203
	int pvec[2];
198
	register char **argv = gp->argv;
204
	register char **argv = gp->argv;
Line 313... Line 319...
313
 
319
 
314
/*
320
/*
315
 * Read a file from the world.
321
 * Read a file from the world.
316
 * C is command, 'e' if this really an edit (or a recover).
322
 * C is command, 'e' if this really an edit (or a recover).
317
 */
323
 */
-
 
324
void
318
rop(c)
325
rop(c)
319
	int c;
326
	int c;
320
{
327
{
321
	register int i;
328
	register int i;
322
	struct stat stbuf;
329
	struct stat stbuf;
Line 699... Line 706...
699
}
706
}
700
 
707
 
701
/*
708
/*
702
 * Write a range onto the io stream.
709
 * Write a range onto the io stream.
703
 */
710
 */
-
 
711
void
704
putfile(isfilter)
712
putfile(isfilter)
705
int isfilter;
713
int isfilter;
706
{
714
{
707
	line *a1;
715
	line *a1;
708
	register char *fp, *lp;
716
	register char *fp, *lp;
Line 772... Line 780...
772
 * Traps errors since it mungs unit 0 during the source.
780
 * Traps errors since it mungs unit 0 during the source.
773
 */
781
 */
774
short slevel;
782
short slevel;
775
short ttyindes;
783
short ttyindes;
776
 
784
 
-
 
785
void
777
source(fil, okfail)
786
source(fil, okfail)
778
	char *fil;
787
	char *fil;
779
	bool okfail;
788
	bool okfail;
780
{
789
{
781
	jmp_buf osetexit;
790
	jmp_buf osetexit;
Line 884... Line 893...
884
/* It's so wonderful how we all speak the same language... */
893
/* It's so wonderful how we all speak the same language... */
885
# define index strchr
894
# define index strchr
886
# define rindex strrchr
895
# define rindex strrchr
887
#endif
896
#endif
888
 
897
 
-
 
898
void
889
checkmodeline(li_ne)
899
checkmodeline(li_ne)
890
char *li_ne;
900
char *li_ne;
891
{
901
{
892
	char *beg, *end;
902
	char *beg, *end;
893
	char cmdbuf[1024];
903
	char cmdbuf[1024];