all repos — min @ 1b5b31f4f2ced89983f88e60eeea212026b66133

A small but practical concatenative programming language.

core/env.nim

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
when not defined(mini):
  import os
  var HOME*: string
  if defined(windows):
    HOME = getenv("USERPROFILE")
  if not defined(windows):
    HOME = getenv("HOME")

  var MINRC* {.threadvar.}: string
  MINRC = HOME / ".minrc" 
  var MINSYMBOLS* {.threadvar.}: string 
  MINSYMBOLS = HOME / ".min_symbols"
  var MINHISTORY* {.threadvar.}: string
  MINHISTORY = HOME / ".min_history"
  var MINLIBS* {.threadvar.} : string
  MINLIBS  = HOME / ".minlibs"

var MINCOMPILED* {.threadvar.}: bool
MINCOMPILED = false