Overview
Comment: | junk |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.65 |
Files: | files | file ages | folders |
SHA1: |
3a76f000c0bfa520b3b8d28b68d118ca |
User & Date: | mrwellan on 2019-04-04 10:30:04 |
Other Links: | branch diff | manifest | tags |
Context
2019-04-04
| ||
10:30 | junk check-in: ac8a516285 user: mrwellan tags: v1.65 | |
10:30 | junk check-in: 3a76f000c0 user: mrwellan tags: v1.65 | |
01:51 | junk check-in: b7dfc5691b user: matt tags: v1.65 | |
Changes
Modified db.scm from [a146d876b8] to [09f2a4da9d].
︙ | ︙ | |||
264 265 266 267 268 269 270 | (exn (corrupt) (debug:print 0 *default-log-port* "ERROR: database " fname " is corrupt. Repair it to proceed.")) (exn (busy) (debug:print 0 *default-log-port* "ERROR: database " fname " is locked. Try copying to another location, remove original and copy back.")) (exn (permission)(debug:print 0 *default-log-port* "ERROR: database " fname " has some permissions problem.")) (exn () (debug:print 0 *default-log-port* "ERROR: Unknown error with database " fname " message: " ((condition-property-accessor 'exn 'message) exn)))) ))) | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | (exn (corrupt) (debug:print 0 *default-log-port* "ERROR: database " fname " is corrupt. Repair it to proceed.")) (exn (busy) (debug:print 0 *default-log-port* "ERROR: database " fname " is locked. Try copying to another location, remove original and copy back.")) (exn (permission)(debug:print 0 *default-log-port* "ERROR: database " fname " has some permissions problem.")) (exn () (debug:print 0 *default-log-port* "ERROR: Unknown error with database " fname " message: " ((condition-property-accessor 'exn 'message) exn)))) ))) ;; This routine creates the db if not already present. It is only called if the db is not already opened ;; (define (db:open-db dbstruct #!key (areapath #f)(do-sync #t)) ;; TODO: actually use areapath (let ((tmpdb-stack (dbr:dbstruct-dbstack dbstruct))) ;; RA => Returns the first reference in dbstruct (if (stack? tmpdb-stack) (db:get-db tmpdb-stack) ;; get previously opened db (will create new db handle if all in the stack are already used (let* ((max-stale-tmp (configf:lookup-number *configdat* "server" "filling-db-max-stale-seconds" default: 10)) |
︙ | ︙ |
Modified junk/cube.scm from [dfc5973f3b] to [a44db36c6b].
︙ | ︙ | |||
74 75 76 77 78 79 80 | (gl:Vertex2f 1 0) (gl:End) ) (define data (map (lambda (inl) (map string->number (string-split inl))) | | | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | (gl:Vertex2f 1 0) (gl:End) ) (define data (map (lambda (inl) (map string->number (string-split inl))) (with-input-from-file "data.txt" read-lines))) (print "data: " data) (use trace) ;; (add-object draw-cube animate: spin select: (lambda _ (print "oink!"))) |
︙ | ︙ |
Added junk/data.txt version [cb1d5c0059].
> > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 0 0 0 1 2 3 4 5 6 0 0 1 1 2 3 4 5 6 0 0 2 1 2 3 4 5 6 0 1 0 1 2 3 4 5 6 0 1 1 1 2 3 4 5 6 0 1 2 1 2 3 4 5 6 0 2 0 1 2 3 4 5 6 0 2 1 1 2 3 4 5 6 0 2 2 1 2 3 4 5 6 1 0 0 1 2 3 4 5 6 1 0 1 1 2 3 4 5 6 1 0 2 1 2 3 4 5 6 1 1 0 1 2 3 4 5 6 1 1 1 1 2 3 4 5 6 1 1 2 1 2 3 4 5 6 1 2 0 1 2 3 4 5 6 1 2 1 1 2 3 4 5 6 1 2 2 1 2 3 4 5 6 2 0 0 1 2 3 4 5 6 2 0 1 1 2 3 4 5 6 2 0 2 1 2 3 4 5 6 2 1 0 1 2 3 4 5 6 2 1 1 1 2 3 4 5 6 2 1 2 1 2 3 4 5 6 2 2 0 1 2 3 4 5 6 2 2 1 1 2 3 4 5 6 2 2 2 1 2 3 4 5 6 |