Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
irep.h
Go to the documentation of this file.
1 /*
2 ** mruby/irep.h - mrb_irep structure
3 **
4 ** See Copyright Notice in mruby.h
5 */
6 
7 #ifndef MRUBY_IREP_H
8 #define MRUBY_IREP_H
9 
10 #if defined(__cplusplus)
11 extern "C" {
12 #endif
13 
14 /* Program data array struct */
15 typedef struct mrb_irep {
16  uint32_t idx;
17  uint16_t nlocals; /* Number of local variables */
18  uint16_t nregs; /* Number of register variables */
19  uint8_t flags;
20 
24 
25  /* debug info */
26  const char *filename;
27  uint16_t *lines;
29 
30  size_t ilen, plen, slen;
31 } mrb_irep;
32 
33 #define MRB_ISEQ_NO_FREE 1
34 
36 mrb_value mrb_load_irep(mrb_state*, const uint8_t*);
37 
38 #if defined(__cplusplus)
39 } /* extern "C" { */
40 #endif
41 
42 #endif /* MRUBY_IREP_H */