MiniDoom

src/m_argv.ml

Owns the process argument vector and implements Doom-style case-insensitive option lookup.

Package
(global)
Reachable
Yes

Declarations

_M_StrCaseEq

function _M_StrCaseEq(a, b)

Compares two ASCII strings case-insensitively without allocating normalized copies.

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_M_ToLowerAscii

inline function _M_ToLowerAscii(c)

Folds one uppercase ASCII byte to lowercase while leaving all other bytes unchanged.

ParameterTypeDefaultDescription
cdynamic—C value supplied to `_M_ToLowerAscii`.

View source

M_CheckParm

function M_CheckParm(check)

Returns the first case-insensitive option index after argv[0], reserving zero to mean absent.

ParameterTypeDefaultDescription
checkdynamic—Check value supplied to `M_CheckParm`.

View source

M_SetArgv

function M_SetArgv(progName, args)

Rebuilds Doom's global argv with the executable name at index zero and records the resulting count.

ParameterTypeDefaultDescription
progNamedynamic—Prog name value supplied to `M_SetArgv`.
argsdynamic—Args value supplied to `M_SetArgv`.

View source

myargc

myargc

Tracks the mutable myargc value used by the m argv subsystem.

View source

myargv

myargv

Holds the optional myargv resource used by the m argv subsystem.

View source