~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/third_party/libjpeg_turbo/yasm/source/patched-yasm/tools/re2c/ins.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef re2c_ins_h
2
 
#define re2c_ins_h
3
 
 
4
 
#include "tools/re2c/basics.h"
5
 
 
6
 
#define nChars 256
7
 
typedef unsigned char Char;
8
 
 
9
 
#define CHAR 0
10
 
#define GOTO 1
11
 
#define FORK 2
12
 
#define TERM 3
13
 
#define CTXT 4
14
 
 
15
 
typedef union Ins {
16
 
    struct {
17
 
        byte    tag;
18
 
        byte    marked;
19
 
        void    *link;
20
 
    }                   i;
21
 
    struct {
22
 
        unsigned short  value;
23
 
        unsigned short  bump;
24
 
        void    *link;
25
 
    }                   c;
26
 
} Ins;
27
 
 
28
 
static int isMarked(Ins *i){
29
 
    return i->i.marked != 0;
30
 
}
31
 
 
32
 
static void mark(Ins *i){
33
 
    i->i.marked = 1;
34
 
}
35
 
 
36
 
static void unmark(Ins *i){
37
 
    i->i.marked = 0;
38
 
}
39
 
 
40
 
#endif