[GHC] #10511: Simplify some preprocessor expressions

GHC ghc-devs at haskell.org
Thu Jun 11 22:03:39 UTC 2015


#10511: Simplify some preprocessor expressions
-------------------------------------+-------------------------------------
        Reporter:  Berdes            |                   Owner:  Berdes
            Type:  task              |                  Status:  patch
        Priority:  low               |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  D981
-------------------------------------+-------------------------------------
Changes (by Berdes):

 * status:  new => patch
 * differential:   => D981


Old description:

> Some proprocessor expressions can be simplified. For exemple, when
> `_MSC_VER` is defined, `_WIN32` is also defined.
>
> So `#if defined(_MSC_VER) || defined(_WIN32)` can be simplified to `#if
> defined(_WIN32)`.

New description:

 Some preprocessor expressions can be simplified. For exemple, when
 `_MSC_VER` is defined, `_WIN32` is also defined.

 So `#if defined(_MSC_VER) || defined(_WIN32)` can be simplified to `#if
 defined(_WIN32)`.

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10511#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list