Changeset 4189
- Timestamp:
- 10/04/03 10:48:10 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/Interpreter.java
r4060 r4189 3 3 * 4 4 * Copyright (C) 2002-2003 Peter Graves 5 * $Id: Interpreter.java,v 1. 39 2003-09-25 18:22:11piso Exp $5 * $Id: Interpreter.java,v 1.40 2003-10-04 10:48:10 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 46 46 47 47 private final boolean jlisp; 48 private final InputStream inputStream; 49 private final OutputStream outputStream; 48 50 49 51 public static synchronized Interpreter getInstance() … … 72 74 { 73 75 jlisp = false; 76 inputStream = null; 77 outputStream = null; 74 78 } 75 79 … … 77 81 String initialDirectory) 78 82 { 83 jlisp = true; 84 this.inputStream = inputStream; 85 this.outputStream = outputStream; 79 86 resetIO(new CharacterInputStream(inputStream), 80 87 new CharacterOutputStream(outputStream)); 81 jlisp = true;82 88 } 83 89 … … 117 123 initialize(jlisp); 118 124 Symbol TOP_LEVEL_LOOP = intern("TOP-LEVEL-LOOP", PACKAGE_TPL); 119 LispObject replFun = TOP_LEVEL_LOOP.getSymbolFunction();120 if ( replFun instanceof Function) {121 replFun.execute();125 LispObject tplFun = TOP_LEVEL_LOOP.getSymbolFunction(); 126 if (tplFun instanceof Function) { 127 funcall0(tplFun, thread); 122 128 return; 123 129 } … … 503 509 public void kill() 504 510 { 505 done = true; 511 if (jlisp) { 512 try { 513 inputStream.close(); 514 } 515 catch (IOException e) { 516 Debug.trace(e); 517 } 518 try { 519 outputStream.close(); 520 } 521 catch (IOException e) { 522 Debug.trace(e); 523 } 524 } else 525 System.exit(0); 506 526 } 507 527
Note: See TracChangeset
for help on using the changeset viewer.