Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f0b27d1210
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (27 sloc) 1.261 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
/* fold.h */
/* Copyright 2000 by Steve Kirkendall */

#ifdef FEATURE_FOLD

typedef struct fold_s
{
struct fold_s *next;
MARK from; /* start of first line */
MARK to; /* end of last line, inclusive */
CHAR *name; /* displayed name of the fold */
} *FOLD;

/* These are used as the "flags" parameter of foldbyrange(). You can OR these
* together in any combination.
*/
#define FOLD_NOEXTRA 0x00 /* just exact & overlapping folds */
#define FOLD_INSIDE 0x01 /* also folds wholly inside the range */
#define FOLD_OUTSIDE 0x02 /* also folds which wholly include the range */
#define FOLD_NESTED 0x04 /* also folds nested inside other folds */
#define FOLD_TOGGLE 0x10 /* action: unfold/refold the found FOLDs */
#define FOLD_DESTROY 0x20 /* action: delete the found FOLDs */
#define FOLD_TEST 0x40 /* action: do nothing, just detect the FOLDs */

extern FOLD foldalloc P_((MARK from, MARK to, CHAR *name));
extern void foldadd P_((FOLD fold, ELVBOOL infold));
extern RESULT foldbyname P_((BUFFER buf, CHAR *name, ELVBOOL infold));
extern RESULT foldbyrange P_((MARK from, MARK to, ELVBOOL infold, int flags));
extern FOLD foldmark P_((MARK mark, ELVBOOL infold));
extern void foldedit P_((MARK from, MARK to, MARK dest));

#endif /* defined(FEATURE_FOLD) */
Something went wrong with that request. Please try again.