diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-11-03 14:46:28 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-11-03 14:46:28 +0100 |
commit | 0f65e75ec0f56d3067a15e3671d9250fd2c1637a (patch) | |
tree | 40ddc24f08b42c767e02b6482133e9f7efe4b524 /module/server/macro.scm | |
parent | Remove 'none' output. (diff) | |
parent | Add descirption to strbuf. (diff) | |
download | calp-0f65e75ec0f56d3067a15e3671d9250fd2c1637a.tar.gz calp-0f65e75ec0f56d3067a15e3671d9250fd2c1637a.tar.xz |
Merge branch 'restruct'
Diffstat (limited to 'module/server/macro.scm')
-rw-r--r-- | module/server/macro.scm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/module/server/macro.scm b/module/server/macro.scm index 71452d0f..123fc468 100644 --- a/module/server/macro.scm +++ b/module/server/macro.scm @@ -7,14 +7,6 @@ (use-modules* (web (response uri))) -(define (not-null? obj) - (if (null? obj) #f obj)) - -(define (match-count pattern str) - (fold-matches pattern str 0 - (lambda (_ count) - (1+ count)))) - (define-public (parse-endpoint-string str) @@ -53,6 +45,8 @@ (define-macro (make-routes . routes) `(lambda* (request body #:optional state) + ;; ALl these bindings generate compile time warnings since the expansion + ;; of the macro might not use them. This isn't really a problem. (let ((r:method (request-method request)) (r:uri (request-uri request)) (r:version (request-version request)) |