Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs
mork.h File Reference
#include "mdb.h"
#include "nscore.h"
#include "morkConfig.h"

Go to the source code of this file.

Defines

#define MORK_USED_1(x)   (void)(&x)
#define MORK_USED_2(x, y)   (void)(&x);(void)(&y);
#define MORK_USED_3(x, y, z)   (void)(&x);(void)(&y);(void)(&z);
#define MORK_USED_4(w, x, y, z)   (void)(&w);(void)(&x);(void)(&y);(void)(&z);
#define mork_OffsetOf(obj, slot)   ((unsigned int)&((obj*) 0)->slot)
#define morkColor_kNone   ((mork_color) 0)
#define morkTest_kVoid   ((mork_test) -1) /* -1: nil key slot, no key order */
#define morkTest_kHit   ((mork_test) 0) /* 0: keys are equal, a map hit */
#define morkTest_kMiss   ((mork_test) 1) /* 1: keys not equal, a map miss */
#define morkPriority_kHi   ((mork_priority) 0) /* best priority */
#define morkPriority_kMin   ((mork_priority) 0) /* best priority is smallest */
#define morkPriority_kLo   ((mork_priority) 9) /* worst priority */
#define morkPriority_kMax   ((mork_priority) 9) /* worst priority is biggest */
#define morkPriority_kCount   10 /* number of distinct priority values */
#define morkAble_kEnabled   ((mork_able) 0x55) /* same as IronDoc constant */
#define morkAble_kDisabled   ((mork_able) 0xAA) /* same as IronDoc constant */
#define morkAble_kAsleep   ((mork_able) 0x5A) /* same as IronDoc constant */
#define morkChange_kAdd   'a' /* add member */
#define morkChange_kCut   'c' /* cut member */
#define morkChange_kPut   'p' /* put member */
#define morkChange_kSet   's' /* set all members */
#define morkChange_kNil   0 /* no change in this member */
#define morkChange_kDup   'd' /* duplicate changes have no effect */
#define morkLoad_kDirty   ((mork_load) 0xDD) /* same as IronDoc constant */
#define morkLoad_kClean   ((mork_load) 0x22) /* same as IronDoc constant */
#define morkAccess_kOpen   'o'
#define morkAccess_kClosing   'c'
#define morkAccess_kShut   's'
#define morkAccess_kDead   'd'
#define morkChar_IsWhite(c)   ((c) == 0xA || (c) == 0x9 || (c) == 0xD || (c) == ' ')
#define morkBool_kTrue   ((mork_bool) 1) /* actually any nonzero means true */
#define morkBool_kFalse   ((mork_bool) 0) /* only zero means false */
#define morkId_kMinusOne   ((mdb_id) -1)

Typedefs

typedef unsigned char mork_u1
typedef unsigned short mork_u2
typedef short mork_i2
typedef PRUint32 mork_u4
typedef PRInt32 mork_i4
typedef PRWord mork_ip
typedef mork_u1 mork_ch
typedef mork_u1 mork_flags
typedef mork_u2 mork_base
typedef mork_u2 mork_derived
typedef mork_u2 mork_uses
typedef mork_u2 mork_refs
typedef mork_u4 mork_token
typedef mork_token mork_scope
typedef mork_token mork_kind
typedef mork_token mork_cscode
typedef mork_token mork_aid
typedef mork_token mork_column
typedef mork_column mork_delta
typedef mork_token mork_color
typedef mork_u4 mork_magic
typedef mork_u4 mork_seed
typedef mork_u4 mork_count
typedef mork_count mork_num
typedef mork_u4 mork_size
typedef mork_u4 mork_fill
typedef mork_u4 mork_more
typedef mdb_u4 mork_percent
typedef mork_i4 mork_pos
typedef mork_i4 mork_line
typedef mork_u1 mork_usage
typedef mork_u1 mork_access
typedef mork_u1 mork_change
typedef mork_u1 mork_priority
typedef mork_u1 mork_able
typedef mork_u1 mork_load
typedef mork_i2 mork_test
typedef int mork_char
typedef mdb_bool mork_bool
typedef mdb_id mork_id
typedef mork_id mork_rid
typedef mork_id mork_tid
typedef mork_id mork_gid
typedef mdb_order mork_order

Define Documentation

#define mork_OffsetOf (   obj,
  slot 
)    ((unsigned int)&((obj*) 0)->slot)

Definition at line 76 of file mork.h.

#define MORK_USED_1 (   x)    (void)(&x)

Definition at line 50 of file mork.h.

#define MORK_USED_2 (   x,
  y 
)    (void)(&x);(void)(&y);

Definition at line 51 of file mork.h.

#define MORK_USED_3 (   x,
  y,
 
)    (void)(&x);(void)(&y);(void)(&z);

Definition at line 52 of file mork.h.

#define MORK_USED_4 (   w,
  x,
  y,
 
)    (void)(&w);(void)(&x);(void)(&y);(void)(&z);

Definition at line 53 of file mork.h.

#define morkAble_kAsleep   ((mork_able) 0x5A) /* same as IronDoc constant */

Definition at line 150 of file mork.h.

#define morkAble_kDisabled   ((mork_able) 0xAA) /* same as IronDoc constant */

