Add skeleton of members base.

This commit is contained in:
Dominik Pantůček 2023-03-14 23:04:10 +01:00
parent 9564563199
commit 98a772cee9
4 changed files with 59 additions and 12 deletions

View file

@ -24,7 +24,8 @@
#
brmsaptool: brmsaptool.o testing.o listing.o month.o period.o ansi.o \
member-file.o dictionary.o command-line.o
member-file.o dictionary.o command-line.o \
members-base.o
csc -o brmsaptool $^
.PHONY: clean
@ -46,7 +47,7 @@ clean:
brmsaptool.o: brmsaptool.scm testing.import.scm listing.import.scm \
dictionary.import.scm month.import.scm period.import.scm \
ansi.import.scm member-file.import.scm \
command-line.import.scm
command-line.import.scm members-base.import.scm
TESTING-SOURCES=testing.scm
@ -89,3 +90,8 @@ COMMAND-LINE-SOURCES=command-line.scm testing.import.scm
command-line.o: $(COMMAND-LINE-SOURCES)
command-line.import.scm: $(COMMAND-LINE-SOURCES)
MEMBERS-BASE-SOURCES=members-base.scm testing.import.scm
members-base.o: $(MEMBERS-BASE-SOURCES)
members-base.import.scm: $(MEMBERS-BASE-SOURCES)

View file

@ -23,15 +23,6 @@
;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;
;(declare (uses testing
; listing
; dictionary
; month
; period
; member-file
; command-line
; ansi))
(import testing
listing
dictionary
@ -39,7 +30,8 @@
period
member-file
command-line
ansi)
ansi
members-base)
;; Print banner
(print "brmsaptool 0.2 (c) 2023 Brmlab, z.s.")
@ -53,6 +45,7 @@
(ansi-tests!)
(member-file-tests!)
(command-line-tests!)
(members-base-tests!)
(newline)
(command-line

View file

@ -33,6 +33,7 @@ csi -q -b \
ansi.scm \
member-file.scm \
command-line.scm \
members-base.scm \
brmsaptool.scm \
-- \
"$@"

47
members-base.scm Normal file
View file

@ -0,0 +1,47 @@
;;
;; members-base.scm
;;
;; Storage for member files.
;;
;; ISC License
;;
;; Copyright 2023 Brmlab, z.s.
;; Dominik Pantůček <dominik.pantucek@trustica.cz>
;;
;; Permission to use, copy, modify, and/or distribute this software
;; for any purpose with or without fee is hereby granted, provided
;; that the above copyright notice and this permission notice appear
;; in all copies.
;;
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
;; OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
;; NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;
(declare (unit members-base))
(module
members-base
(
load-members
members-base-tests!
)
(import scheme
(chicken base)
testing)
(define (load-members)
1)
(define (members-base-tests!)
(run-tests
members-base
))
)