mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
core: namespaced split-up carp headers
This commit is contained in:
parent
f56b1ff93f
commit
b7ea8d1487
@ -1,6 +1,6 @@
|
||||
(load "Statistics.carp")
|
||||
|
||||
(system-include "bench.h")
|
||||
(system-include "carp_bench.h")
|
||||
(register get-time-elapsed (Fn [] Double))
|
||||
|
||||
(defmodule Bench
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "bool.h")
|
||||
(system-include "carp_bool.h")
|
||||
|
||||
(defmodule Bool
|
||||
(register = (Fn [Bool Bool] Bool))
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "char.h")
|
||||
(system-include "carp_char.h")
|
||||
|
||||
(defmodule Char
|
||||
(register = (Fn [Char Char] Bool))
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "double.h")
|
||||
(system-include "carp_double.h")
|
||||
|
||||
(defmodule Double
|
||||
(def pi 3.141592653589793)
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "float.h")
|
||||
(system-include "carp_float.h")
|
||||
|
||||
(defmodule Float
|
||||
(def pi 3.1415926536f)
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "io.h")
|
||||
(system-include "carp_io.h")
|
||||
|
||||
(defmodule IO
|
||||
(register println (Fn [(Ref String)] ()))
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "int.h")
|
||||
(system-include "carp_int.h")
|
||||
|
||||
(defmodule Int
|
||||
(register + (λ [Int Int] Int))
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "long.h")
|
||||
(system-include "carp_long.h")
|
||||
|
||||
(defmodule Long
|
||||
(register + (λ [Long Long] Long))
|
||||
|
@ -1,4 +1,4 @@
|
||||
(system-include "system.h")
|
||||
(system-include "carp_system.h")
|
||||
|
||||
(defmodule System
|
||||
(register free (Fn [t] ()))
|
||||
|
Loading…
Reference in New Issue
Block a user