1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
/* 
|| This file is part of Pike. For copyright information see COPYRIGHT. 
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING 
|| for more information. 
|| $Id: peep.h,v 1.12 2002/11/01 15:56:30 grubba Exp $ 
*/ 
 
#ifndef PEEP_H 
#define PEEP_H 
 
#include "dynamic_buffer.h" 
extern dynamic_buffer instrbuf; 
 
struct p_instr_s 
{ 
  short opcode; 
  short line; 
  struct pike_string *file; 
  INT32 arg; 
  INT32 arg2; 
  INT32 label; 
}; 
 
typedef struct p_instr_s p_instr; 
 
/* Prototypes begin here */ 
void init_bytecode(void); 
void exit_bytecode(void); 
ptrdiff_t insert_opcode(unsigned int f, 
                        INT32 a, 
                        INT32 b, 
                        INT32 l, 
                        INT32 current_line, 
                        struct pike_string *current_file) 
ptrdiff_t insert_opcode2(unsigned int f, 
                         INT32 a, 
                         INT32 b, 
                         INT32 current_line, 
                         struct pike_string *current_file); 
ptrdiff_t insert_opcode1(unsigned int f, 
                         INT32 a, 
                         INT32 current_line, 
                         struct pike_string *current_file); 
ptrdiff_t insert_opcode0(int f,int current_line, 
                         struct pike_string *current_file); 
ptrdiff_t insert_opcode1l(unsigned int f, 
                          INT32 a, 
                          INT32 l, 
                          INT32 current_line, 
                          struct pike_string *current_file); 
ptrdiff_t insert_opcodel(int f, INT32 l, int current_line, 
                         struct pike_string *current_file); 
void update_arg(int instr,INT32 arg); 
void assemble(void); 
/* Prototypes end here */ 
 
#endif