User Tools

Site Tools


haas:summer2015:data:projects:dln0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:summer2015:data:projects:dln0 [2015/06/21 14:13] – [node library] wedgehaas:summer2015:data:projects:dln0 [2015/06/21 20:51] (current) – [node operation status codes] wedge
Line 84: Line 84:
 #define  DLN_ERROR           16   // 0x10, 0020, 00010000 #define  DLN_ERROR           16   // 0x10, 0020, 00010000
 #define  DLN_DEFAULT_FAIL    32   // 0x20, 0040, 00100000 #define  DLN_DEFAULT_FAIL    32   // 0x20, 0040, 00100000
-#define  DLN_RESERVED_CODE1  64   // 0x40, 0100, 01000000 +#define  DLN_INVALID         64   // 0x40, 0100, 01000000 
-#define  DLN_RESERVED_CODE2  128  // 0x80, 0200, 10000000+#define  DLN_RESERVED_CODE   128  // 0x80, 0200, 10000000
  
 // Function prototypes // Function prototypes
Line 105: Line 105:
   * **DLN_DEFAULT_FAIL** - default state of unimplemented functions (default error)   * **DLN_DEFAULT_FAIL** - default state of unimplemented functions (default error)
   * **DLN_ERROR** - some error occurred   * **DLN_ERROR** - some error occurred
-  * **DLN_RESERVED_CODE1** - reserved for future use (not used at present time+  * **DLN_INVALID** - invalid use (NULL pointer
-  * **DLN_RESERVED_CODE2** - reserved for future use (not used at present time)+  * **DLN_RESERVED_CODE** - reserved for future use (not used at present time)
  
 For example, in the case of "DLN_MALLOC_FAIL", there are actually a total of three states raised: For example, in the case of "DLN_MALLOC_FAIL", there are actually a total of three states raised:
   * DLN_ERROR (a problem has occurred)   * DLN_ERROR (a problem has occurred)
   * DLN_MALLOC_FAIL (a problem has occurred when using malloc())   * DLN_MALLOC_FAIL (a problem has occurred when using malloc())
-  * DLN_NULL (no memory allocated, so list cannot be anything but NULL)+  * DLN_NULL (no memory allocated, so node cannot be anything but NULL)
  
 ALL THREE states must be returned from the function in question should such an occurrence take place. ALL THREE states must be returned from the function in question should such an occurrence take place.
haas/summer2015/data/projects/dln0.1434895981.txt.gz · Last modified: 2015/06/21 14:13 by wedge