Deprecate DCE:on (#13839)
This commit is contained in:
parent
afd0afe0a3
commit
46ca19ff18
24 changed files with 0 additions and 43 deletions
|
|
@ -113,8 +113,6 @@
|
||||||
## * `db_mysql module <db_mysql.html>`_ for MySQL database wrapper
|
## * `db_mysql module <db_mysql.html>`_ for MySQL database wrapper
|
||||||
## * `db_postgres module <db_postgres.html>`_ for PostgreSQL database wrapper
|
## * `db_postgres module <db_postgres.html>`_ for PostgreSQL database wrapper
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
||||||
import db_common
|
import db_common
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@
|
||||||
## var userResponse: string
|
## var userResponse: string
|
||||||
## doAssert readLineFromStdin("How are you?:", line = userResponse)
|
## doAssert readLineFromStdin("How are you?:", line = userResponse)
|
||||||
## echo userResponse
|
## echo userResponse
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(Windows):
|
when defined(Windows):
|
||||||
proc readLineFromStdin*(prompt: string): TaintedString {.
|
proc readLineFromStdin*(prompt: string): TaintedString {.
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
from posix import SocketHandle
|
from posix import SocketHandle
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
import posix
|
import posix
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
# Dead code elimination ensures that we don't accidentally generate #includes
|
# Dead code elimination ensures that we don't accidentally generate #includes
|
||||||
# for files that might not exist on a specific platform! The user will get an
|
# for files that might not exist on a specific platform! The user will get an
|
||||||
# error only if they actually try to use the missing declaration
|
# error only if they actually try to use the missing declaration
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,6 @@
|
||||||
|
|
||||||
# Where possible, contribute OS-independent procs in `os <os.html>`_ instead.
|
# Where possible, contribute OS-independent procs in `os <os.html>`_ instead.
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
import posix
|
import posix
|
||||||
|
|
||||||
type Uname* = object
|
type Uname* = object
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
import posix
|
import posix
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@
|
||||||
## Floating-point environment. Handling of floating-point rounding and
|
## Floating-point environment. Handling of floating-point rounding and
|
||||||
## exceptions (overflow, division by zero, etc.).
|
## exceptions (overflow, division by zero, etc.).
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(Posix) and not defined(genode):
|
when defined(Posix) and not defined(genode):
|
||||||
{.passl: "-lm".}
|
{.passl: "-lm".}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,6 @@
|
||||||
|
|
||||||
include "system/inclrtl"
|
include "system/inclrtl"
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
import nativesockets, os, strutils, times, sets, options, std/monotimes
|
import nativesockets, os, strutils, times, sets, options, std/monotimes
|
||||||
from ssl_certs import scanSSLCertificates
|
from ssl_certs import scanSSLCertificates
|
||||||
export nativesockets.Port, nativesockets.`$`, nativesockets.`==`
|
export nativesockets.Port, nativesockets.`$`, nativesockets.`==`
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,6 @@
|
||||||
## * `parsexml module<parsexml.html>`_ for a XML / HTML parser
|
## * `parsexml module<parsexml.html>`_ for a XML / HTML parser
|
||||||
## * `other parsers<lib.html#pure-libraries-parsers>`_ for other parsers
|
## * `other parsers<lib.html#pure-libraries-parsers>`_ for other parsers
|
||||||
|
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
{.push debugger: off.} # the user does not want to trace a part
|
{.push debugger: off.} # the user does not want to trace a part
|
||||||
# of the standard library!
|
# of the standard library!
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@
|
||||||
include "system/inclrtl"
|
include "system/inclrtl"
|
||||||
import streams
|
import streams
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
{.push debugger: off.} # the user does not want to trace a part
|
{.push debugger: off.} # the user does not want to trace a part
|
||||||
# of the standard library!
|
# of the standard library!
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@
|
||||||
|
|
||||||
import strutils
|
import strutils
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
proc expandTabs*(s: string, tabSize: int = 8): string {.noSideEffect,
|
proc expandTabs*(s: string, tabSize: int = 8): string {.noSideEffect,
|
||||||
procvar.} =
|
procvar.} =
|
||||||
## Expand tab characters in `s` replacing them by spaces.
|
## Expand tab characters in `s` replacing them by spaces.
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,6 @@
|
||||||
## * `unidecode module <unidecode.html>`_
|
## * `unidecode module <unidecode.html>`_
|
||||||
## * `encodings module <encodings.html>`_
|
## * `encodings module <encodings.html>`_
|
||||||
|
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
include "system/inclrtl"
|
include "system/inclrtl"
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@
|
||||||
## This module implements a small wrapper for some needed Win API procedures,
|
## This module implements a small wrapper for some needed Win API procedures,
|
||||||
## so that the Nim compiler does not depend on the huge Windows module.
|
## so that the Nim compiler does not depend on the huge Windows module.
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
import dynlib
|
import dynlib
|
||||||
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,6 @@
|
||||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
# ****************************************************************************
|
# ****************************************************************************
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
const dllname = "iup(|30|27|26|25|24).dll"
|
const dllname = "iup(|30|27|26|25|24).dll"
|
||||||
elif defined(macosx):
|
elif defined(macosx):
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
{.push, callconv: cdecl.}
|
{.push, callconv: cdecl.}
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when not defined(ODBCVER):
|
when not defined(ODBCVER):
|
||||||
const
|
const
|
||||||
ODBCVER = 0x0351 ## define ODBC version 3.51 by default
|
ODBCVER = 0x0351 ## define ODBC version 3.51 by default
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@
|
||||||
## ./bin/nim c -d:ssl -p:. -r tests/untestable/tssl.nim
|
## ./bin/nim c -d:ssl -p:. -r tests/untestable/tssl.nim
|
||||||
## ./bin/nim c -d:ssl -p:. --dynlibOverride:ssl --passl:-lcrypto --passl:-lssl -r tests/untestable/tssl.nim
|
## ./bin/nim c -d:ssl -p:. --dynlibOverride:ssl --passl:-lcrypto --passl:-lssl -r tests/untestable/tssl.nim
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
# The current PCRE version information.
|
# The current PCRE version information.
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@
|
||||||
# connection-protocol.
|
# connection-protocol.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
|
||||||
|
|
||||||
when defined(nimHasStyleChecks):
|
when defined(nimHasStyleChecks):
|
||||||
{.push styleChecks: off.}
|
{.push styleChecks: off.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue