summaryrefslogtreecommitdiff
path: root/src/guile/skribilo/prog.scm
diff options
context:
space:
mode:
authorLudovic Court`es2007-06-06 13:06:45 +0000
committerLudovic Court`es2007-06-06 13:06:45 +0000
commite6bda4dce5fa0fdc935484e2a2540953f43b5a2d (patch)
tree68348a085aeac037e52c8e28ff9c3648d5f2cbcf /src/guile/skribilo/prog.scm
parent2fa73d579b53028324526cc1d73ad09332ac76a9 (diff)
downloadskribilo-e6bda4dce5fa0fdc935484e2a2540953f43b5a2d.tar.gz
skribilo-e6bda4dce5fa0fdc935484e2a2540953f43b5a2d.tar.lz
skribilo-e6bda4dce5fa0fdc935484e2a2540953f43b5a2d.zip
Cleaned up the core modules.
git-archimport-id: lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-65
Diffstat (limited to 'src/guile/skribilo/prog.scm')
-rw-r--r--src/guile/skribilo/prog.scm16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/guile/skribilo/prog.scm b/src/guile/skribilo/prog.scm
index 2f531cd..0113db6 100644
--- a/src/guile/skribilo/prog.scm
+++ b/src/guile/skribilo/prog.scm
@@ -23,8 +23,9 @@
:use-module (ice-9 regex)
:autoload (ice-9 receive) (receive)
:use-module (skribilo lib) ;; `new'
- :autoload (skribilo ast) (node? node-body)
+ :use-module (skribilo ast)
:use-module (skribilo utils syntax)
+ :autoload (skribilo package base) (mark)
:export (make-prog-body resolve-line))
@@ -43,8 +44,7 @@
(define pregexp-quote regexp-quote)
-(define (node-body-set! b v)
- (slot-set! b 'body v))
+(define node-body-set! markup-body-set!)
;;;
;;; FIXME: Tout le module peut se factoriser
@@ -186,13 +186,6 @@
;* make-prog-body ... */
;*---------------------------------------------------------------------*/
(define (make-prog-body src lnum-init ldigit mark)
- (define (int->str i rl)
- (let* ((s (number->string i))
- (l (string-length s)))
- (if (= l rl)
- s
- (string-append (make-string (- rl l) #\space) s))))
-
(let* ((regexp (and mark
(format #f "~a[-a-zA-Z_][-0-9a-zA-Z_]+"
(pregexp-quote mark))))
@@ -205,8 +198,7 @@
(s (number->string (+ (if (integer? ldigit)
(max lnum (expt 10 (- ldigit 1)))
lnum)
- (length lines))))
- (cs (string-length s)))
+ (length lines)))))
(let loop ((lines lines)
(lnum lnum)
(res '()))