pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2022-09-22
2022-09-22 09:35:39 by Arne Goedeke <el@laramies.com>
770eb787bab1ad7e5ea50103e4971db485cc763b (
4
lines) (+
2
/-
2
)
[
Show
|
Annotate
]
Branch:
8.0
Debug.get_program_layout: behave as documented
2479:
struct svalue key, value; SET_SVAL(key, PIKE_T_INT, NUMBER_NUMBER, integer, 0);
-
/* FIXME: this could overflow.. typewise, at least. */
+
SET_SVAL(value, PIKE_T_INT, NUMBER_NUMBER, integer,
-
PTR_TO_INT(
p->program
+
p->num
_
program
));
+
p->
num_
program
*
sizeof(PIKE
_
OPCODE_T
));
mapping_insert(m, &key, &value); } }