|
musrfit 1.10.0
|

Go to the source code of this file.
Functions | |
| FILE * | MUD_openInput (char *inFile) |
| FILE * | MUD_openInOut (char *inFile) |
| FILE * | MUD_openOutput (char *outFile) |
| void | MUD_free (void *pMUD) |
| BOOL | MUD_encode (BUF *pBuf, void *pMUD, MUD_IO_OPT io_opt) |
| void * | MUD_decode (BUF *pBuf) |
| int | MUD_getSize (void *pMUD) |
| void | MUD_show (void *pMUD, MUD_IO_OPT io_opt) |
| void | MUD_heads (void *pMUD, MUD_IO_OPT io_opt) |
| BOOL | MUD_writeEnd (FILE *fout) |
| BOOL | MUD_writeFile (FILE *fout, void *pMUD_head) |
| BOOL | MUD_write (FILE *fout, void *pMUD, MUD_IO_OPT io_opt) |
| BOOL | MUD_writeGrpStart (FILE *fout, MUD_SEC_GRP *pMUD_parentGrp, MUD_SEC_GRP *pMUD_grp, int numMems) |
| void | addIndex (MUD_SEC_GRP *pMUD_grp, void *pMUD) |
| BOOL | MUD_writeGrpMem (FILE *fout, MUD_SEC_GRP *pMUD_grp, void *pMUD) |
| BOOL | MUD_writeGrpEnd (FILE *fout, MUD_SEC_GRP *pMUD_grp) |
| void * | MUD_readFile (FILE *fin) |
| void * | MUD_read (FILE *fin, MUD_IO_OPT io_opt) |
| UINT32 | MUD_setSizes (void *pMUD) |
| MUD_SEC * | MUD_peekCore (FILE *fin) |
| void * | MUD_search (va_alist) |
| int | MUD_fseek (va_alist) |
| MUD_SEC * | fseekNext (FILE *fio, MUD_SEC_GRP *pMUD_parent, UINT32 secID, UINT32 instanceID) |
| int | MUD_fseekFirst (FILE *fio) |
| void | MUD_add (void **ppMUD_head, void *pMUD_new) |
| int | MUD_totSize (void *pMUD) |
| void | MUD_addToGroup (MUD_SEC_GRP *pMUD_grp, void *pMUD) |
| void | MUD_assignCore (MUD_SEC *pMUD1, MUD_SEC *pMUD2) |
| int | MUD_CORE_proc (MUD_OPT op, BUF *pBuf, MUD_SEC *pMUD) |
| int | MUD_INDEX_proc (MUD_OPT op, BUF *pBuf, MUD_INDEX *pMUD) |
| void addIndex | ( | MUD_SEC_GRP * | pMUD_grp, |
| void * | pMUD ) |
Definition at line 332 of file mud.c.
References _MUD_SEC_GRP::memSize, MUD_instanceID, MUD_secID, NULL, _MUD_INDEX::offset, _MUD_SEC_GRP::pMemIndex, _MUD_INDEX::pNext, and zalloc.
Referenced by _ANSI_ARGS_(), MUD_addToGroup(), MUD_writeGrpEnd(), and MUD_writeGrpMem().
| MUD_SEC * fseekNext | ( | FILE * | fio, |
| MUD_SEC_GRP * | pMUD_parent, | ||
| UINT32 | secID, | ||
| UINT32 | instanceID ) |
Definition at line 815 of file mud.c.
References _MUD_SEC::core, FALSE, _MUD_INDEX::instanceID, MUD_CORE::instanceID, MUD_instanceID, MUD_peekCore(), MUD_SEC_EOF_ID, MUD_secID, MUD_size, NULL, _MUD_INDEX::offset, _MUD_SEC_GRP::pMemIndex, _MUD_INDEX::pNext, _MUD_INDEX::secID, MUD_CORE::secID, and TRUE.
Referenced by _ANSI_ARGS_(), and MUD_fseek().
| void MUD_add | ( | void ** | ppMUD_head, |
| void * | pMUD_new ) |
Definition at line 898 of file mud.c.
References _MUD_SEC::core, NULL, and MUD_CORE::pNext.
Referenced by _ANSI_ARGS_(), and MUD_read().
| void MUD_addToGroup | ( | MUD_SEC_GRP * | pMUD_grp, |
| void * | pMUD ) |
Definition at line 922 of file mud.c.
References addIndex(), _MUD_SEC::core, _MUD_SEC_GRP::memSize, MUD_getSize(), MUD_totSize(), NULL, _MUD_SEC_GRP::num, _MUD_SEC_GRP::pMem, and MUD_CORE::pNext.
Referenced by _ANSI_ARGS_(), MUD_setComments(), MUD_setHists(), MUD_setIndVars(), MUD_setRunDesc(), and MUD_setScalers().
Definition at line 944 of file mud.c.
References _MUD_SEC::core, MUD_CORE_proc(), MUD_GET_SIZE, NULL, and MUD_CORE::size.
Referenced by _ANSI_ARGS_(), and MUD_decode().
Definition at line 952 of file mud.c.
References _MUD_SEC::core, decode_4, encode_4, MUD_CORE::instanceID, MUD_DECODE, MUD_ENCODE, MUD_FREE, MUD_GET_SIZE, MUD_HEADS, MUD_SHOW, MUD_CORE::secID, and MUD_CORE::size.
Referenced by _ANSI_ARGS_(), MUD_assignCore(), MUD_decode(), MUD_encode(), MUD_free(), MUD_fseekFirst(), MUD_getSize(), MUD_heads(), MUD_peekCore(), and MUD_show().
| void * MUD_decode | ( | BUF * | pBuf | ) |
Definition at line 151 of file mud.c.
References _MUD_SEC::core, MUD_CORE::instanceID, MUD_assignCore(), MUD_CORE_proc(), MUD_DECODE, MUD_new(), MUD_size, NULL, BUF::pos, MUD_CORE::proc, and MUD_CORE::secID.
Referenced by _ANSI_ARGS_(), and MUD_read().
| BOOL MUD_encode | ( | BUF * | pBuf, |
| void * | pMUD, | ||
| MUD_IO_OPT | io_opt ) |
Definition at line 100 of file mud.c.
References BUF::buf, FALSE, MUD_ALL, MUD_CORE_proc(), MUD_ENCODE, MUD_encode(), MUD_getSize(), MUD_ONE, MUD_SEC_GRP_ID, MUD_secID, MUD_show(), MUD_size, NULL, BUF::size, TRUE, and zalloc.
Referenced by _ANSI_ARGS_(), MUD_encode(), and MUD_write().
| void MUD_free | ( | void * | pMUD | ) |
Definition at line 83 of file mud.c.
References MUD_CORE_proc(), MUD_FREE, MUD_free(), MUD_SHOW, and NULL.
Referenced by _ANSI_ARGS_(), MUD_closeRead(), MUD_closeWrite(), MUD_closeWriteFile(), MUD_free(), MUD_fseek(), MUD_read(), MUD_SEC_GRP_proc(), MUD_setComments(), MUD_setHists(), MUD_setIndVars(), MUD_setScalers(), MUD_writeEnd(), and MUD_writeGrpStart().
| int MUD_fseek | ( | va_alist | ) |
Definition at line 726 of file mud.c.
References FALSE, fseekNext(), _SEEK_ENTRY::instanceID, MUD_free(), MUD_ONE, MUD_read(), MUD_SEC_EOF_ID, MUD_SEC_GRP_ID, MUD_secID, MUD_size, NULL, _SEEK_ENTRY::pNext, _SEEK_ENTRY::secID, TRUE, and zalloc.
Referenced by _ANSI_ARGS_().
| int MUD_fseekFirst | ( | FILE * | fio | ) |
Definition at line 884 of file mud.c.
References MUD_CORE_proc(), MUD_GET_SIZE, MUD_SEC_FIXED_proc(), and NULL.
Referenced by _ANSI_ARGS_().
| int MUD_getSize | ( | void * | pMUD | ) |
Definition at line 194 of file mud.c.
References MUD_CORE_proc(), MUD_GET_SIZE, and NULL.
Referenced by _ANSI_ARGS_(), MUD_addToGroup(), MUD_encode(), MUD_setSizes(), MUD_writeGrpMem(), and MUD_writeGrpStart().
| void MUD_heads | ( | void * | pMUD, |
| MUD_IO_OPT | io_opt ) |
Definition at line 225 of file mud.c.
References MUD_ALL, MUD_CORE_proc(), MUD_HEADS, MUD_heads(), MUD_SEC_EOF_ID, MUD_SEC_GRP_ID, MUD_secID, and NULL.
Referenced by _ANSI_ARGS_(), and MUD_heads().
Definition at line 989 of file mud.c.
References decode_4, encode_4, _MUD_INDEX::instanceID, MUD_DECODE, MUD_ENCODE, MUD_FREE, MUD_GET_SIZE, MUD_HEADS, MUD_INDEX_proc(), MUD_SHOW, NULL, _MUD_INDEX::offset, _MUD_INDEX::pNext, and _MUD_INDEX::secID.
Referenced by _ANSI_ARGS_(), MUD_INDEX_proc(), MUD_SEC_GRP_proc(), and MUD_writeGrpStart().
| FILE * MUD_openInOut | ( | char * | inFile | ) |
Definition at line 55 of file mud.c.
References NULL.
Referenced by _ANSI_ARGS_(), and MUD_openReadWrite().
| FILE * MUD_openInput | ( | char * | inFile | ) |
Definition at line 41 of file mud.c.
References NULL.
Referenced by _ANSI_ARGS_(), and MUD_openRead().
| FILE * MUD_openOutput | ( | char * | outFile | ) |
Definition at line 69 of file mud.c.
References NULL.
Referenced by _ANSI_ARGS_(), MUD_closeWriteFile(), and MUD_openWrite().
| MUD_SEC * MUD_peekCore | ( | FILE * | fin | ) |
Definition at line 593 of file mud.c.
References BUF::buf, MUD_CORE_proc(), MUD_DECODE, MUD_GET_SIZE, NULL, and zalloc.
Referenced by _ANSI_ARGS_(), and fseekNext().
| void * MUD_read | ( | FILE * | fin, |
| MUD_IO_OPT | io_opt ) |
Definition at line 407 of file mud.c.
References _free, bdecode_4(), BUF::buf, _MUD_SEC::core, MUD_add(), MUD_ALL, MUD_decode(), MUD_free(), MUD_GRP, MUD_ONE, MUD_read(), MUD_SEC_EOF_ID, MUD_SEC_GRP_ID, MUD_secID, MUD_show(), NULL, MUD_CORE::pNext, MUD_CORE::secID, and zalloc.
Referenced by _ANSI_ARGS_(), MUD_fseek(), MUD_read(), and MUD_readFile().
| void * MUD_readFile | ( | FILE * | fin | ) |
Definition at line 398 of file mud.c.
References MUD_ALL, and MUD_read().
Referenced by _ANSI_ARGS_(), MUD_openRead(), and MUD_openReadWrite().
| void * MUD_search | ( | va_alist | ) |
Definition at line 628 of file mud.c.
References _MUD_SEC::core, _SEEK_ENTRY::instanceID, MUD_instanceID, MUD_SEC_GRP_ID, MUD_secID, NULL, _SEEK_ENTRY::pNext, MUD_CORE::pNext, _SEEK_ENTRY::secID, and zalloc.
Referenced by _ANSI_ARGS_(), _hist_uint_getproc(), MUD_getHistData(), MUD_getRunDesc(), MUD_setHistData(), and MUD_setHistpData().
| UINT32 MUD_setSizes | ( | void * | pMUD | ) |
Definition at line 542 of file mud.c.
References _MUD_SEC::core, _MUD_INDEX::instanceID, MUD_getSize(), MUD_instanceID, MUD_SEC_GRP_ID, MUD_secID, MUD_setSizes(), NULL, _MUD_INDEX::offset, _MUD_INDEX::pNext, MUD_CORE::pNext, and _MUD_INDEX::secID.
Referenced by _ANSI_ARGS_(), MUD_closeWrite(), MUD_closeWriteFile(), and MUD_setSizes().
| void MUD_show | ( | void * | pMUD, |
| MUD_IO_OPT | io_opt ) |
Definition at line 202 of file mud.c.
References MUD_ALL, MUD_CORE_proc(), MUD_SEC_EOF_ID, MUD_SEC_GRP_ID, MUD_secID, MUD_SHOW, MUD_show(), and NULL.
Referenced by _ANSI_ARGS_(), MUD_encode(), MUD_read(), and MUD_show().
| int MUD_totSize | ( | void * | pMUD | ) |
Definition at line 913 of file mud.c.
References MUD_SEC_GRP_ID, MUD_secID, and MUD_size.
Referenced by _ANSI_ARGS_(), MUD_addToGroup(), MUD_writeGrpEnd(), and MUD_writeGrpMem().
| BOOL MUD_write | ( | FILE * | fout, |
| void * | pMUD, | ||
| MUD_IO_OPT | io_opt ) |
Definition at line 283 of file mud.c.
References _free, BUF::buf, FALSE, MUD_encode(), NULL, BUF::size, and TRUE.
Referenced by _ANSI_ARGS_(), MUD_writeEnd(), MUD_writeFile(), MUD_writeGrpEnd(), and MUD_writeGrpMem().
| BOOL MUD_writeEnd | ( | FILE * | fout | ) |
Definition at line 250 of file mud.c.
References FALSE, MUD_free(), MUD_new(), MUD_ONE, MUD_SEC_EOF_ID, MUD_write(), NULL, and TRUE.
Referenced by _ANSI_ARGS_(), and MUD_writeFile().
| BOOL MUD_writeFile | ( | FILE * | fout, |
| void * | pMUD_head ) |
Definition at line 271 of file mud.c.
References FALSE, MUD_ALL, MUD_write(), and MUD_writeEnd().
Referenced by _ANSI_ARGS_(), MUD_closeWrite(), and MUD_closeWriteFile().
| BOOL MUD_writeGrpEnd | ( | FILE * | fout, |
| MUD_SEC_GRP * | pMUD_grp ) |
Definition at line 376 of file mud.c.
References addIndex(), FALSE, _MUD_SEC_GRP::memSize, MUD_ONE, MUD_totSize(), MUD_write(), NULL, _MUD_SEC_GRP::num, _MUD_SEC_GRP::pos, _MUD_SEC_GRP::pParent, and TRUE.
Referenced by _ANSI_ARGS_().
| BOOL MUD_writeGrpMem | ( | FILE * | fout, |
| MUD_SEC_GRP * | pMUD_grp, | ||
| void * | pMUD ) |
Definition at line 351 of file mud.c.
References addIndex(), FALSE, _MUD_SEC_GRP::memSize, MUD_getSize(), MUD_GRP, MUD_ONE, MUD_SEC_GRP_ID, MUD_secID, MUD_totSize(), MUD_write(), _MUD_SEC_GRP::num, and TRUE.
Referenced by _ANSI_ARGS_().
| BOOL MUD_writeGrpStart | ( | FILE * | fout, |
| MUD_SEC_GRP * | pMUD_parentGrp, | ||
| MUD_SEC_GRP * | pMUD_grp, | ||
| int | numMems ) |
Definition at line 312 of file mud.c.
References _MUD_SEC_GRP::core, _MUD_SEC_GRP::memSize, MUD_FREE, MUD_free(), MUD_getSize(), MUD_INDEX_proc(), NULL, _MUD_SEC_GRP::num, _MUD_SEC_GRP::pMem, _MUD_SEC_GRP::pMemIndex, _MUD_SEC_GRP::pos, _MUD_SEC_GRP::pParent, MUD_CORE::size, and TRUE.
Referenced by _ANSI_ARGS_().