klisp

an open source interpreter for the Kernel Programming Language.
git clone http://git.hanabi.in/repos/klisp.git
Log | Files | Refs | README

commit 36dacb1442b45aaf601f38b7356c2902f9127e8d
parent b839c15496e1164713b893dc479e0ef9a0664350
Author: Andres Navarro <canavarro82@gmail.com>
Date:   Sat, 12 Mar 2011 23:02:44 -0300

Extracted out the boolean features from kground.c to a new file kgbooleans.c (and .h).

Diffstat:
Msrc/Makefile | 6++++--
Asrc/kgbooleans.c | 21+++++++++++++++++++++
Asrc/kgbooleans.h | 24++++++++++++++++++++++++
Msrc/kground.c | 1+
4 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile @@ -68,4 +68,6 @@ krepl.o: krepl.c krepl.h kcontinuation.h kstate.h kobject.h keval.h klisp.h \ kground.o: kground.c kground.h kstate.h kobject.h klisp.h kenvironment.h \ kpair.h kapplicative.h koperative.h ksymbol.h kerror.h kghelpers.h kghelpers.o: kghelpers.c kghelpers.h kstate.h kstate.h klisp.h kpair.h \ - kapplicative.h koperative.h kerror.h kobject.h ksymbol.h -\ No newline at end of file + kapplicative.h koperative.h kerror.h kobject.h ksymbol.h +kgbooleans.o: kgbooleans.c kgbooleans.c kghelpers.h kstate.h klisp.h \ + kobject.h kerror.h kpair.h +\ No newline at end of file diff --git a/src/kgbooleans.c b/src/kgbooleans.c @@ -0,0 +1,21 @@ +/* +** kgbooleans.h +** Boolean features for the ground environment +** See Copyright Notice in klisp.h +*/ + +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> +#include <stdbool.h> +#include <stdint.h> + +#include "kobject.h" +#include "klisp.h" +#include "kstate.h" +#include "kpair.h" +#include "kerror.h" +#include "kghelpers.h" + +/* 4.1.1 boolean? */ +/* uses typep */ diff --git a/src/kgbooleans.h b/src/kgbooleans.h @@ -0,0 +1,24 @@ +/* +** kgbooleans.h +** Boolean features for the ground environment +** See Copyright Notice in klisp.h +*/ + +#ifndef kgbooleans_h +#define kgbooleans_h + +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> +#include <stdbool.h> +#include <stdint.h> + +#include "kobject.h" +#include "klisp.h" +#include "kstate.h" +#include "kghelpers.h" + +/* 4.1.1 boolean? */ +/* uses typep */ + +#endif diff --git a/src/kground.c b/src/kground.c @@ -23,6 +23,7 @@ #include "kerror.h" #include "kghelpers.h" +#include "kgbooleans.h" /* ** This section will roughly follow the report and will reference the