aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/symbols-extract.tes
blob: 8a47ede293d09b11ad59df95c14d749008daa443 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!./sciteco-minimal -m
! ./symbols-extract.tes <input file> <output file> <prefix pattern list> <array name> !

EMQ{$SCITECOPATH}/string.tes

! read commandline arguments !
LR 0X#in 2LR 0X#ou 2LR 0X#pa 2LR 0X#na HK

! copy all defines in input file beginning with prefix !
EBQ#in <S#defineS[Q#pa]; -SS :Xa> EF

! sort all defines !
Ga ZJB 0,.M{qsort} J

! format as C/C++ array !
I/*
 * AUTOGENERATED FROM Q#in
 * DO NOT EDIT
 */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <glib.h>

#include "Q#in"
#include "sciteco.h"
#include "symbols.h"

static class SymbolListInitializer_Q#na {
	static const SymbolList::Entry entries[];

public:
	SymbolListInitializer_Q#na();
} initializer INIT_PRIO(PRIO_SYMBOLS);

const SymbolList::Entry SymbolListInitializer_Q#na::entries[] = {

<
  .,W.Xa 0KK
  I#ifdef Qa
	{"Qa", Qa},
#endif

.-Z;>
I};

SymbolListInitializer_Q#na::SymbolListInitializer_Q#na()
{
	Symbols::Q#na.entries = entries;
	Symbols::Q#na.size = G_N_ELEMENTS(entries);
}


! write output file !
EWQ#ou

EX