Prefer #if defined to #ifdef
authorBen Gamari <ben@smart-cactus.org>
Fri, 21 Apr 2017 13:16:48 +0000 (09:16 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sat, 29 Apr 2017 02:35:04 +0000 (22:35 -0400)
commit945c45ad50ed31e3acb96fdaafb21640c4669f12
treeae2e59ba8d3a49bbd3c3dcece39d53aef691ed44
parente5b3492f23c2296d0d8221e1787ee585331f726e
Prefer #if defined to #ifdef

Our new CPP linter enforces this.
220 files changed:
compiler/basicTypes/RdrName.hs
compiler/cmm/MkGraph.hs
compiler/coreSyn/CoreArity.hs
compiler/deSugar/Desugar.hs
compiler/ghci/GHCi.hsc
compiler/iface/MkIface.hs
compiler/llvmGen/Llvm/Types.hs
compiler/llvmGen/LlvmCodeGen/CodeGen.hs
compiler/main/DynFlags.hs
compiler/main/DynamicLoading.hs
compiler/main/SysTools.hs
compiler/parser/cutils.c
compiler/prelude/primops.txt.pp
compiler/simplCore/SimplCore.hs
compiler/specialise/Rules.hs
compiler/typecheck/TcMType.hs
compiler/typecheck/TcPluginM.hs
compiler/typecheck/TcRnDriver.hs
compiler/typecheck/TcSMonad.hs
compiler/utils/Panic.hs
compiler/utils/Util.hs
driver/gcc/gcc.c
ghc/GHCi/UI.hs
ghc/Main.hs
ghc/hschooks.c
includes/Cmm.h
includes/CodeGen.Platform.hs
includes/HsFFI.h
includes/MachDeps.h
includes/Rts.h
includes/RtsAPI.h
includes/Stg.h
includes/rts/EventLogFormat.h
includes/rts/Flags.h
includes/rts/OSThreads.h
includes/rts/Threads.h
includes/rts/prof/LDV.h
includes/rts/storage/Block.h
includes/rts/storage/ClosureMacros.h
includes/rts/storage/Closures.h
includes/rts/storage/InfoTables.h
includes/rts/storage/MBlock.h
includes/rts/storage/TSO.h
includes/stg/DLL.h
includes/stg/HaskellMachRegs.h
includes/stg/MachRegs.h
includes/stg/MiscClosures.h
includes/stg/RtsMachRegs.h
includes/stg/Ticky.h
libraries/base/Control/Concurrent.hs
libraries/base/Data/Bits.hs
libraries/base/Data/OldList.hs
libraries/base/Data/Semigroup.hs
libraries/base/Foreign/C/String.hs
libraries/base/GHC/Conc.hs
libraries/base/GHC/Conc/IO.hs
libraries/base/GHC/Conc/Windows.hs
libraries/base/GHC/Environment.hs
libraries/base/GHC/Event/KQueue.hsc
libraries/base/GHC/Event/Poll.hsc
libraries/base/GHC/IO/Buffer.hs
libraries/base/GHC/IO/Encoding/CodePage.hs
libraries/base/GHC/IO/Encoding/CodePage/API.hs
libraries/base/GHC/IO/Encoding/Iconv.hs
libraries/base/GHC/IO/FD.hs
libraries/base/GHC/IO/Handle.hs
libraries/base/GHC/IO/Handle/FD.hs
libraries/base/GHC/IO/Handle/Text.hs
libraries/base/GHC/IO/Handle/Types.hs
libraries/base/GHC/List.hs
libraries/base/GHC/Real.hs
libraries/base/GHC/TopHandler.hs
libraries/base/System/Environment.hs
libraries/base/System/IO.hs
libraries/base/System/Posix/Internals.hs
libraries/base/System/Timeout.hs
libraries/base/cbits/SetEnv.c
libraries/base/cbits/iconv.c
libraries/base/cbits/primFloat.c
libraries/base/include/HsBase.h
libraries/base/include/ieee-flpt.h
libraries/ghci/GHCi/ObjLink.hs
libraries/ghci/GHCi/Signals.hs
rts/Adjustor.c
rts/AdjustorAsm.S
rts/Apply.cmm
rts/Apply.h
rts/AutoApply.h
rts/Capability.c
rts/Capability.h
rts/CheckUnload.c
rts/Compact.cmm
rts/Disassembler.c
rts/Disassembler.h
rts/FileLock.c
rts/Globals.c
rts/HeapStackCheck.cmm
rts/Hpc.c
rts/Interpreter.c
rts/LdvProfile.c
rts/LdvProfile.h
rts/Libdw.c
rts/Linker.c
rts/Messages.c
rts/Messages.h
rts/Pool.c
rts/Prelude.h
rts/PrimOps.cmm
rts/Printer.c
rts/Printer.h
rts/ProfHeap.c
rts/ProfHeap.h
rts/ProfilerReport.c
rts/ProfilerReport.h
rts/ProfilerReportJson.c
rts/ProfilerReportJson.h
rts/Profiling.c
rts/Profiling.h
rts/Proftimer.c
rts/RaiseAsync.c
rts/RaiseAsync.h
rts/RetainerProfile.c
rts/RetainerProfile.h
rts/RetainerSet.c
rts/RetainerSet.h
rts/RtsAPI.c
rts/RtsDllMain.c
rts/RtsDllMain.h
rts/RtsFlags.c
rts/RtsMain.c
rts/RtsMessages.c
rts/RtsProbes.d
rts/RtsStartup.c
rts/RtsSymbols.c
rts/RtsSymbols.h
rts/RtsUtils.c
rts/RtsUtils.h
rts/SMPClosureOps.h
rts/STM.c
rts/STM.h
rts/Schedule.c
rts/Stable.c
rts/Stable.h
rts/StaticPtrTable.c
rts/Stats.c
rts/Stats.h
rts/StgCRun.c
rts/StgStartup.cmm
rts/StgStdThunks.cmm
rts/Task.c
rts/ThreadPaused.c
rts/Threads.c
rts/Threads.h
rts/Timer.c
rts/TopHandler.c
rts/Trace.c
rts/Trace.h
rts/Updates.h
rts/Weak.c
rts/eventlog/EventLog.c
rts/eventlog/EventLog.h
rts/eventlog/EventLogWriter.c
rts/linker/LoadArchive.c
rts/linker/M32Alloc.h
rts/linker/MachO.c
rts/linker/MachO.h
rts/linker/PEi386.c
rts/linker/PEi386.h
rts/linker/SymbolExtras.c
rts/linker/SymbolExtras.h
rts/package.conf.in
rts/posix/Clock.h
rts/posix/GetTime.c
rts/posix/OSMem.c
rts/posix/OSThreads.c
rts/posix/Signals.c
rts/posix/Signals.h
rts/posix/TTY.c
rts/posix/itimer/Pthread.c
rts/posix/itimer/Setitimer.c
rts/posix/itimer/TimerCreate.c
rts/sm/BlockAlloc.c
rts/sm/BlockAlloc.h
rts/sm/CNF.c
rts/sm/CNF.h
rts/sm/Compact.c
rts/sm/Evac.c
rts/sm/Evac_thr.c
rts/sm/GC.c
rts/sm/GC.h
rts/sm/GCThread.h
rts/sm/GCUtils.c
rts/sm/GCUtils.h
rts/sm/HeapAlloc.h
rts/sm/MBlock.c
rts/sm/MarkWeak.c
rts/sm/OSMem.h
rts/sm/Sanity.c
rts/sm/Sanity.h
rts/sm/Scav.c
rts/sm/Scav.h
rts/sm/Scav_thr.c
rts/sm/ShouldCompact.h
rts/sm/Storage.c
rts/win32/AsyncIO.c
rts/win32/ConsoleHandler.c
rts/win32/GetTime.c
rts/win32/OSMem.c
rts/win32/OSThreads.c
rts/win32/ThrIOManager.c
rts/win32/veh_excn.c
utils/genapply/Main.hs
utils/ghc-pkg/Main.hs
utils/hp2ps/HpFile.c
utils/hp2ps/Main.c
utils/hp2ps/Main.h
utils/lndir/lndir-Xos.h
utils/lndir/lndir-Xosdefs.h
utils/lndir/lndir.c
utils/unlit/unlit.c