Port sc7 to C++.
This commit is contained in:
parent
afd6009fda
commit
142fbaafdd
@ -88,7 +88,7 @@ binary.sources += [
|
||||
'sc4.c',
|
||||
'sc5.c',
|
||||
'sc6.c',
|
||||
'sc7.c',
|
||||
'sc7.cpp',
|
||||
'scexpand.cpp',
|
||||
'sci18n.cpp',
|
||||
'sclist.cpp',
|
||||
|
@ -41,12 +41,17 @@ unsigned char sequences_table[][2] = {
|
||||
/*-*SCPACK end of pair table, do not change or remove this line */
|
||||
|
||||
#define seqsize(o,p) (opcodes(o)+opargs(p))
|
||||
typedef struct {
|
||||
const char *find;
|
||||
const char *replace;
|
||||
int savesize; /* number of bytes saved (in bytecode) */
|
||||
} PRE_SEQUENCE;
|
||||
typedef struct {
|
||||
char *find;
|
||||
char *replace;
|
||||
int savesize; /* number of bytes saved (in bytecode) */
|
||||
} SEQUENCE;
|
||||
static SEQUENCE sequences_cmp[] = {
|
||||
static PRE_SEQUENCE sequences_cmp[] = {
|
||||
/* A very common sequence in four varieties
|
||||
* load.s.pri n1 load.s.pri n2
|
||||
* push.pri load.s.alt n1
|
||||
|
Loading…
Reference in New Issue
Block a user