2013-05-20 01:16:08 -04:00
|
|
|
#ifndef _RANDOM_H_
|
|
|
|
#define _RANDOM_H_
|
|
|
|
|
2016-02-24 08:17:45 -05:00
|
|
|
|
|
|
|
#include "retcode.h"
|
|
|
|
|
|
|
|
|
2013-09-25 03:37:07 -04:00
|
|
|
#define AEDIT 1
|
|
|
|
|
2013-10-09 23:13:49 -04:00
|
|
|
extern int fillcol ; /* Fill column */
|
2016-02-24 08:17:45 -05:00
|
|
|
extern boolean hardtab ; /* Use hard tab instead of soft tab */
|
2013-10-09 23:13:49 -04:00
|
|
|
|
2013-05-20 01:16:08 -04:00
|
|
|
|
2013-10-10 00:33:13 -04:00
|
|
|
/* Uninitialized global external declarations. */
|
|
|
|
|
|
|
|
#define CFCPCN 0x0001 /* Last command was C-P, C-N */
|
|
|
|
#define CFKILL 0x0002 /* Last command was a kill */
|
|
|
|
|
|
|
|
extern int thisflag ; /* Flags, this command */
|
|
|
|
extern int lastflag ; /* Flags, last command */
|
|
|
|
|
2013-05-20 01:16:08 -04:00
|
|
|
int setfillcol( int f, int n) ;
|
|
|
|
int showcpos( int f, int n) ;
|
|
|
|
int getcline( void) ;
|
|
|
|
int getccol( int bflg) ;
|
2017-05-18 00:16:07 -04:00
|
|
|
boolean setccol( int pos) ;
|
2016-05-20 08:42:37 -04:00
|
|
|
boolean twiddle( int f, int n) ;
|
2013-05-20 01:16:08 -04:00
|
|
|
int quote( int f, int n) ;
|
|
|
|
int insert_tab( int f, int n) ;
|
2013-09-25 03:37:07 -04:00
|
|
|
#if AEDIT
|
2013-05-20 01:16:08 -04:00
|
|
|
int detab( int f, int n) ;
|
|
|
|
int entab( int f, int n) ;
|
|
|
|
int trim( int f, int n) ;
|
2013-09-25 03:37:07 -04:00
|
|
|
#endif
|
2013-05-20 01:16:08 -04:00
|
|
|
int openline( int f, int n) ;
|
|
|
|
int insert_newline( int f, int n) ;
|
|
|
|
int deblank( int f, int n) ;
|
|
|
|
int indent( int f, int n) ;
|
|
|
|
int forwdel( int f, int n) ;
|
|
|
|
int backdel( int f, int n) ;
|
|
|
|
int killtext( int f, int n) ;
|
|
|
|
int setemode( int f, int n) ;
|
|
|
|
int delmode( int f, int n) ;
|
|
|
|
int setgmode( int f, int n) ;
|
|
|
|
int delgmode( int f, int n) ;
|
|
|
|
int getfence( int f, int n) ;
|
|
|
|
int istring( int f, int n) ;
|
|
|
|
int ovstring( int f, int n) ;
|
|
|
|
|
|
|
|
#endif
|