first release

This commit is contained in:
Rumpf 2008-06-23 01:37:49 +02:00
commit 916c25f9a7
321 changed files with 1785 additions and 1808 deletions

7
lib/os.nim Executable file → Normal file
View file

@ -294,6 +294,10 @@ proc existsDir*(dir: string): bool
proc getLastModificationTime*(file: string): TTime
## Gets the time of the `file`'s last modification.
proc fileNewer*(a, b: string): bool
## returns true if the file `a` is newer than file `b`, i.e. if `a`'s
## modification time is later than `b`'s.
# procs dealing with environment variables:
proc putEnv*(key, val: string)
## Sets the value of the environment variable named `key` to `val`.
@ -936,4 +940,7 @@ else:
proc paramCount(): int = return cmdCount-1
proc fileNewer(a, b: string): bool =
result = getLastModificationTime(a) - getLastModificationTime(b) > 0
{.pop.}