Subversion Repositories planix.SVN

Compare Revisions

Ignore whitespace Rev 108 → Rev 109

/ports/trunk/editors/rvi/ex.h
404,7 → 404,7
char *vinit();
char *vpastwh();
char *vskipwh();
int put();
void put();
int putreg();
int YANKreg();
int delete();
416,7 → 416,7
int join();
int listchar();
off_t lseek();
int normchar();
void normchar(short);
int normline();
int numbline();
var void (*oldquit)();
/ports/trunk/editors/rvi/ex_cmds2.c
16,6 → 16,11
 
extern bool pflag, nflag; /* mjm: extern; also in ex_cmds.c */
extern int poffset; /* mjm: extern; also in ex_cmds.c */
void
vcontin(bool ask);
void resetflav();
void setflav();
void error0();
 
/*
* Subroutines for major command loop.
113,6 → 118,7
* just fixing up the echo area for the print.
* Otherwise we reset a number of externals, and discard unused input.
*/
void
error0()
{
 
257,6 → 263,7
* Eat trailing flags and offsets after a command,
* saving for possible later post-command prints.
*/
void
newline()
{
register int c;
312,6 → 319,7
* Before quit or respec of arg list, check that there are
* no more files in the arg list.
*/
void
nomore()
{
 
344,6 → 352,7
/*
* Reset the flavor of the output to print mode with no numbering.
*/
void
resetflav()
{
 
380,6 → 389,7
* and either use normally decoded (ARPAnet standard) characters or list mode,
* where end of lines are marked and tabs print as ^I.
*/
void
setflav()
{
 
470,6 → 480,7
/*
* Continue after a : command from open/visual.
*/
void
vcontin(ask)
bool ask;
{
/ports/trunk/editors/rvi/ex_cmdsub.c
23,6 → 23,11
bool endline = 1;
line *tad1;
static jnoop();
void addmac(char *src,char * dest,char * dname,struct maps *mp);
void somechange();
void zop2(int lines, int op);
void put();
void squish();
 
/*
* Append after line a lines returned by function f.
180,6 → 185,7
* Crush out the undo save area, moving the open/visual
* save area down in its place.
*/
void
squish()
{
register line *a1 = dol + 1, *a2 = unddol + 1, *a3 = truedol + 1;
349,6 → 355,7
return (0);
}
 
void
put()
{
register int cnt;
466,6 → 473,7
* Find a tag in the tags file.
* Most work here is in parsing the tags file itself.
*/
void
tagfind(quick)
bool quick;
{
778,6 → 786,7
putnl();
}
 
void
zop2(lines, op)
register int lines;
register int op;
1035,6 → 1044,7
* Be (almost completely) sure there really
* was a change, before claiming to undo.
*/
void
somechange()
{
register line *ip, *jp;
1072,6 → 1082,7
* Map command:
* map src dest
*/
void
mapcmd(un, ab)
int un; /* true if this is unmap command */
int ab; /* true if this is abbr command */
1168,6 → 1179,7
* using NOSTR for dest. Dname is what to show in listings. mp is
* the structure to affect (arrows, etc).
*/
void
addmac(src,dest,dname,mp)
register char *src, *dest, *dname;
register struct maps *mp;
/ports/trunk/editors/rvi/ex_io.c
13,6 → 13,10
#include "ex_temp.h"
#include "ex_tty.h"
#include "ex_vis.h"
void
checkmodeline(char * li_ne);
void
putfile(int isfilter);
 
/*
* File input/output, source, preserve and recover
41,6 → 45,7
* If comm is E then command is doomed and we are
* parsing just so user won't have to retype the name.
*/
void
filename(comm)
int comm;
{
191,6 → 196,7
* Glob the argument words in genbuf, or if no globbing
* is implied, just split them up directly.
*/
void
glob(gp)
struct glob *gp;
{
315,6 → 321,7
* Read a file from the world.
* C is command, 'e' if this really an edit (or a recover).
*/
void
rop(c)
int c;
{
701,6 → 708,7
/*
* Write a range onto the io stream.
*/
void
putfile(isfilter)
int isfilter;
{
774,6 → 782,7
short slevel;
short ttyindes;
 
void
source(fil, okfail)
char *fil;
bool okfail;
886,6 → 895,7
# define rindex strrchr
#endif
 
void
checkmodeline(li_ne)
char *li_ne;
{
/ports/trunk/editors/rvi/ex_put.c
31,6 → 31,12
int (*Outchar)() = termchar;
int (*Putchar)() = normchar;
int (*Pline)() = normline;
void
pstop();
void
pstart();
void slobber(int c);
void normchar(short c);
 
int (*
setlist(t))()
93,6 → 99,7
/*
* Format c for printing.
*/
void
normchar(c)
register short c;
{
155,6 → 162,7
* the printing of the line will erase or otherwise obliterate
* the prompt which was printed before. If it won't, do it now.
*/
void
slobber(c)
int c;
{
786,6 → 794,7
putchar('\n');
}
 
void
putS(cp)
char *cp;
{
872,6 → 881,7
/*
* Try to start -nl mode.
*/
void
pstart()
{
 
898,6 → 908,7
/*
* Stop -nl mode.
*/
void
pstop()
{
 
/ports/trunk/editors/rvi/ex_re.c
10,6 → 10,8
 
#include "ex.h"
#include "ex_re.h"
void
snote(int total, int lines);
 
/*
* Global, substitute and regular expressions.
143,6 → 145,7
* and g/r.e./.,/r.e.2/d are not treated specially. There is no
* good reason for this except the question: where to you draw the line?
*/
void
gdelete()
{
register line *a1, *a2, *a3;
520,6 → 523,7
return (sp);
}
 
void
snote(total, lines)
register int total, lines;
{
/ports/trunk/editors/rvi/ex_set.c
17,6 → 17,7
*/
char optname[ONMSZ];
 
void
set()
{
register char *cp;