VirtualBox

Changeset 24 in kBuild for branches/FREEBSD/src/kmk/sprite.h


Ignore:
Timestamp:
Nov 26, 2002 9:24:54 PM (22 years ago)
Author:
bird
Message:

Import of RELENG_4_7_0_RELEASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FREEBSD/src/kmk/sprite.h

    r10 r24  
    3636 * SUCH DAMAGE.
    3737 *
    38  *      @(#)sprite.h    8.2 (Berkeley) 4/28/95
    39  * $FreeBSD: src/usr.bin/make/sprite.h,v 1.13 2002/09/17 21:29:06 jmallett Exp $
     38 *      from: @(#)sprite.h      8.1 (Berkeley) 6/6/93
     39 * $FreeBSD: src/usr.bin/make/sprite.h,v 1.9 1999/08/28 01:03:36 peter Exp $
    4040 */
    4141
     
    4747
    4848#ifndef _SPRITE
    49 #define _SPRITE
     49#define _SPRITE
     50
    5051
    5152/*
     
    5657typedef int Boolean;
    5758#ifndef TRUE
    58 #define TRUE    1
     59#define TRUE    1
    5960#endif /* TRUE */
    6061#ifndef FALSE
    61 #define FALSE   0
     62#define FALSE   0
    6263#endif /* FALSE */
     64
     65/*
     66 * Functions that must return a status can return a ReturnStatus to
     67 * indicate success or type of failure.
     68 */
    6369
    6470typedef int  ReturnStatus;
    6571
    66 #define SUCCESS         0
    67 #define FAILURE         1
     72/*
     73 * The following statuses overlap with the first 2 generic statuses
     74 * defined in status.h:
     75 *
     76 * SUCCESS                      There was no error.
     77 * FAILURE                      There was a general error.
     78 */
     79
     80#define SUCCESS                 0x00000000
     81#define FAILURE                 0x00000001
     82
     83
     84/*
     85 * A nil pointer must be something that will cause an exception if
     86 * referenced.  There are two nils: the kernels nil and the nil used
     87 * by user processes.
     88 */
     89
     90#define NIL             ~0
     91#define USER_NIL        0
     92#ifndef NULL
     93#define NULL            0
     94#endif /* NULL */
     95
     96/*
     97 * An address is just a pointer in C.  It is defined as a character pointer
     98 * so that address arithmetic will work properly, a byte at a time.
     99 */
     100
     101typedef char *Address;
     102
     103/*
     104 * ClientData is an uninterpreted word.  It is defined as an int so that
     105 * kdbx will not interpret client data as a string.  Unlike an "Address",
     106 * client data will generally not be used in arithmetic.
     107 * But we don't have kdbx anymore so we define it as void (christos)
     108 */
     109
     110typedef void *ClientData;
    68111
    69112#endif /* _SPRITE */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette