aboutsummaryrefslogtreecommitdiffhomepage
path: root/symbols-extract.tes
diff options
context:
space:
mode:
Diffstat (limited to 'symbols-extract.tes')
-rwxr-xr-xsymbols-extract.tes17
1 files changed, 8 insertions, 9 deletions
diff --git a/symbols-extract.tes b/symbols-extract.tes
index 08ab2d7..6497324 100755
--- a/symbols-extract.tes
+++ b/symbols-extract.tes
@@ -1,10 +1,10 @@
#!./sciteco-minimal -m
-! ./symbols-extract.tes <input file> <output file> <prefix> <array name> !
+! ./symbols-extract.tes <input file> <output file> <prefix pattern list> <array name> !
! <pos1,pos2>Mc - Compare string at pos1 with string at pos2 !
@^Uc{
U.2U.1 -.%.1^[ -.%.2^[
- <Q.1A-(Q.2A)U.c Q.1A"A|Q.2A"A|;'' Q.c"N;' %.1^[%.2>
+ <Q.1A-(Q.2A)U.c Q.1A"C|Q.2A"C|;'' Q.c"N;' %.1^[%.2>
Q.c
}
@@ -44,7 +44,7 @@
LR 0Xi 2LR 0Xo 2LR 0Xp 2LR 0Xn HK
! copy all defines in input file beginning with prefix !
-EBQi <S#define^SQp; :Xa> EF
+EBQi <S#defineS[Qp]; -SS :Xa> EF
! sort all defines !
Ga ZJB 0,.Mq J
@@ -61,13 +61,12 @@ I/*
static const SymbolList::Entry entries[] = {

<
- .,W.Xa 0K
- I#ifdef QpQa
+ .,W.Xa 0KK
+ I#ifdef Qa
+ {"Qa", ^EQa},
+#endif

- ^I{"Qa", V I ^EQp^EQa},
-#endif
- L .-Z;
->
+.-Z;>
I};
/* overwrites weak object in symbols.cpp */