Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/tip/tip/tip.h
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#define value(v) vtable[v].v_value | #define value(v) vtable[v].v_value | ||||
#define lvalue(v) (long)(intptr_t)vtable[v].v_value | #define lvalue(v) (long)(intptr_t)vtable[v].v_value | ||||
#define number(v) ((long)(intptr_t)(v)) | #define number(v) ((long)(intptr_t)(v)) | ||||
#define boolean(v) ((short)(intptr_t)(v)) | #define boolean(v) ((short)(intptr_t)(v)) | ||||
#define character(v) ((char)(intptr_t)(v)) | #define character(v) ((char)(intptr_t)(v)) | ||||
#define address(v) ((long *)(v)) | |||||
#define setnumber(v,n) do { (v) = (char *)(intptr_t)(n); } while (0) | #define setnumber(v,n) do { (v) = (char *)(intptr_t)(n); } while (0) | ||||
#define setboolean(v,n) do { (v) = (char *)(intptr_t)(n); } while (0) | #define setboolean(v,n) do { (v) = (char *)(intptr_t)(n); } while (0) | ||||
#define setcharacter(v,n) do { (v) = (char *)(intptr_t)(n); } while (0) | #define setcharacter(v,n) do { (v) = (char *)(intptr_t)(n); } while (0) | ||||
#define setaddress(v,n) do { (v) = (char *)(n); } while (0) | |||||
/* | /* | ||||
* Escape command table definitions -- | * Escape command table definitions -- | ||||
* lookup in this table is performed when ``escapec'' is recognized | * lookup in this table is performed when ``escapec'' is recognized | ||||
* at the beginning of a line (as defined by the eolmarks variable). | * at the beginning of a line (as defined by the eolmarks variable). | ||||
*/ | */ | ||||
typedef | typedef | ||||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |