#104: interpinfo.pasm constants don't match docs in core.ops
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: bug | Status: new
Priority: minor | Milestone:
Component: docs | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
Comment(by jkeenan):
Some info. Here's what I get for generated file
''runtime/parrot/include/interpinfo.pasm'':
{{{
.macro_const INTERPINFO_TOTAL_MEM_ALLOC 1
.macro_const INTERPINFO_GC_MARK_RUNS 2
.macro_const INTERPINFO_GC_COLLECT_RUNS 3
.macro_const INTERPINFO_ACTIVE_PMCS 4
.macro_const INTERPINFO_ACTIVE_BUFFERS 5
.macro_const INTERPINFO_TOTAL_PMCS 6
.macro_const INTERPINFO_TOTAL_BUFFERS 7
.macro_const INTERPINFO_HEADER_ALLOCS_SINCE_COLLECT 8
.macro_const INTERPINFO_MEM_ALLOCS_SINCE_COLLECT 9
.macro_const INTERPINFO_TOTAL_COPIED 10
.macro_const INTERPINFO_IMPATIENT_PMCS 11
.macro_const INTERPINFO_GC_LAZY_MARK_RUNS 12
.macro_const INTERPINFO_EXTENDED_PMCS 13
.macro_const INTERPINFO_CURRENT_RUNCORE 14
.macro_const INTERPINFO_CURRENT_SUB 15
.macro_const INTERPINFO_CURRENT_CONT 16
.macro_const INTERPINFO_CURRENT_OBJECT 17
.macro_const INTERPINFO_CURRENT_LEXPAD 18
.macro_const INTERPINFO_EXECUTABLE_FULLNAME 19
.macro_const INTERPINFO_EXECUTABLE_BASENAME 20
.macro_const INTERPINFO_RUNTIME_PREFIX 21
}}}
And here's the relevant docs from ''src/ops/core.ops'':
{{{
interpinfo
Fetch some piece of information about the interpreter and put
it in
$1. Possible values for $2 are defined in
runtime/parrot/include/interpinfo.pasm. The valid constants
for
each return value are:
interpinfo(out INT, in INT)
.TOTAL_MEM_ALLOC, .GC_MARK_RUNS, .GC_COLLECT_RUNS,
.ACTIVE_PMCS, .ACTIVE_BUFFERS, .TOTAL_PMCS, .TOTAL_BUFFERS,
.HEADER_ALLOCS_SINCE_COLLECT, .MEM_ALLOCS_SINCE_COLLECT,
.TOTAL_COPIED, .IMPATIENT_PMCS, .GC_LAZY_MARK_RUNS,
.EXTENDED_PMCS, .RUNCORE
interpinfo(out PMC, in INT)
.CURRENT_SUB, .CURRENT_CONT, .CURRENT_OBJECT,
.CURRENT_LEXPAD
interpinfo(out STR, in INT)
.EXECUTABLE_FULLNAME, .EXECUTABLE_BASENAME, .RUNTIME_PREFIX
}}}
Stripping off `.macro_constant INTERPINFO_` from the former and doing some
word processing on the latter, then `diff`-ing, I get:
{{{
diff -w firstcolumn.interpinfo.pasm interpinfo.txt
14c14
< CURRENT_RUNCORE
---
> RUNCORE
}}}
as the only difference apparent to the naive observer.
Where do we go from here?
Thank you very much.[[BR]]
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/104#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets