summary refs log tree commit diff stats
path: root/compiler/scriptconfig.nim
Commit message (Expand)AuthorAgeFilesLines
* incremental compilation: simple recompilation worksAraq2018-11-191-0/+3
* Nimscript: fixes #9246 [backport]Andreas Rumpf2018-11-061-0/+1
* Add procs to retrieve project name, directory and full path to nimscript (#9274)Solitude2018-10-111-0/+6
* fix #9264 regression (#9265)Timothee Cour2018-10-091-5/+2
* compiler refactoring; use typesafe path handing; docgen: render symbols betwe...Andreas Rumpf2018-09-071-7/+7
* make config.nims behave like nim.cfg in terms of where these scripts are sear...Timothee Cour2018-08-301-1/+1
* scriptconfig: register passes once (#8590)alaviss2018-08-171-2/+5
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-1/+1
* incremental compilation: implemented basic replay logicAndreas Rumpf2018-06-021-2/+3
* more compiler API cleanupsAndreas Rumpf2018-05-281-4/+3
* vm now free of global variablesAndreas Rumpf2018-05-281-2/+1
* refactoring: remove idents.legacy global variable and pass the IdentCache aro...Andreas Rumpf2018-05-271-1/+1
* remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-1/+1
* compiler compiles again; simple programs do workAndreas Rumpf2018-05-131-32/+32
* big refactoring: parser compiles againAndreas Rumpf2018-05-101-2/+2
* compiler refactoring, pass config around explicitlyAndreas Rumpf2018-05-051-1/+1
* .experimental can now be used to enable specific featuresAndreas Rumpf2018-04-241-3/+3
* Sub second time resolution (#6978)Oscar Nihlgård2018-04-131-2/+1
* Add a few useful os calls to nimscript (#7442)genotrance2018-04-101-0/+6
* Fixes 7283 (#7284)cooldome2018-03-051-0/+2
* cleanup times.nimAraq2017-12-211-1/+2
* Show nimscript configuration files during compilation (#6750)Lynn C. Rees2017-11-281-0/+1
* getEnv now supports a 'default' parameter; refs #6019Andreas Rumpf2017-10-301-1/+1
* removed compiler internal list implementation (#5371)Arne Döring2017-02-221-2/+2
* Don't prepend project path to absolute filenames passed to setCommand (#5341)nigredo-tori2017-02-061-2/+5
* refactoring: explict config state instead of globalsAndreas Rumpf2017-02-011-4/+8
* some progress on #5228Araq2017-01-201-3/+3
* make tests green againAraq2016-11-061-1/+1
* new dependency tracking for nimsuggestAraq2016-11-051-6/+8
* refactoring complete: explicit ident cacheAraq2016-10-311-7/+7
* fixes #4764, fixes #4731, fixes #4724Araq2016-09-141-0/+1
* nimsuggest improvementsAndreas Rumpf2016-08-291-1/+1
* added selfExe and selfExec for NimScript supportAndreas Rumpf2016-08-051-0/+2
* patchFile: support properlyAndreas Rumpf2016-07-141-3/+5
* nimscript.patchFile supports $lib and stuffAraq2016-07-141-1/+1
* make tests green againAndreas Rumpf2016-07-101-1/+0
* make hint/warning work properly after Nimscript executionAndreas Rumpf2016-07-091-0/+1
* Nimscript: added support for 'patchFile'Andreas Rumpf2016-07-091-1/+7
* Nimscript supports hint() and warning() procs; refs #3688Andreas Rumpf2016-07-081-2/+7
* Nimscript knows about the command line definesAndreas Rumpf2016-05-241-2/+2
* NimScript: --define works as expectedAraq2015-09-301-1/+4
* NimScript: setCommand takes an optional project filenameAraq2015-09-291-0/+7
* Nimscript: documented; 'exec' now produces output immediatelyAraq2015-09-071-1/+4
* split os into os and ospaths parts; ospaths is available for NimScript; bette...Araq2015-09-041-0/+13
* preparations for Nimble NimScript integrations; minor cleanupsAraq2015-08-181-1/+2
* implements experimental new config system based on NimScriptAraq2015-08-161-0/+119
sx">## case the default environment will be used type Tfenv* {.importc: "fenv_t", header: "<fenv.h>", final, pure.} = object ## Represents the entire floating-point environment. The ## floating-point environment refers collectively to any ## floating-point status flags and control modes supported ## by the implementation. Tfexcept* {.importc: "fexcept_t", header: "<fenv.h>", final, pure.} = object ## Represents the floating-point status flags collectively, ## including any status the implementation associates with the ## flags. A floating-point status flag is a system variable ## whose value is set (but never cleared) when a floating-point ## exception is raised, which occurs as a side effect of ## exceptional floating-point arithmetic to provide auxiliary ## information. A floating-point control mode is a system variable ## whose value may be set by the user to affect the subsequent ## behavior of floating-point arithmetic. proc feclearexcept*(excepts: cint): cint {.importc, header: "<fenv.h>".} ## Clear the supported exceptions represented by `excepts`. proc fegetexceptflag*(flagp: ptr Tfexcept, excepts: cint): cint {. importc, header: "<fenv.h>".} ## Store implementation-defined representation of the exception flags ## indicated by `excepts` in the object pointed to by `flagp`. proc feraiseexcept*(excepts: cint): cint {.importc, header: "<fenv.h>".} ## Raise the supported exceptions represented by `excepts`. proc fesetexceptflag*(flagp: ptr Tfexcept, excepts: cint): cint {. importc, header: "<fenv.h>".} ## Set complete status for exceptions indicated by `excepts` according to ## the representation in the object pointed to by `flagp`. proc fetestexcept*(excepts: cint): cint {.importc, header: "<fenv.h>".} ## Determine which of subset of the exceptions specified by `excepts` are ## currently set. proc fegetround*(): cint {.importc, header: "<fenv.h>".} ## Get current rounding direction. proc fesetround*(roundingDirection: cint): cint {.importc, header: "<fenv.h>".} ## Establish the rounding direction represented by `roundingDirection`. proc fegetenv*(envp: ptr Tfenv): cint {.importc, header: "<fenv.h>".} ## Store the current floating-point environment in the object pointed ## to by `envp`. proc feholdexcept*(envp: ptr Tfenv): cint {.importc, header: "<fenv.h>".} ## Save the current environment in the object pointed to by `envp`, clear ## exception flags and install a non-stop mode (if available) for all ## exceptions. proc fesetenv*(a1: ptr Tfenv): cint {.importc, header: "<fenv.h>".} ## Establish the floating-point environment represented by the object ## pointed to by `envp`. proc feupdateenv*(envp: ptr Tfenv): cint {.importc, header: "<fenv.h>".} ## Save current exceptions in temporary storage, install environment ## represented by object pointed to by `envp` and raise exceptions ## according to saved exceptions. var FP_RADIX_INTERNAL {. importc: "FLT_RADIX" header: "<float.h>" .} : int template fpRadix* : int = FP_RADIX_INTERNAL ## The (integer) value of the radix used to represent any floating ## point type on the architecture used to build the program. var FLT_MANT_DIG {. importc: "FLT_MANT_DIG" header: "<float.h>" .} : int var FLT_DIG {. importc: "FLT_DIG" header: "<float.h>" .} : int var FLT_MIN_EXP {. importc: "FLT_MIN_EXP" header: "<float.h>" .} : int var FLT_MAX_EXP {. importc: "FLT_MAX_EXP" header: "<float.h>" .} : int var FLT_MIN_10_EXP {. importc: "FLT_MIN_10_EXP" header: "<float.h>" .} : int var FLT_MAX_10_EXP {. importc: "FLT_MAX_10_EXP" header: "<float.h>" .} : int var FLT_MIN {. importc: "FLT_MIN" header: "<float.h>" .} : cfloat var FLT_MAX {. importc: "FLT_MAX" header: "<float.h>" .} : cfloat var FLT_EPSILON {. importc: "FLT_EPSILON" header: "<float.h>" .} : cfloat var DBL_MANT_DIG {. importc: "DBL_MANT_DIG" header: "<float.h>" .} : int var DBL_DIG {. importc: "DBL_DIG" header: "<float.h>" .} : int var DBL_MIN_EXP {. importc: "DBL_MIN_EXP" header: "<float.h>" .} : int var DBL_MAX_EXP {. importc: "DBL_MAX_EXP" header: "<float.h>" .} : int var DBL_MIN_10_EXP {. importc: "DBL_MIN_10_EXP" header: "<float.h>" .} : int var DBL_MAX_10_EXP {. importc: "DBL_MAX_10_EXP" header: "<float.h>" .} : int var DBL_MIN {. importc: "DBL_MIN" header: "<float.h>" .} : cdouble var DBL_MAX {. importc: "DBL_MAX" header: "<float.h>" .} : cdouble var DBL_EPSILON {. importc: "DBL_EPSILON" header: "<float.h>" .} : cdouble template mantissaDigits*(T : typedesc[float32]) : int = FLT_MANT_DIG ## Number of digits (in base ``floatingPointRadix``) in the mantissa ## of 32-bit floating-point numbers. template digits*(T : typedesc[float32]) : int = FLT_DIG ## Number of decimal digits that can be represented in a ## 32-bit floating-point type without losing precision. template minExponent*(T : typedesc[float32]) : int = FLT_MIN_EXP ## Minimum (negative) exponent for 32-bit floating-point numbers. template maxExponent*(T : typedesc[float32]) : int = FLT_MAX_EXP ## Maximum (positive) exponent for 32-bit floating-point numbers. template min10Exponent*(T : typedesc[float32]) : int = FLT_MIN_10_EXP ## Minimum (negative) exponent in base 10 for 32-bit floating-point ## numbers. template max10Exponent*(T : typedesc[float32]) : int = FLT_MAX_10_EXP ## Maximum (positive) exponent in base 10 for 32-bit floating-point ## numbers. template minimumPositiveValue*(T : typedesc[float32]) : float32 = FLT_MIN ## The smallest positive (nonzero) number that can be represented in a ## 32-bit floating-point type. template maximumPositiveValue*(T : typedesc[float32]) : float32 = FLT_MAX ## The largest positive number that can be represented in a 32-bit ## floating-point type. template epsilon*(T : typedesc[float32]): float32 = FLT_EPSILON ## The difference between 1.0 and the smallest number greater than ## 1.0 that can be represented in a 32-bit floating-point type. template mantissaDigits*(T : typedesc[float64]) : int = DBL_MANT_DIG ## Number of digits (in base ``floatingPointRadix``) in the mantissa ## of 64-bit floating-point numbers. template digits*(T : typedesc[float64]) : int = DBL_DIG ## Number of decimal digits that can be represented in a ## 64-bit floating-point type without losing precision. template minExponent*(T : typedesc[float64]) : int = DBL_MIN_EXP ## Minimum (negative) exponent for 64-bit floating-point numbers. template maxExponent*(T : typedesc[float64]) : int = DBL_MAX_EXP ## Maximum (positive) exponent for 64-bit floating-point numbers. template min10Exponent*(T : typedesc[float64]) : int = DBL_MIN_10_EXP ## Minimum (negative) exponent in base 10 for 64-bit floating-point ## numbers. template max10Exponent*(T : typedesc[float64]) : int = DBL_MAX_10_EXP ## Maximum (positive) exponent in base 10 for 64-bit floating-point ## numbers. template minimumPositiveValue*(T : typedesc[float64]) : float64 = DBL_MIN ## The smallest positive (nonzero) number that can be represented in a ## 64-bit floating-point type. template maximumPositiveValue*(T : typedesc[float64]) : float64 = DBL_MAX ## The largest positive number that can be represented in a 64-bit ## floating-point type. template epsilon*(T : typedesc[float64]): float64 = DBL_EPSILON ## The difference between 1.0 and the smallest number greater than ## 1.0 that can be represented in a 64-bit floating-point type.