Main.java (cniOrJniSeen): New field.
2007-03-26 Stepan Kasal <skasal@redhat.com> * tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New field. (getParser): Use new field. From-SVN: r123240
This commit is contained in:
parent
7cf2045de1
commit
596438ca81
13 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-03-26 Stepan Kasal <skasal@redhat.com>
|
||||
|
||||
* tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
|
||||
field.
|
||||
(getParser): Use new field.
|
||||
|
||||
2007-03-17 Thomas Fitzsimmons <fitzsim@redhat.com>
|
||||
|
||||
* resource/com/sun/tools/javac/messages.properties
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -89,6 +89,9 @@ public class Main
|
|||
// True if we're emitting CNI code.
|
||||
boolean cni;
|
||||
|
||||
// True if we've seen -cni or -jni.
|
||||
boolean cniOrJniSeen;
|
||||
|
||||
// True if output files should always be written.
|
||||
boolean force;
|
||||
|
||||
|
@ -243,8 +246,9 @@ public class Main
|
|||
{
|
||||
public void parsed(String arg0) throws OptionException
|
||||
{
|
||||
if (cni)
|
||||
if (cniOrJniSeen && cni)
|
||||
throw new OptionException("only one of -jni or -cni may be used");
|
||||
cniOrJniSeen = true;
|
||||
cni = false;
|
||||
}
|
||||
});
|
||||
|
@ -252,6 +256,9 @@ public class Main
|
|||
{
|
||||
public void parsed(String arg0) throws OptionException
|
||||
{
|
||||
if (cniOrJniSeen && ! cni)
|
||||
throw new OptionException("only one of -jni or -cni may be used");
|
||||
cniOrJniSeen = true;
|
||||
cni = true;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue