Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
STklos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Erick
STklos
Commits
c5578399
Commit
c5578399
authored
Oct 16, 2010
by
Erick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the stklos-debug-level parameter
parent
7f8dded2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5609 additions
and
5560 deletions
+5609
-5560
lib/boot.stk
lib/boot.stk
+3
-2
lib/load.stk
lib/load.stk
+4
-3
lib/runtime.stk
lib/runtime.stk
+15
-1
src/boot.c
src/boot.c
+5342
-5311
src/boot.img
src/boot.img
+245
-243
No files found.
lib/boot.stk
View file @
c5578399
...
...
@@ -21,7 +21,7 @@
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 01-Jan-2000 15:04 (eg)
;;;; Last file update:
9-Aug-2010 11:28
(eg)
;;;; Last file update:
16-Oct-2010 15:56
(eg)
;;;;
(include "runtime.stk") ; Definition necessary for the bootstrap
...
...
@@ -205,10 +205,11 @@
;; Look at the debug flag
(when (> debug 0)
(stklos-debug-level debug)
(compiler:warn-use-undefined #t) ; Signal usage of still undefined symbols
(compiler:gen-line-number #t) ; Generate line numbers
(when (> debug 1) ; Load-verbose when debug >= 2
(load-verbose
1
)))
(load-verbose
debug
)))
;; Eventually try to create the configuratioon directory
(let ((dir (%stklos-conf-dir)))
...
...
lib/load.stk
View file @
c5578399
...
...
@@ -21,7 +21,7 @@
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 17-May-2000 14:55 (eg)
;;;; Last file update:
30-Jun-2010 18:03
(eg)
;;;; Last file update:
16-Oct-2010 16:07
(eg)
;;;;
...
...
@@ -142,7 +142,7 @@ doc>
* (load-verbose value)
*
* |load-verbose| is a parameter object. It permits to display the
* path name of the files whch are loaded by |load| or |try-load| on
* path name of the files wh
i
ch are loaded by |load| or |try-load| on
* the current error port, when set to a true value. If |load-verbose|
* is set to |f|, no message is printed.
doc>
...
...
@@ -174,7 +174,8 @@ doc>
(define (%guess-pathname fn paths suffixes)
(define (try f)
; (eprintf "Try ~S\n" f)
(when (>= (stklos-debug-level) 2)
(eprintf "%guess-pathname: trying ~S\n" f))
(and (file-exists? f)
(file-is-readable? f)
(not (file-is-directory? f))
...
...
lib/runtime.stk
View file @
c5578399
...
...
@@ -21,7 +21,7 @@
;;;;
;;;; Author: Erick Gallesio [eg@unice.fr]
;;;; Creation date: 15-Mar-2001 22:49 (eg)
;;;; Last file update:
4-Aug-2010 10:52
(eg)
;;;; Last file update:
16-Oct-2010 15:56
(eg)
;;;;
...
...
@@ -63,6 +63,19 @@
(loop (cdr args)
(string-append res (format "~a" (car args)))))))
;; ----------------------------------------------------------------------
;; parameters
;; ----------------------------------------------------------------------
#|<doc EXT stklos-debug-level
* (stklos-debug-level)
*
* |stklos-debug-level| is a parameter objet. It permits to know the current
* debug level. The default value of this parameter is 0 (meaning "no debug").
doc>
|#
(define stklos-debug-level
(make-parameter 0))
;; ----------------------------------------------------------------------
;; *%system-state-plist* ...
;; ----------------------------------------------------------------------
...
...
@@ -81,6 +94,7 @@
(compiler-known-globals (cons symbol lst)))))
;;; ----------------------------------------------------------------------
;;;
;;; E x p a n d e r s
...
...
src/boot.c
View file @
c5578399
This diff is collapsed.
Click to expand it.
src/boot.img
View file @
c5578399
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment