home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / build / mac / IDE_Options.h next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  89 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*
  19.  
  20.     This file overrides all option settings in the IDE.  It is an attempt to allow all builds
  21.     to have the same options.
  22.  
  23.     Note: We can't use ConditionalMacros.h in this file because it will conflict with 
  24.     the PowerPlant precompiled headers.
  25.  
  26. */
  27.  
  28.     /* warning pragmas */
  29. #pragma warn_hidevirtual on
  30.  
  31. #pragma check_header_flags on
  32.  
  33.     /* Language features that must be the same across libraries... */
  34. #pragma enumsalwaysint    on
  35. #pragma unsigned_char        off
  36. #pragma exceptions            on
  37. #pragma bool on
  38.  
  39.  
  40.     /* Save as much space as possible with strings... */
  41. #pragma pool_strings                on
  42. #pragma dont_reuse_strings    off
  43.  
  44. #pragma options align=native
  45. #pragma sym on                                    /* Takes no memory.  OK in non-debug. */
  46.  
  47.  
  48.  
  49. #ifdef powerc /* ...generating PowerPC */
  50.     #pragma toc_data on
  51.     #pragma fp_contract on
  52.     #pragma readonly_strings on
  53.  
  54.     #ifdef DEBUG
  55.         #pragma traceback on
  56.         #pragma global_optimizer off
  57.         #pragma scheduling off
  58.         #pragma peephole off
  59.         #pragma optimize_for_size off
  60.     #else
  61.         #pragma traceback off
  62.         #pragma global_optimizer on
  63.         #pragma optimization_level 4
  64.         #pragma scheduling 604
  65.         #pragma peephole on
  66.         #pragma optimize_for_size on
  67.     #endif
  68.  
  69. #else /* ...generating 68k */
  70.     #pragma code68020 on
  71.     #pragma code68881 off
  72.  
  73.         /* Far everything... */
  74.     #pragma far_code
  75.     #pragma far_data on
  76.     #pragma far_strings on
  77.     #pragma far_vtables on
  78.  
  79.     #pragma fourbyteints    on    /* 4-byte ints */
  80.     #pragma IEEEdoubles        on    /* 8-byte doubles (as required by Java and NSPR) */
  81.  
  82.     #ifdef DEBUG
  83.         #pragma macsbug on
  84.         #pragma oldstyle_symbols off
  85.     #else
  86.         #pragma macsbug off
  87.     #endif
  88. #endif
  89.