pike.git/
src/
program.h
Branch:
Tag:
Non-build tags
All tags
No tags
2003-01-15
2003-01-15 19:11:38 by Martin Stjernholm <mast@lysator.liu.se>
cd6673ae52e1e5fd461687f3a1ccf4031601e085 (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.4
Added macro to look up lfuns when we know the program is fixated.
Rev: src/program.h:1.171
2:
|| 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: program.h,v 1.
170
2002
/
12/
01
18
:
39
:
07
mast Exp $
+
|| $Id: program.h,v 1.
171
2003
/
01
/
15
19
:
11
:
38
mast Exp $
*/ #ifndef PROGRAM_H
386:
#define ID_FROM_INT(P,X) ID_FROM_PTR(P,(P)->identifier_references+(X)) #define FIND_LFUN(P,N) ( dmalloc_touch(struct program *,(P))->flags & PROGRAM_FIXED?((P)->lfuns[(N)]):low_find_lfun((P), (N)) )
+
#define QUICK_FIND_LFUN(P,N) (dmalloc_touch(struct program *,(P))->lfuns[N])
#define free_program(p) do{ struct program *_=(p); debug_malloc_touch(_); if(!sub_ref(_)) really_free_program(_); }while(0)