From 6f0f6f729b6f1bb4d99dc3aac8c49f65fb7f064d Mon Sep 17 00:00:00 2001 From: Minero Aoki Date: Sun, 3 May 2009 14:46:09 +0000 Subject: [PATCH] r4633@macbookpro: aamine | 2009-05-02 09:49:27 +0900 * net/loveruby/cflat/compiler/Compiler.java: refactoring: rename constant: programId -> ProgramName. * net/loveruby/cflat/compiler/Options.java: ditto. git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4170 1b9489fe-b721-0410-924e-b54b9192deb8 --- ChangeLog | 7 +++++++ net/loveruby/cflat/compiler/Compiler.java | 6 ++++-- net/loveruby/cflat/compiler/Options.java | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d52fc16..fec0ded 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat May 2 09:49:23 2009 Minero Aoki + + * net/loveruby/cflat/compiler/Compiler.java: refactoring: rename + constant: programId -> ProgramName. + + * net/loveruby/cflat/compiler/Options.java: ditto. + Sat May 2 09:30:51 2009 Minero Aoki * net/loveruby/cflat/compiler/Compiler.java (commandMain): diff --git a/net/loveruby/cflat/compiler/Compiler.java b/net/loveruby/cflat/compiler/Compiler.java index d860c02..313b882 100644 --- a/net/loveruby/cflat/compiler/Compiler.java +++ b/net/loveruby/cflat/compiler/Compiler.java @@ -10,11 +10,12 @@ import java.util.*; import java.io.*; public class Compiler { - static final public String ProgramID = "cbc"; + // #@@range/main{ + static final public String ProgramName = "cbc"; static final public String Version = "1.0.0"; static public void main(String[] args) { - new Compiler(ProgramID).commandMain(args); + new Compiler(ProgramName).commandMain(args); } protected ErrorHandler errorHandler; @@ -22,6 +23,7 @@ public class Compiler { public Compiler(String programName) { this.errorHandler = new ErrorHandler(programName); } + // #@@} private TypeTable defaultTypeTable() { return TypeTable.ilp32(); diff --git a/net/loveruby/cflat/compiler/Options.java b/net/loveruby/cflat/compiler/Options.java index 74aefe7..4b5f498 100644 --- a/net/loveruby/cflat/compiler/Options.java +++ b/net/loveruby/cflat/compiler/Options.java @@ -222,8 +222,8 @@ class Options { verbose = true; } else if (arg.equals("--version")) { - System.out.println(Compiler.ProgramID - + " version " + Compiler.Version); + System.out.printf("%s version %s", + Compiler.ProgramName, Compiler.Version); System.exit(0); } else if (arg.equals("--help")) {