* tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
field.
(getParser): Use new field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123240
138bc75d-0d04-0410-961f-
82ee72b054a4
13 files changed:
+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
2007-03-17 Thomas Fitzsimmons <fitzsim@redhat.com>
* resource/com/sun/tools/javac/messages.properties
// True if we're emitting CNI code.
boolean cni;
// 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;
// True if output files should always be written.
boolean force;
{
public void parsed(String arg0) throws OptionException
{
{
public void parsed(String arg0) throws OptionException
{
+ if (cniOrJniSeen && cni)
throw new OptionException("only one of -jni or -cni may be used");
throw new OptionException("only one of -jni or -cni may be used");
{
public void parsed(String arg0) throws OptionException
{
{
public void parsed(String arg0) throws OptionException
{
+ if (cniOrJniSeen && ! cni)
+ throw new OptionException("only one of -jni or -cni may be used");
+ cniOrJniSeen = true;