_generic.h File Reference

Defines and typedefs used everywhere. More...

#include <sys/types.h>

Go to the source code of this file.

Defines

#define _GENERIC_H
#define PAUSE()   fflush(stdout); while(fgetc(stdin) == EOF);
 A macro that waits for the user to hit a key.

#define BUF_SIZE   256
 A default size for buffers.

#define ERR   -999
 The default value of error values.

#define OK   0
 Value used to indicate that an operation worked.

#define TRUE   1
 The boolean value for \i true.

#define FALSE   0
 The boolean value for \i false.

#define ON   1
 Used to incidate the \i on state.

#define OFF   0
 Used to incidate the \i off state.

#define YES   1
 Used to incidate a \i yes response.

#define NO   0
 Used to incidate a \i no response.

#define NULL   0
 Defines the value of empty pointers.

#define EOF   (-1)
 The end-of-file value.

#define _(args)   ()
 Used to provide a consistent definition for non-ansi C and ansi C.


Typedefs

typedef unsigned size_t
 The typedef for size_t arguments.

typedef char VOID
 The void type is a char in standard C.

typedef size_t size_type
 Used to provide a consistent definition of the size_t type.


Enumerations

enum  EnumDataOwned { DataNotOwned = 0, AcquireOwnership = 1, AssumeOwnership = 2 }
 Ownership categories for objects with reference counts. More...

enum  OrderSense { increasing = 1, decreasing = -1, minimal = 1, maximal = -1 }
 Bias used for comparisons in a dynamic ADT. More...


Detailed Description

Defines and typedefs used everywhere.


Enumeration Type Documentation

enum EnumDataOwned
 

Ownership categories for objects with reference counts.

Enumeration values:
DataNotOwned  Data owned by some other object.
AcquireOwnership  Data originally copied from another object.
AssumeOwnership  Data pointer points to another object's data.

enum OrderSense
 

Bias used for comparisons in a dynamic ADT.

Enumeration values:
increasing  Order from least to greatest.
decreasing  Order from greatest to least.