View Issue Details

IDProjectCategoryView StatusLast Update
0000158LDMud 3.3Runtimepublic2022-10-06 19:28
ReporterlarsAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status confirmedResolutionopen 
Summary0000158: Add driver compilation options and constants to driver_info()
DescriptionWe need to
a) assemble a list of options/constants in config.h.in, machine.h.in, that are useful to have in LPC
b) add that to driver_info() and maybe even to configure_driver if it should be changed/is changeable.

--- historic description ---
Short: Runtime query of driver compilation options.
Date: 981114
Type: Feature
State: Proposed
Long:

The driver should offer a way to query compilation options (like MAX_BITSTRING)
at runtime, either via LPC-Predefines, or by an efun returning a mapping.
TagsNo tags attached.

Activities

zesstra

2009-09-28 10:12

administrator   ~0001322

Ok, I agree, there should be some possibility to know things like compiletime limits. So: should they be a permanent define or should it be something query_driver()? For things which may be often used in a loop a define seems to be more reasonable. But then it breaks consistency to use a define for some things and an efun for others. For things changeable at runtime, the decision is IMHO easy: the efun.
And we would need a list of such thing. MAX_BITSTRING_LENGTH does not exist currently, but what else should be added?

Gnomi

2009-09-29 11:30

manager   ~0001341

I think we settled on the name driver_info() for that efun (similar to object_info() and interactive_info()). :-)

zesstra

2009-10-05 16:50

administrator   ~0001479

Right, that was the name. :-)
I will start that efun with MAX_BITSTRING.

Please add suggestions about other information here.

Issue History

Date Modified Username Field Change
2004-11-26 19:42 lars New Issue
2009-09-28 10:12 zesstra Note Added: 0001322
2009-09-29 11:30 Gnomi Note Added: 0001341
2009-10-05 16:49 zesstra Project LDMud => LDMud 3.3
2009-10-05 16:50 zesstra Note Added: 0001479
2009-10-05 16:50 zesstra Assigned To => zesstra
2009-10-05 16:50 zesstra Status new => assigned
2021-04-16 16:11 zesstra Assigned To zesstra =>
2021-04-16 16:11 zesstra Status assigned => confirmed
2021-04-16 16:11 zesstra Product Version 3.2.8 and before =>
2022-10-06 19:28 zesstra Summary Runtime query of driver compilation options. => Add driver compilation options and constants to driver_info()
2022-10-06 19:28 zesstra Description Updated