You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/10/14 01:38:38 UTC

cvs commit: xml-xerces/c/src/util/Compilers SunCCDefs.hpp

andyh       00/10/13 16:38:37

  Modified:    c/src/util/Compilers SunCCDefs.hpp
  Log:
  Solaris:  change detection for native support for type bool to defined(_BOOL)
  Contributed by Edward Bortner.
  
  Revision  Changes    Path
  1.10      +17 -14    xml-xerces/c/src/util/Compilers/SunCCDefs.hpp
  
  Index: SunCCDefs.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/Compilers/SunCCDefs.hpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SunCCDefs.hpp	2000/03/09 18:54:44	1.9
  +++ SunCCDefs.hpp	2000/10/13 23:38:37	1.10
  @@ -1,37 +1,37 @@
   /*
    * The Apache Software License, Version 1.1
  - * 
  + *
    * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights
    * reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - * 
  + *    notice, this list of conditions and the following disclaimer.
  + *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
    *    the documentation and/or other materials provided with the
    *    distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:  
  + *    if any, must include the following acknowledgment:
    *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself,
    *    if and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "Xerces" and "Apache Software Foundation" must
    *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written 
  + *    software without prior written permission. For written
    *    permission, please contact apache\@apache.org.
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache",
    *    nor may "Apache" appear in their name, without prior written
    *    permission of the Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  @@ -45,7 +45,7 @@
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation, and was
    * originally based on software copyright (c) 1999, International
  @@ -56,6 +56,10 @@
   
   /*
    * $Log: SunCCDefs.hpp,v $
  + * Revision 1.10  2000/10/13 23:38:37  andyh
  + * Solaris:  change detection for native support for type bool to defined(_BOOL)
  + * Contributed by Edward Bortner.
  + *
    * Revision 1.9  2000/03/09 18:54:44  abagchi
    * Added header-guards to include inlines only once
    *
  @@ -104,7 +108,7 @@
   // ---------------------------------------------------------------------------
   // Indicate that we do not support native bools
   // ---------------------------------------------------------------------------
  -#ifdef XML_SUNCC
  +#if !defined(_BOOL)
   #define NO_NATIVE_BOOL
   #endif
   
  @@ -133,7 +137,7 @@
   // ---------------------------------------------------------------------------
   //  Provide some common string ops that are different/notavail on CC
   // ---------------------------------------------------------------------------
  -inline char toupper(const char toUpper) 
  +inline char toupper(const char toUpper)
   {
       if ((toUpper >= 'a') && (toUpper <= 'z'))
           return char(toUpper - 0x20);