Annotation of 43BSDReno/usr.bin/make/sprite.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
        !             3:  * Copyright (c) 1988, 1989 by Adam de Boor
        !             4:  * Copyright (c) 1989 by Berkeley Softworks
        !             5:  * All rights reserved.
        !             6:  *
        !             7:  * This code is derived from software contributed to Berkeley by
        !             8:  * Adam de Boor.
        !             9:  *
        !            10:  * Redistribution and use in source and binary forms are permitted
        !            11:  * provided that: (1) source distributions retain this entire copyright
        !            12:  * notice and comment, and (2) distributions including binaries display
        !            13:  * the following acknowledgement:  ``This product includes software
        !            14:  * developed by the University of California, Berkeley and its contributors''
        !            15:  * in the documentation or other materials provided with the distribution
        !            16:  * and in all advertising materials mentioning features or use of this
        !            17:  * software. Neither the name of the University nor the names of its
        !            18:  * contributors may be used to endorse or promote products derived
        !            19:  * from this software without specific prior written permission.
        !            20:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
        !            21:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
        !            22:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            23:  *
        !            24:  *     @(#)sprite.h    5.3 (Berkeley) 6/1/90
        !            25:  */
        !            26: 
        !            27: /*
        !            28:  * sprite.h --
        !            29:  *
        !            30:  * Common constants and type declarations for Sprite.
        !            31:  */
        !            32: 
        !            33: #ifndef _SPRITE
        !            34: #define _SPRITE
        !            35: 
        !            36: 
        !            37: /*
        !            38:  * A boolean type is defined as an integer, not an enum. This allows a
        !            39:  * boolean argument to be an expression that isn't strictly 0 or 1 valued.
        !            40:  */
        !            41: 
        !            42: typedef int Boolean;
        !            43: #ifndef TRUE
        !            44: #define TRUE   1
        !            45: #endif TRUE
        !            46: #ifndef FALSE
        !            47: #define FALSE  0
        !            48: #endif FALSE
        !            49: 
        !            50: /*
        !            51:  * Functions that must return a status can return a ReturnStatus to
        !            52:  * indicate success or type of failure.
        !            53:  */
        !            54: 
        !            55: typedef int  ReturnStatus;
        !            56: 
        !            57: /*
        !            58:  * The following statuses overlap with the first 2 generic statuses 
        !            59:  * defined in status.h:
        !            60:  *
        !            61:  * SUCCESS                     There was no error.
        !            62:  * FAILURE                     There was a general error.
        !            63:  */
        !            64: 
        !            65: #define        SUCCESS                 0x00000000
        !            66: #define        FAILURE                 0x00000001
        !            67: 
        !            68: 
        !            69: /*
        !            70:  * A nil pointer must be something that will cause an exception if 
        !            71:  * referenced.  There are two nils: the kernels nil and the nil used
        !            72:  * by user processes.
        !            73:  */
        !            74: 
        !            75: #define NIL            0xFFFFFFFF
        !            76: #define USER_NIL       0
        !            77: #ifndef NULL
        !            78: #define NULL           0
        !            79: #endif NULL
        !            80: 
        !            81: /*
        !            82:  * An address is just a pointer in C.  It is defined as a character pointer
        !            83:  * so that address arithmetic will work properly, a byte at a time.
        !            84:  */
        !            85: 
        !            86: typedef char *Address;
        !            87: 
        !            88: /*
        !            89:  * ClientData is an uninterpreted word.  It is defined as an int so that
        !            90:  * kdbx will not interpret client data as a string.  Unlike an "Address",
        !            91:  * client data will generally not be used in arithmetic.
        !            92:  */
        !            93: 
        !            94: typedef int *ClientData;
        !            95: 
        !            96: #ifdef notdef
        !            97: #include "status.h"
        !            98: #endif
        !            99: 
        !           100: #endif _SPRITE

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.