sys.h

Go to the documentation of this file.
00001 // @(#)root/editline:$Id: sys.h 30194 2009-09-16 12:19:46Z axel $
00002 // Author: Mary-Louise Gill, 2009
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 /*      $NetBSD: sys.fH,v 1.4 2000/09/04 22:06:32 lukem Exp $   */
00013 
00014 /*-
00015  * Copyright (c) 1992, 1993
00016  *      The Regents of the University of California.  All rights reserved.
00017  *
00018  * This code is derived from software contributed to Berkeley by
00019  * Christos Zoulas of Cornell University.
00020  *
00021  * Redistribution and use in source and binary forms, with or without
00022  * modification, are permitted provided that the following conditions
00023  * are met:
00024  * 1. Redistributions of source code must retain the above copyright
00025  *    notice, this list of conditions and the following disclaimer.
00026  * 2. Redistributions in binary form must reproduce the above copyright
00027  *    notice, this list of conditions and the following disclaimer in the
00028  *    documentation and/or other materials provided with the distribution.
00029  * 3. Neither the name of the University nor the names of its contributors
00030  *    may be used to endorse or promote products derived from this software
00031  *    without specific prior written permission.
00032  *
00033  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00034  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00035  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00036  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00037  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00038  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00039  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00040  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00041  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00042  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00043  * SUCH DAMAGE.
00044  */
00045 
00046 /*
00047  * sys.fH: Put all the stupid compiler and system dependencies here...
00048  */
00049 #ifndef _h_sys
00050 #define _h_sys
00051 
00052 /**
00053    Notes by stephan@s11n.net.
00054 
00055    These public, protected, private macros are bullshit. i added an el_ prefix
00056    to them to allow a C++ compiler to swallow this code, and set them all
00057    to empty values. One day i'll sed them out of the tree entirely.
00058  */
00059 #ifndef el_public
00060 # define el_public              /* Externally visible functions/variables */
00061 #endif
00062 
00063 #ifndef el_private
00064 # define el_private     /* Always hidden internals */
00065 #endif
00066 
00067 #ifndef el_protected
00068 # define el_protected   /* Redefined from elsewhere to "static" */
00069                         /* When we want to hide everything      */
00070 #endif
00071 /*
00072 #if HAVE_SYS_CDEFS_H
00073 # include <sys/cdefs.h>
00074 #endif
00075 */
00076 
00077 #ifndef _PTR_T
00078 # define _PTR_T
00079 typedef void* ptr_t;
00080 #endif
00081 
00082 #ifndef _IOCTL_T
00083 # define _IOCTL_T
00084 typedef void* ioctl_t;
00085 #endif
00086 
00087 #include <stdio.h>
00088 
00089 #define REGEX           /* Use POSIX.2 regular expression functions */
00090 #undef  REGEXP          /* Use UNIX V8 regular expression functions */
00091 
00092 #if defined(__sun__) && defined(__SVR4)
00093 # undef REGEX
00094 # undef REGEXP
00095 # include <malloc.h>
00096 typedef void (*sig_t)(int);
00097 #endif
00098 
00099 /*
00100 #ifndef __P
00101 # ifdef __STDC__
00102 #  define __P(x) x
00103 # else
00104 #  define __P(x) ()
00105 # endif
00106 #endif
00107 */
00108 
00109 #endif /* _h_sys */

Generated on Tue Jul 5 14:11:38 2011 for ROOT_528-00b_version by  doxygen 1.5.1