Changeset 14064


Ignore:
Timestamp:
08/07/12 16:50:15 (9 years ago)
Author:
rschlatte
Message:

Cosmetic changes

  • rename local variables
  • directly set initial value of *features*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Lisp.java

    r14063 r14064  
    23252325  {
    23262326    final String osName = System.getProperty("os.name");
    2327     final String version = System.getProperty("java.version");
    2328     final String os_arch = System.getProperty("os.arch");
     2327    final String javaVersion = System.getProperty("java.version");
     2328    final String osArch = System.getProperty("os.arch");
    23292329
    23302330    // Common features
     
    23622362      featureList = new Cons(Keyword.WINDOWS, featureList);
    23632363    // Java version
    2364     if (version.startsWith("1.5")) {
     2364    if (javaVersion.startsWith("1.5")) {
    23652365        featureList = new Cons(Keyword.JAVA_1_5, featureList);
    2366     } else if (version.startsWith("1.6")) {
     2366    } else if (javaVersion.startsWith("1.6")) {
    23672367        featureList = new Cons(Keyword.JAVA_1_6, featureList);
    2368     } else if (version.startsWith("1.7")) {
     2368    } else if (javaVersion.startsWith("1.7")) {
    23692369        featureList = new Cons(Keyword.JAVA_1_7, featureList);
    23702370    }
    23712371    // Processor architecture
    2372     if(os_arch != null) {
    2373       if (os_arch.equals("amd64"))
     2372    if(osArch != null) {
     2373      if (osArch.equals("amd64"))
    23742374        featureList = new Cons(Keyword.X86_64, featureList);
    2375       else if (os_arch.equals("x86"))
     2375      else if (osArch.equals("x86"))
    23762376        featureList = new Cons(Keyword.X86, featureList);
    23772377    }
    2378     Symbol.FEATURES.initializeSpecial(NIL);
    2379     Symbol.FEATURES.setSymbolValue(featureList);
     2378    Symbol.FEATURES.initializeSpecial(featureList);
    23802379  }
    23812380
Note: See TracChangeset for help on using the changeset viewer.