version 1.85, 2024/04/25 18:33:53 |
version 1.86, 2024/05/04 22:59:21 |
|
|
return charnum; |
return charnum; |
} |
} |
|
|
/* runetochar() adapted from rune.c in the Plan 9 distributione */ |
/* runetochar() adapted from rune.c in the Plan 9 distribution */ |
|
|
enum |
enum |
{ |
{ |
|
|
Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg list */ |
Cell *bltin(Node **a, int n) /* builtin functions. a[0] is type, a[1] is arg list */ |
{ |
{ |
Cell *x, *y; |
Cell *x, *y; |
Awkfloat u; |
Awkfloat u = 0; |
int t, sz; |
int t, sz; |
Awkfloat tmp; |
Awkfloat tmp; |
char *buf, *fmt; |
char *buf, *fmt; |
|
|
const char *start; |
const char *start; |
const char *noempty = NULL; /* empty match disallowed here */ |
const char *noempty = NULL; /* empty match disallowed here */ |
size_t m = 0; /* match count */ |
size_t m = 0; /* match count */ |
size_t whichm; /* which match to select, 0 = global */ |
size_t whichm = 0; /* which match to select, 0 = global */ |
int mtype; /* match type */ |
int mtype; /* match type */ |
|
|
if (a[0] == NULL) { /* 0 => a[1] is already-compiled regexpr */ |
if (a[0] == NULL) { /* 0 => a[1] is already-compiled regexpr */ |