Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2fe6e177ff
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (23 sloc) 0.85 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
/* calc.h */
/* Copyright 1995 by Steve Kirkendall */

/* This is used for storing information about subscripts */
typedef struct
{
CHAR *ptr; /* start of a chunk of text */
int len; /* length of the chunk */
} CHUNK;

typedef enum {CALC_DOLLAR=1, CALC_PAREN=2, CALC_MSG=3, CALC_OUTER=4, CALC_ALL=7} CALCRULE;

BEGIN_EXTERNC
extern ELVBOOL calcnumber P_((CHAR *value));
extern ELVBOOL calctrue P_((CHAR *value));
extern CHAR *calculate P_((CHAR *expr, CHAR **arg, CALCRULE rule));
#ifdef FEATURE_CALC
# ifdef FEATURE_ARRAY
extern _CHAR_ calcsubscript P_((CHAR *array, CHAR *sub, int max, CHUNK *chunks));
# endif
extern ELVBOOL calcbase10 P_((CHAR *value));
extern ELVBOOL calcsel P_((MARK from, MARK to));
extern CHAR *calcelement P_((CHAR *set, CHAR *element));
extern CHAR *calcset P_((CHAR *left, _CHAR_ oper, CHAR *right));
#endif
END_EXTERNC
Something went wrong with that request. Please try again.