Rename nstack to narena, change it and pstack to count bytes.
PiperOrigin-RevId: 561066311 Change-Id: I4d0e645e6c254dd906bfc42159e0e99149a7c6c8
This commit is contained in:
committed by
Copybara-Service
parent
b979a26b10
commit
daa2ac7f8b
+11
-11
@@ -1100,11 +1100,6 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
type=ValueType(name='int'),
|
||||
doc='number of potential contacts in contact list',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='nstack',
|
||||
type=ValueType(name='int'),
|
||||
doc='number of fields in mjData stack',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='nuserdata',
|
||||
type=ValueType(name='int'),
|
||||
@@ -1120,9 +1115,14 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
type=ValueType(name='int'),
|
||||
doc='number of fields in plugin state vector',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='narena',
|
||||
type=ValueType(name='size_t'),
|
||||
doc='number of bytes in the mjData arena (inclusive of stack)',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='nbuffer',
|
||||
type=ValueType(name='int'),
|
||||
type=ValueType(name='size_t'),
|
||||
doc='number of bytes in buffer',
|
||||
),
|
||||
StructFieldDecl(
|
||||
@@ -3483,13 +3483,13 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
declname='struct mjData_',
|
||||
fields=(
|
||||
StructFieldDecl(
|
||||
name='nstack',
|
||||
type=ValueType(name='int'),
|
||||
doc='number of mjtNums that can fit in the arena+stack space',
|
||||
name='narena',
|
||||
type=ValueType(name='size_t'),
|
||||
doc='size of the arena in bytes (inclusive of the stack)',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='nbuffer',
|
||||
type=ValueType(name='int'),
|
||||
type=ValueType(name='size_t'),
|
||||
doc='size of main buffer in bytes',
|
||||
),
|
||||
StructFieldDecl(
|
||||
@@ -3509,7 +3509,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='maxuse_stack',
|
||||
type=ValueType(name='int'),
|
||||
type=ValueType(name='size_t'),
|
||||
doc='maximum stack allocation',
|
||||
),
|
||||
StructFieldDecl(
|
||||
|
||||
Reference in New Issue
Block a user