[clhp-cvs] CVS update: clhp/clhp.lisp clhp/cgi.lisp clhp/TODO clhp/NEWS clhp/Makefile clhp/ChangeLog
Anthony Ventimiglia
aventimiglia at common-lisp.net
Wed Oct 15 14:44:05 UTC 2003
Update of /project/clhp/cvsroot/clhp
In directory common-lisp.net:/tmp/cvs-serv31434
Modified Files:
clhp.lisp cgi.lisp TODO NEWS Makefile ChangeLog
Log Message:
0.1.1 release
Date: Wed Oct 15 10:44:04 2003
Author: aventimiglia
Index: clhp/clhp.lisp
diff -u clhp/clhp.lisp:1.12 clhp/clhp.lisp:1.13
--- clhp/clhp.lisp:1.12 Wed Oct 15 08:50:52 2003
+++ clhp/clhp.lisp Wed Oct 15 10:44:04 2003
@@ -1,5 +1,5 @@
(ext:file-comment
- "$Id: clhp.lisp,v 1.12 2003/10/15 12:50:52 aventimiglia Exp $")
+ "$Id: clhp.lisp,v 1.13 2003/10/15 14:44:04 aventimiglia Exp $")
;;
;; CLHP the Common Lisp Hypertext Preprocessor
;; (C) 2003 Anthony J Ventimiglia
@@ -25,7 +25,8 @@
(unless (find-package :cgi)
(load "cgi")))
-(defpackage :clhp
+(defpackage #:net.common-lisp.aventimiglia.clhp
+ (:nicknames :clhp)
(:use :cgi :cl)
(:import-from :cgi #:cond-bind #:list-to-a-list)
(:export #:parse #:*clhp-version* #:echo #:include #:xml-element
@@ -38,8 +39,8 @@
;; by changing the NIL in the first part of the OR, a release number
;; will override the CVS keyword
(defconstant *CLHP-VERSION*
- #.(or nil ; Set this for releases
- (let* ((trimmed (string-trim "$ Date:" "$Date: 2003/10/15 12:50:52 $"))
+ #.(or "0.1.1alpha" ; Set this for releases
+ (let* ((trimmed (string-trim "$ Date:" "$Date: 2003/10/15 14:44:04 $"))
(date (subseq trimmed 0 (search " " trimmed))))
(concatenate 'string
(subseq date 0 4)
Index: clhp/cgi.lisp
diff -u clhp/cgi.lisp:1.9 clhp/cgi.lisp:1.10
--- clhp/cgi.lisp:1.9 Wed Oct 15 08:50:52 2003
+++ clhp/cgi.lisp Wed Oct 15 10:44:04 2003
@@ -1,4 +1,4 @@
-#+cmu (ext:file-comment "$Id: cgi.lisp,v 1.9 2003/10/15 12:50:52 aventimiglia Exp $")
+#+cmu (ext:file-comment "$Id: cgi.lisp,v 1.10 2003/10/15 14:44:04 aventimiglia Exp $")
;;
;; CLHP the Common Lisp Hypertext Preprocessor
;; (C) 2003 Anthony J Ventimiglia
@@ -20,7 +20,8 @@
;; email: aventimiglia at common-lisp.net
;; HomePage: http://common-lisp.net/project/clhp/
-(defpackage :cgi
+(defpackage #:net.common-lisp.aventimiglia.cgi
+ (:nicknames #:cgi)
(:use :cl)
(:export #:*server-env* #:*query-vars* #:header #:debug #:init))
Index: clhp/TODO
diff -u clhp/TODO:1.6 clhp/TODO:1.7
--- clhp/TODO:1.6 Wed Oct 1 15:11:33 2003
+++ clhp/TODO Wed Oct 15 10:44:04 2003
@@ -1,13 +1,14 @@
-$Id: TODO,v 1.6 2003/10/01 19:11:33 aventimiglia Exp $ -*- outline -*-
+$Id: TODO,v 1.7 2003/10/15 14:44:04 aventimiglia Exp $ -*- outline -*-
+
+* Convert *QUERY-VARS* and *SERVER-ENV* to hashes
+ I should probably make interface functions to access them, actually
+ I should make them read-only maybe encapsulate a hash in a class and
+ only allow reading from external functions
* Test suite
- Write a test suite, in lisp that will run test on clhp components,
- this will be used during development, to make sure everything is
- working properly.
-
- This is in thw works is tests/, I think I'll refine it a bit and
- make it it's own package. There is still more work to be done, and
- that's a whole different can of beans
+** Complete suite for :cgi
+** Write suite for :clhp
+** Refine :test-suite
* COMPILE-CGI
This is just a convenience function that will compile and save fasl
@@ -34,6 +35,7 @@
should not stop the entire page from parsing, it should just fail
for that form, report the error (and the offendding form) and
continue at the next reasonable point.
+
* Differences from PHP
Some differences I should keep, like you can't end blocks in the
Index: clhp/NEWS
diff -u clhp/NEWS:1.2 clhp/NEWS:1.3
--- clhp/NEWS:1.2 Fri Sep 19 01:57:19 2003
+++ clhp/NEWS Wed Oct 15 10:44:04 2003
@@ -1,5 +1,35 @@
+$Id: NEWS,v 1.3 2003/10/15 14:44:04 aventimiglia Exp $ -*- outline -*-
-Wed Sep 17 15:17:02 EDT 2003 -- CLHP package migrated from my local
-server to common-lisp.net
+* Wed Sep 17 15:17:02 EDT 2003 -- CLHP package migrated from my local
+ server to common-lisp.net
-Fri Sep 19 01:56:45 EDT 2003 -- 0.1.0alpha released
+* Fri Sep 19 01:56:45 EDT 2003 -- 0.1.0alpha released
+
+* Wed Oct 15 10:08:33 EDT 2003 -- 0.1.1alpha release
+ See ChangeLog for details, but here's a rundown of the new stuff:
+** Converted CGI:*SERVER-ENV* and CGI:*QUERY-VARS*
+ In the previous version these had been cons type a-lists ((like
+ . this)) I've converted them to List type a-lists ((like this)),
+ don't get used to it though, since eventually I'll probably end up
+ making them into Hashtables.
+** XML-ELEMENT structure
+ This structure along with it's PPRINT function and the TAG macro,
+ creating ax XML element is as east as: (TAG 'REMARK "this")
+** Somewhat better error reporting.
+ When the parser encounters Lisp errors, it tries its best to print
+ a good message and take up at the next reasonable place it can.
+** Internals stuff
+ This isn't of much interest unless you want to hack the code.
+** Pakcage names
+ The package names were changed to more descriptive
+ :net.common-lisp.aventimiglia.{cgi,clhp}, but I've still retained
+ :CLHP and :CGI as nicknames so there is not any change to the
+ interface
+*** Code cleanup -- working to make all this more readable.
+*** Test-suite --
+ The new tests/ directory contains a test-suite package and a
+ test for the :CGI library. I really just decided to write my own
+ test suite since I didn't really want to deal with learning
+ someone elses. In the future I'm going to write tests for :CLHP
+
+
Index: clhp/Makefile
diff -u clhp/Makefile:1.11 clhp/Makefile:1.12
--- clhp/Makefile:1.11 Wed Oct 15 10:05:57 2003
+++ clhp/Makefile Wed Oct 15 10:44:04 2003
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.11 2003/10/15 14:05:57 aventimiglia Exp $
+# $Id: Makefile,v 1.12 2003/10/15 14:44:04 aventimiglia Exp $
#
# CLHP the Common Lisp Hypertext Preprocessor
# (C) 2003 Anthony J Ventimiglia
@@ -69,7 +69,8 @@
RECURSIVE_SUBDIRS = examples tests
EXTRADIST=config/binfmt-test.lisp config/build-core.lisp config/lispc.lisp \
config/runclcgi.src examples/Makefile examples/clhp-test.lisp \
- examples/index.clhp examples/test.lisp Makefile
+ examples/index.clhp examples/test.lisp Makefile tests/Makefile \
+ tests/cgi-test.lisp tests/test-suite.lisp
DISTFILES=$(SOURCES) $(DOCS) $(EXTRADIST)
Index: clhp/ChangeLog
diff -u clhp/ChangeLog:1.11 clhp/ChangeLog:1.12
--- clhp/ChangeLog:1.11 Tue Oct 14 18:47:30 2003
+++ clhp/ChangeLog Wed Oct 15 10:44:04 2003
@@ -1,3 +1,13 @@
+2003-10-15 <ant at afghan.dogpound>
+
+ * cgi.lisp, clhp.lisp: Changed real package names to a more exact
+ one ala java style. They still have :CGI and :CLHP for nicknames.
+
+ * tests/test-suite.lisp (run-tests): Moved test-suite out of
+ cgi-test into its own file, now I can write tests for clhp as
+ well. Modified Makefiles to deal with the new directory. Now
+ running make check from the toplevel runs the tests.
+
2003-10-14 <ant at afghan.dogpound>
* cgi.lisp (debug): Changed format string to ~S so objects will be
@@ -67,4 +77,4 @@
used to create tables from (CONS . TYPE) a-lists. Also added some
comments.
-$Id: ChangeLog,v 1.11 2003/10/14 22:47:30 aventimiglia Exp $
\ No newline at end of file
+$Id: ChangeLog,v 1.12 2003/10/15 14:44:04 aventimiglia Exp $
\ No newline at end of file
More information about the Clhp-cvs
mailing list