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
  
/* 
|| 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.14 2003/12/02 13:49:58 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; 
}; 
 
typedef struct p_instr_s p_instr; 
 
/* Prototypes begin here */ 
void init_bytecode(void); 
void exit_bytecode(void); 
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); 
void update_arg(int instr,INT32 arg); 
INT32 assemble(int store_linenumbers); 
/* Prototypes end here */ 
 
#endif