Definition at line 149 of file mork.h.

#define morkAble_kEnabled   ((mork_able) 0x55) /* same as IronDoc constant */

Definition at line 148 of file mork.h.

Definition at line 165 of file mork.h.

Definition at line 167 of file mork.h.

Definition at line 164 of file mork.h.

Definition at line 166 of file mork.h.

#define morkBool_kFalse   ((mork_bool) 0) /* only zero means false */

Definition at line 182 of file mork.h.

#define morkBool_kTrue   ((mork_bool) 1) /* actually any nonzero means true */

Definition at line 181 of file mork.h.

#define morkChange_kAdd   'a' /* add member */

Definition at line 152 of file mork.h.

#define morkChange_kCut   'c' /* cut member */

Definition at line 153 of file mork.h.

#define morkChange_kDup   'd' /* duplicate changes have no effect */

Definition at line 157 of file mork.h.

#define morkChange_kNil   0 /* no change in this member */

Definition at line 156 of file mork.h.

#define morkChange_kPut   'p' /* put member */

Definition at line 154 of file mork.h.

#define morkChange_kSet   's' /* set all members */

Definition at line 155 of file mork.h.

#define morkChar_IsWhite (   c)    ((c) == 0xA || (c) == 0x9 || (c) == 0xD || (c) == ' ')

Definition at line 172 of file mork.h.

Definition at line 106 of file mork.h.

Definition at line 194 of file mork.h.

#define morkLoad_kClean   ((mork_load) 0x22) /* same as IronDoc constant */

Definition at line 162 of file mork.h.

#define morkLoad_kDirty   ((mork_load) 0xDD) /* same as IronDoc constant */

Definition at line 161 of file mork.h.

#define morkPriority_kCount   10 /* number of distinct priority values */

Definition at line 146 of file mork.h.

Definition at line 140 of file mork.h.

#define morkPriority_kLo   ((mork_priority) 9) /* worst priority */

Definition at line 143 of file mork.h.

#define morkPriority_kMax   ((mork_priority) 9) /* worst priority is biggest */

Definition at line 144 of file mork.h.

#define morkPriority_kMin   ((mork_priority) 0) /* best priority is smallest */

Definition at line 141 of file mork.h.

#define morkTest_kHit   ((mork_test) 0) /* 0: keys are equal, a map hit */

Definition at line 136 of file mork.h.

#define morkTest_kMiss   ((mork_test) 1) /* 1: keys not equal, a map miss */

Definition at line 137 of file mork.h.

#define morkTest_kVoid   ((mork_test) -1) /* -1: nil key slot, no key order */

Definition at line 135 of file mork.h.


Typedef Documentation

typedef mork_u1 mork_able

Definition at line 128 of file mork.h.

Definition at line 123 of file mork.h.

Definition at line 100 of file mork.h.

typedef mork_u2 mork_base

Definition at line 91 of file mork.h.

Definition at line 178 of file mork.h.

typedef mork_u1 mork_ch

Definition at line 88 of file mork.h.

Definition at line 125 of file mork.h.

typedef int mork_char

Definition at line 171 of file mork.h.

Definition at line 105 of file mork.h.

Definition at line 102 of file mork.h.

Definition at line 111 of file mork.h.

Definition at line 99 of file mork.h.

Definition at line 103 of file mork.h.

Definition at line 92 of file mork.h.

typedef mork_u4 mork_fill

Definition at line 114 of file mork.h.

Definition at line 89 of file mork.h.

typedef mork_id mork_gid

Definition at line 188 of file mork.h.

typedef short mork_i2

Definition at line 83 of file mork.h.

typedef PRInt32 mork_i4

Definition at line 85 of file mork.h.

typedef mdb_id mork_id

Definition at line 185 of file mork.h.

typedef PRWord mork_ip

Definition at line 86 of file mork.h.

Definition at line 98 of file mork.h.

typedef mork_i4 mork_line

Definition at line 120 of file mork.h.

typedef mork_u1 mork_load

Definition at line 129 of file mork.h.

Definition at line 108 of file mork.h.

typedef mork_u4 mork_more

Definition at line 115 of file mork.h.

Definition at line 112 of file mork.h.

Definition at line 191 of file mork.h.

Definition at line 117 of file mork.h.

typedef mork_i4 mork_pos

Definition at line 119 of file mork.h.

Definition at line 126 of file mork.h.

typedef mork_u2 mork_refs

Definition at line 94 of file mork.h.

typedef mork_id mork_rid

Definition at line 186 of file mork.h.

Definition at line 97 of file mork.h.

typedef mork_u4 mork_seed

Definition at line 110 of file mork.h.

typedef mork_u4 mork_size

Definition at line 113 of file mork.h.

typedef mork_i2 mork_test

Definition at line 133 of file mork.h.

typedef mork_id mork_tid

Definition at line 187 of file mork.h.

Definition at line 96 of file mork.h.

typedef unsigned char mork_u1

Definition at line 81 of file mork.h.

typedef unsigned short mork_u2

Definition at line 82 of file mork.h.

typedef PRUint32 mork_u4

Definition at line 84 of file mork.h.

Definition at line 122 of file mork.h.

typedef mork_u2 mork_uses

Definition at line 93 of file mork.h.