зеркало из https://github.com/mozilla/pjs.git
Pandora build fixes
This commit is contained in:
Родитель
3ebadece9c
Коммит
3b25d61c19
|
@ -45,24 +45,12 @@ typedef char16 jschar;
|
|||
typedef uint8 jsbytecode;
|
||||
|
||||
|
||||
typedef struct RECharSet {
|
||||
bool converted;
|
||||
bool sense;
|
||||
uint16 length;
|
||||
union {
|
||||
uint8 *bits;
|
||||
struct {
|
||||
uint16 startIndex;
|
||||
uint16 length;
|
||||
} src;
|
||||
} u;
|
||||
} RECharSet;
|
||||
|
||||
|
||||
#define JSREG_FOLD 0x01 /* fold uppercase to lowercase */
|
||||
#define JSREG_GLOB 0x02 /* global exec, creates array of matches */
|
||||
#define JSREG_MULTILINE 0x04 /* treat ^ and $ as begin and end of line */
|
||||
|
||||
typedef struct RECharSet RECharSet;
|
||||
|
||||
struct JS2RegExp {
|
||||
uint32 parenCount:24, /* number of parenthesized submatches */
|
||||
|
|
|
@ -56,6 +56,18 @@
|
|||
#include "bytecodecontainer.h"
|
||||
#include "js2metadata.h"
|
||||
|
||||
typedef struct RECharSet {
|
||||
bool converted;
|
||||
bool sense;
|
||||
uint16 length;
|
||||
union {
|
||||
uint8 *bits;
|
||||
struct {
|
||||
uint16 startIndex;
|
||||
uint16 length;
|
||||
} src;
|
||||
} u;
|
||||
} RECharSet;
|
||||
|
||||
namespace JavaScript {
|
||||
namespace MetaData {
|
||||
|
@ -121,6 +133,7 @@ typedef char16 JSString;
|
|||
typedef char16 JSSubString;
|
||||
|
||||
|
||||
|
||||
typedef struct REMatchState {
|
||||
const jschar *cp;
|
||||
RECapture parens[1]; /* first of 're->parenCount' captures,
|
||||
|
|
Загрузка…
Ссылка в новой задаче