summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-02-06 00:19:39 +0000
committerOmar Rizwan <omar@omar.website>2023-02-06 00:19:39 +0000
commit35e1269eceaee8a1e8cd1fdf74e9515b4e8fea51 (patch)
tree62f1e1a77b3538ae17287533fedebcb769c8ae15 /lib
parentc-statements: Harden the interface with the Tcl evaluator (diff)
downloadfolk-35e1269eceaee8a1e8cd1fdf74e9515b4e8fea51.tar.gz
folk-35e1269eceaee8a1e8cd1fdf74e9515b4e8fea51.zip
Some README tweaks
Diffstat (limited to 'lib')
-rw-r--r--lib/c.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/c.tcl b/lib/c.tcl
index 9e155502..27b7a2cb 100644
--- a/lib/c.tcl
+++ b/lib/c.tcl
@@ -157,7 +157,7 @@ namespace eval c {
set frame [info frame -2]
if {[dict exists $frame line] && [dict exists $frame file] &&
[dict get $frame line] >= 0} {
- subst {#line [dict get $frame line] "[dict get $frame file]"}
+ #subst {#line [dict get $frame line] "[dict get $frame file]"}
} else { list }
}
::proc code {newcode} {
@@ -363,7 +363,7 @@ namespace eval c {
# puts "=====================\n$sourcecode\n====================="
set cfd [file tempfile cfile cfile.c]; puts $cfd $sourcecode; close $cfd
- exec cc -Wall -g -shared -fPIC {*}$cflags $cfile -o [file rootname $cfile][info sharedlibextension]
+ exec cc -Wall -g -shared -fsanitize=address -fPIC {*}$cflags $cfile -o [file rootname $cfile][info sharedlibextension]
load [file rootname $cfile][info sharedlibextension] cfile
}
::proc import {scc sname as dest} {