X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/180bfa7ca8efeb1297a0bc3f0ff55b02b4e40f9b..1645e4335e58ef3a8f1cafb1834e93760d80d9ae:/src/frontend.lisp?ds=sidebyside diff --git a/src/frontend.lisp b/src/frontend.lisp index 26afbfc..68c8a96 100644 --- a/src/frontend.lisp +++ b/src/frontend.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible Object Design, an object system for C. ;;; ;;; SOD is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -25,14 +25,14 @@ (cl:defpackage #:sod-frontend (:use #:common-lisp #:optparse #:sod #:sod-parser) - (:shadowing-import-from #:optparse "INT")) + (:shadowing-import-from #:optparse #:int)) (cl:in-package #:sod-frontend) ;;;-------------------------------------------------------------------------- ;;; Preparation for dumping. -(make-builtin-module) +(clear-the-decks) (exercise) ;;;-------------------------------------------------------------------------- @@ -169,6 +169,10 @@ reason)) nil))))) + ;; If there are no output types then there's nothing to do. + (unless output-reasons + (error "No output types given: nothing to do")) + ;; If we're writing the builtin module then now seems like a ;; good time to do that. (when builtinsp