list.h
来自「eC++编译器源码」· C头文件 代码 · 共 43 行
H
43 行
#pragma List
/* This module creates and accesses property lists. The list items are
unordered name, value pairs where the value can be of four types
(described in SetCommand). */
#include <SYSTEM.h>
typedef void *List;
List Open (char name[]);
/* Generate a new list. All lists must be given a unique name. */
void Close (List &l);
/* Declare list void and deallocate its resources. */
boolean Null (List l);
void Name (List l, char &name[]);
/* Retrieve the name of a list. */
List Find (char name[]);
/* Retrieve the list with the given name. */
void Field (List l, unsigned int fieldNo, char name[]);
/* Assign name to a fieldNo in the list. Values of new fields are
initialized to constant type. */
void FieldName (List l, unsigned int fieldNo, char &name[]);
unsigned int FieldNo (List l, char name[]);
/* Returns MAX (CARDINAL) if name is not found. */
void Delete (List l, unsigned int fieldNo);
/* Remove name and contents of a field from the list. */
unsigned int Count (List l);
/* Number of fields that have names and/or values in the list. */
ADDRESS Load (List l, unsigned int fieldNo);
/* Get address stored in the list. */
void Store (List l, unsigned int fieldNo, ADDRESS a);
/* Store an address in the list. */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?