This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Hmmm...strftime() does work on Win32, but tzset() is having problems
[perl5.git] / ext / ByteLoader / byterun.h
1 /* -*- buffer-read-only: t -*-
2  *
3  *      Copyright (c) 1996-1999 Malcolm Beattie
4  *
5  *      You may distribute under the terms of either the GNU General Public
6  *      License or the Artistic License, as specified in the README file.
7  *
8  */
9 /*
10  * This file is autogenerated from bytecode.pl. Changes made here will be lost.
11  */
12 struct byteloader_fdata {
13     SV  *datasv;
14     int next_out;
15     int idx;
16 };
17
18 struct byteloader_pv_state {
19     char                        *pvx;
20     XPV                         xpv;
21 };
22
23 struct byteloader_state {
24     struct byteloader_fdata     *bs_fdata;
25     SV                          *bs_sv;
26     void                        **bs_obj_list;
27     int                         bs_obj_list_fill;
28     int                         bs_ix;
29     struct byteloader_pv_state  bs_pv;
30     int                         bs_iv_overflows;
31 };
32
33 int bl_getc(struct byteloader_fdata *);
34 int bl_read(struct byteloader_fdata *, char *, size_t, size_t);
35 extern int byterun(pTHX_ struct byteloader_state *);
36
37 enum {
38     INSN_RET,                   /* 0 */
39     INSN_LDSV,                  /* 1 */
40     INSN_LDOP,                  /* 2 */
41     INSN_STSV,                  /* 3 */
42     INSN_STOP,                  /* 4 */
43     INSN_STPV,                  /* 5 */
44     INSN_LDSPECSV,                      /* 6 */
45     INSN_LDSPECSVX,                     /* 7 */
46     INSN_NEWSV,                 /* 8 */
47     INSN_NEWSVX,                        /* 9 */
48     INSN_NOP,                   /* 10 */
49     INSN_NEWOP,                 /* 11 */
50     INSN_NEWOPX,                        /* 12 */
51     INSN_NEWOPN,                        /* 13 */
52     INSN_NEWPV,                 /* 14 */
53     INSN_PV_CUR,                        /* 15 */
54     INSN_PV_FREE,                       /* 16 */
55     INSN_SV_UPGRADE,                    /* 17 */
56     INSN_SV_REFCNT,                     /* 18 */
57     INSN_SV_REFCNT_ADD,                 /* 19 */
58     INSN_SV_FLAGS,                      /* 20 */
59     INSN_XRV,                   /* 21 */
60     INSN_XPV,                   /* 22 */
61     INSN_XPV_CUR,                       /* 23 */
62     INSN_XPV_LEN,                       /* 24 */
63     INSN_XIV,                   /* 25 */
64     INSN_XNV,                   /* 26 */
65     INSN_XLV_TARGOFF,                   /* 27 */
66     INSN_XLV_TARGLEN,                   /* 28 */
67     INSN_XLV_TARG,                      /* 29 */
68     INSN_XLV_TYPE,                      /* 30 */
69     INSN_XBM_USEFUL,                    /* 31 */
70     INSN_XBM_PREVIOUS,                  /* 32 */
71     INSN_XBM_RARE,                      /* 33 */
72     INSN_XFM_LINES,                     /* 34 */
73     INSN_COMMENT,                       /* 35 */
74     INSN_XIO_LINES,                     /* 36 */
75     INSN_XIO_PAGE,                      /* 37 */
76     INSN_XIO_PAGE_LEN,                  /* 38 */
77     INSN_XIO_LINES_LEFT,                        /* 39 */
78     INSN_XIO_TOP_NAME,                  /* 40 */
79     INSN_XIO_TOP_GV,                    /* 41 */
80     INSN_XIO_FMT_NAME,                  /* 42 */
81     INSN_XIO_FMT_GV,                    /* 43 */
82     INSN_XIO_BOTTOM_NAME,                       /* 44 */
83     INSN_XIO_BOTTOM_GV,                 /* 45 */
84     INSN_XIO_SUBPROCESS,                        /* 46 */
85     INSN_XIO_TYPE,                      /* 47 */
86     INSN_XIO_FLAGS,                     /* 48 */
87     INSN_XCV_XSUBANY,                   /* 49 */
88     INSN_XCV_STASH,                     /* 50 */
89     INSN_XCV_START,                     /* 51 */
90     INSN_XCV_ROOT,                      /* 52 */
91     INSN_XCV_GV,                        /* 53 */
92     INSN_XCV_FILE,                      /* 54 */
93     INSN_XCV_DEPTH,                     /* 55 */
94     INSN_XCV_PADLIST,                   /* 56 */
95     INSN_XCV_OUTSIDE,                   /* 57 */
96     INSN_XCV_OUTSIDE_SEQ,                       /* 58 */
97     INSN_XCV_FLAGS,                     /* 59 */
98     INSN_AV_EXTEND,                     /* 60 */
99     INSN_AV_PUSHX,                      /* 61 */
100     INSN_AV_PUSH,                       /* 62 */
101     INSN_XAV_FILL,                      /* 63 */
102     INSN_XAV_MAX,                       /* 64 */
103     INSN_XHV_RITER,                     /* 65 */
104     INSN_XHV_NAME,                      /* 66 */
105     INSN_HV_STORE,                      /* 67 */
106     INSN_SV_MAGIC,                      /* 68 */
107     INSN_MG_OBJ,                        /* 69 */
108     INSN_MG_PRIVATE,                    /* 70 */
109     INSN_MG_FLAGS,                      /* 71 */
110     INSN_MG_NAME,                       /* 72 */
111     INSN_MG_NAMEX,                      /* 73 */
112     INSN_XMG_STASH,                     /* 74 */
113     INSN_GV_FETCHPV,                    /* 75 */
114     INSN_GV_FETCHPVX,                   /* 76 */
115     INSN_GV_STASHPV,                    /* 77 */
116     INSN_GV_STASHPVX,                   /* 78 */
117     INSN_GP_SV,                 /* 79 */
118     INSN_GP_REFCNT,                     /* 80 */
119     INSN_GP_REFCNT_ADD,                 /* 81 */
120     INSN_GP_AV,                 /* 82 */
121     INSN_GP_HV,                 /* 83 */
122     INSN_GP_CV,                 /* 84 */
123     INSN_GP_FILE,                       /* 85 */
124     INSN_GP_IO,                 /* 86 */
125     INSN_GP_FORM,                       /* 87 */
126     INSN_GP_CVGEN,                      /* 88 */
127     INSN_GP_LINE,                       /* 89 */
128     INSN_GP_SHARE,                      /* 90 */
129     INSN_XGV_FLAGS,                     /* 91 */
130     INSN_OP_NEXT,                       /* 92 */
131     INSN_OP_SIBLING,                    /* 93 */
132     INSN_OP_PPADDR,                     /* 94 */
133     INSN_OP_TARG,                       /* 95 */
134     INSN_OP_TYPE,                       /* 96 */
135     INSN_OP_OPT,                        /* 97 */
136     INSN_OP_STATIC,                     /* 98 */
137     INSN_OP_FLAGS,                      /* 99 */
138     INSN_OP_PRIVATE,                    /* 100 */
139     INSN_OP_FIRST,                      /* 101 */
140     INSN_OP_LAST,                       /* 102 */
141     INSN_OP_OTHER,                      /* 103 */
142     INSN_OP_PMREPLROOT,                 /* 104 */
143     INSN_OP_PMREPLSTART,                        /* 105 */
144     INSN_OP_PMNEXT,                     /* 106 */
145     INSN_OP_PMSTASHPV,                  /* 107 */
146     INSN_OP_PMREPLROOTPO,                       /* 108 */
147     INSN_OP_PMSTASH,                    /* 109 */
148     INSN_OP_PMREPLROOTGV,                       /* 110 */
149     INSN_PREGCOMP,                      /* 111 */
150     INSN_OP_PMFLAGS,                    /* 112 */
151     INSN_OP_PMPERMFLAGS,                        /* 113 */
152     INSN_OP_PMDYNFLAGS,                 /* 114 */
153     INSN_OP_SV,                 /* 115 */
154     INSN_OP_PADIX,                      /* 116 */
155     INSN_OP_PV,                 /* 117 */
156     INSN_OP_PV_TR,                      /* 118 */
157     INSN_OP_REDOOP,                     /* 119 */
158     INSN_OP_NEXTOP,                     /* 120 */
159     INSN_OP_LASTOP,                     /* 121 */
160     INSN_COP_LABEL,                     /* 122 */
161     INSN_COP_STASHPV,                   /* 123 */
162     INSN_COP_FILE,                      /* 124 */
163     INSN_COP_STASH,                     /* 125 */
164     INSN_COP_FILEGV,                    /* 126 */
165     INSN_COP_SEQ,                       /* 127 */
166     INSN_COP_ARYBASE,                   /* 128 */
167     INSN_COP_LINE,                      /* 129 */
168     INSN_COP_IO,                        /* 130 */
169     INSN_COP_WARNINGS,                  /* 131 */
170     INSN_MAIN_START,                    /* 132 */
171     INSN_MAIN_ROOT,                     /* 133 */
172     INSN_MAIN_CV,                       /* 134 */
173     INSN_CURPAD,                        /* 135 */
174     INSN_PUSH_BEGIN,                    /* 136 */
175     INSN_PUSH_INIT,                     /* 137 */
176     INSN_PUSH_END,                      /* 138 */
177     INSN_CURSTASH,                      /* 139 */
178     INSN_DEFSTASH,                      /* 140 */
179     INSN_DATA,                  /* 141 */
180     INSN_INCAV,                 /* 142 */
181     INSN_LOAD_GLOB,                     /* 143 */
182     INSN_REGEX_PADAV,                   /* 144 */
183     INSN_DOWARN,                        /* 145 */
184     INSN_COMPPAD_NAME,                  /* 146 */
185     INSN_XGV_STASH,                     /* 147 */
186     INSN_SIGNAL,                        /* 148 */
187     INSN_FORMFEED,                      /* 149 */
188     MAX_INSN = 149
189 };
190
191 enum {
192     OPt_OP,             /* 0 */
193     OPt_UNOP,           /* 1 */
194     OPt_BINOP,          /* 2 */
195     OPt_LOGOP,          /* 3 */
196     OPt_LISTOP,         /* 4 */
197     OPt_PMOP,           /* 5 */
198     OPt_SVOP,           /* 6 */
199     OPt_PADOP,          /* 7 */
200     OPt_PVOP,           /* 8 */
201     OPt_LOOP,           /* 9 */
202     OPt_COP             /* 10 */
203 };
204
205 /* ex: set ro: */