Changeset 10007


Ignore:
Timestamp:
09/23/05 11:56:31 (16 years ago)
Author:
piso
Message:

export()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Package.java

    r9769 r10007  
    33 *
    44 * Copyright (C) 2002-2005 Peter Graves
    5  * $Id: Package.java,v 1.68 2005-08-02 18:47:07 piso Exp $
     5 * $Id: Package.java,v 1.69 2005-09-23 11:56:31 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    7272    {
    7373        if (name != null) {
    74             StringBuffer sb = new StringBuffer("The ");
     74            FastStringBuffer sb = new FastStringBuffer("The ");
    7575            sb.append(name);
    7676            sb.append(" package");
     
    478478        Symbol sym = findAccessibleSymbol(symbol.name);
    479479        if (sym != null && sym != symbol) {
    480             StringBuffer sb = new StringBuffer("The symbol ");
     480            FastStringBuffer sb = new FastStringBuffer("The symbol ");
    481481            sb.append(sym.getQualifiedName());
    482482            sb.append(" is already accessible in package ");
     
    496496        if (symbol.getPackage() != this) {
    497497            Symbol sym = findAccessibleSymbol(symbol.name);
    498             if (sym == null) {
    499                 StringBuffer sb = new StringBuffer("The symbol ");
     498            if (sym != symbol) {
     499                FastStringBuffer sb = new FastStringBuffer("The symbol ");
    500500                sb.append(symbol.getQualifiedName());
    501501                sb.append(" is not accessible in package ");
    502                 sb.append(name);
    503                 sb.append('.');
    504                 signal(new PackageError(sb.toString()));
    505                 return;
    506             }
    507             if (sym != symbol) {
    508                 // Conflict.
    509                 StringBuffer sb = new StringBuffer("The symbol ");
    510                 sb.append(sym.getQualifiedName());
    511                 sb.append(" is already accessible in package ");
    512502                sb.append(name);
    513503                sb.append('.');
     
    528518                            ; // OK.
    529519                        } else {
    530                             StringBuffer sb = new StringBuffer("The symbol ");
     520                            FastStringBuffer sb = new FastStringBuffer("The symbol ");
    531521                            sb.append(sym.getQualifiedName());
    532522                            sb.append(" is already accessible in package ");
     
    886876    {
    887877        if (_PRINT_FASL_.symbolValue() != NIL && name != null) {
    888             StringBuffer sb = new StringBuffer("#.(FIND-PACKAGE \"");
     878            FastStringBuffer sb = new FastStringBuffer("#.(FIND-PACKAGE \"");
    889879            sb.append(name);
    890880            sb.append("\")");
    891881            return sb.toString();
    892882        } else if (name != null) {
    893             StringBuffer sb = new StringBuffer("#<PACKAGE \"");
     883            FastStringBuffer sb = new FastStringBuffer("#<PACKAGE \"");
    894884            sb.append(name);
    895885            sb.append("\">");
Note: See TracChangeset for help on using the changeset viewer.