diff options
author | Araq <rumpf_a@web.de> | 2012-12-19 02:22:39 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-12-19 02:22:39 +0100 |
commit | 7148812524d26b89dab7efde2e86d318677b502b (patch) | |
tree | aefb4fe12e0aa08e27cfaeceec2c7594c0564f52 /compiler/cgen.nim | |
parent | 3be576222a2e2a774570eb408d43c35ab94c5f15 (diff) | |
download | Nim-7148812524d26b89dab7efde2e86d318677b502b.tar.gz |
first steps for FFI support at compile time
Diffstat (limited to 'compiler/cgen.nim')
-rwxr-xr-x | compiler/cgen.nim | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index d024f3479..001a6fbee 100755 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -469,17 +469,6 @@ include "ccgexprs.nim", "ccgstmts.nim" # ----------------------------- dynamic library handling ----------------- # We don't finalize dynamic libs as this does the OS for us. -proc libCandidates(s: string, dest: var TStringSeq) = - var le = strutils.find(s, '(') - var ri = strutils.find(s, ')', le+1) - if le >= 0 and ri > le: - var prefix = substr(s, 0, le - 1) - var suffix = substr(s, ri + 1) - for middle in split(substr(s, le + 1, ri - 1), '|'): - libCandidates(prefix & middle & suffix, dest) - else: - add(dest, s) - proc isGetProcAddr(lib: PLib): bool = let n = lib.path result = n.kind in nkCallKinds and n.typ != nil and |