aboutsummaryrefslogtreecommitdiff
path: root/src/boot/translator.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/translator.boot')
-rw-r--r--src/boot/translator.boot11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/boot/translator.boot b/src/boot/translator.boot
index b98f3b30..f44fee4c 100644
--- a/src/boot/translator.boot
+++ b/src/boot/translator.boot
@@ -1,6 +1,6 @@
-- Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd.
-- All rights reserved.
--- Copyright (C) 2007-2015, Gabriel Dos Reis.
+-- Copyright (C) 2007-2016, Gabriel Dos Reis.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -40,7 +40,7 @@ import parser
import ast
namespace BOOTTRAN
module translator (evalBootFile, loadNativeModule, loadSystemRuntimeCore,
- string2BootTree, genImportDeclaration, retainFile?)
+ compileBootHandler, string2BootTree, genImportDeclaration, retainFile?)
++ If non nil, holds the name of the current module being translated.
$currentModuleName := nil
@@ -569,10 +569,9 @@ defaultBootToLispFile file ==
strconc(pathBasename file, '".clisp")
getIntermediateLispFile(file,options) ==
- out := NAMESTRING getOutputPathname(options)
- out ~= nil =>
- strconc(shoeRemoveStringIfNec(strconc('".",$faslType),out),'".clisp")
- defaultBootToLispFile file
+ out := getOutputPathname options or return defaultBootToLispFile file
+ strconc(shoeRemoveStringIfNec(strconc('".",$faslType),filePathString out),'".clisp")
+
translateBootFile(progname, options, file) ==
outFile := getOutputPathname options or defaultBootToLispFile file