mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 20:49:05 +03:00
more work
This commit is contained in:
parent
07fcc11d8a
commit
4632c589b6
@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
|
||||
(defn f []
|
||||
(defn fsdfdsf []
|
||||
(str* "hej" "san" "svej" "san" "!"))
|
||||
|
||||
|
||||
|
@ -342,14 +342,16 @@
|
||||
|
||||
x (error (str "Can't build generic primop for '" x "'"))))
|
||||
|
||||
(defn instantiate-str-for-string [c-func-name]
|
||||
(let [proto (str "API string " c-func-name "(string s)")
|
||||
c (str proto "{ return strdup(s); }\n")]
|
||||
{:proto proto
|
||||
:c c
|
||||
:deps ()}))
|
||||
|
||||
(defn instantiate-prn-for-string [c-func-name]
|
||||
|
||||
;; (defn instantiate-str-for-string [c-func-name]
|
||||
;; (let [proto (str "API string " c-func-name "(string s)")
|
||||
;; c (str proto "{ return strdup(s); }\n")]
|
||||
;; {:proto proto
|
||||
;; :c c
|
||||
;; :deps ()}))
|
||||
|
||||
(defn instantiate-str-for-string [c-func-name]
|
||||
(let [proto (str "API string " c-func-name "(string s)")
|
||||
c (str proto " {\n"
|
||||
;;" printf(\"calling str on string '%s'\\n\", s);\n"
|
||||
|
Loading…
Reference in New Issue
Block a user