File: peep.h

package info (click to toggle)
pike8.0 8.0.388-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 78,428 kB
  • ctags: 38,901
  • sloc: ansic: 265,343; xml: 184,899; makefile: 3,403; sh: 1,712; cpp: 1,328; lisp: 655; awk: 265; asm: 242; objc: 240; pascal: 157; perl: 34; sed: 34
file content (42 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (6)
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
/*
|| 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.
*/

#ifndef PEEP_H
#define PEEP_H

#include "dynamic_buffer.h"
extern dynamic_buffer instrbuf;

struct p_instr_s
{
  short opcode;
  INT_TYPE 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,
			 INT_TYPE current_line,
			 struct pike_string *current_file);
ptrdiff_t insert_opcode1(unsigned int f,
			 INT32 a,
			 INT_TYPE current_line,
			 struct pike_string *current_file);
ptrdiff_t insert_opcode0(int f, INT_TYPE current_line,
			 struct pike_string *current_file);
void update_arg(int instr,INT32 arg);
INT32 assemble(int store_linenumbers);
/* Prototypes end here */

#endif