diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-02-11 21:28:03 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-02-11 21:28:03 +0000 |
commit | ed3aa7042b13a3c2bfac4ec79faec86d590999ad (patch) | |
tree | 1e1a1d60b519160abd72896a4f7b1487a38a6456 /java | |
parent | 86ce0324dd22ac0abdedbcec493949c574268e23 (diff) | |
download | ports-ed3aa7042b13a3c2bfac4ec79faec86d590999ad.tar.gz ports-ed3aa7042b13a3c2bfac4ec79faec86d590999ad.zip |
Notes
Diffstat (limited to 'java')
-rw-r--r-- | java/jlint/files/patch-jlint.cc | 31 | ||||
-rw-r--r-- | java/jlint/files/patch-method__desc.cc | 20 | ||||
-rw-r--r-- | java/jlint/files/patch-method__desc.hh | 9 |
3 files changed, 60 insertions, 0 deletions
diff --git a/java/jlint/files/patch-jlint.cc b/java/jlint/files/patch-jlint.cc new file mode 100644 index 000000000000..323678bfe0e6 --- /dev/null +++ b/java/jlint/files/patch-jlint.cc @@ -0,0 +1,31 @@ +--- jlint.cc.orig 2011-01-11 02:42:33 UTC ++++ jlint.cc +@@ -41,7 +41,7 @@ bool source_path_redefined = false; + int reported_message_mask = cat_all; + FILE* history; + string_pool stringPool; +-field_desc* is_const; ++field_desc* jlint_is_const; + + message_descriptor msg_table[] = + { +@@ -401,8 +401,8 @@ bool parse_class_file(byte* fp) + is_this->equals = is_this; + is_this->cls = this_class; + +- // init. is_const +- field_desc* is_const = new field_desc(utf_string("<const>"), NULL, NULL); ++ // init. jlint_is_const ++ field_desc* jlint_is_const = new field_desc(utf_string("<const>"), NULL, NULL); + + this_class->attr = access_flags; + if (super_class_name == 0) { // Object class +@@ -627,7 +627,7 @@ bool parse_class_file(byte* fp) + delete[] constant_pool; + delete is_this->name_and_type; + //delete is_this; +- delete is_const; ++ delete jlint_is_const; + + monitor_stack::const_iterator it; + for (it = this_class->usedLocks.begin(); diff --git a/java/jlint/files/patch-method__desc.cc b/java/jlint/files/patch-method__desc.cc new file mode 100644 index 000000000000..30803b420d1e --- /dev/null +++ b/java/jlint/files/patch-method__desc.cc @@ -0,0 +1,20 @@ +--- method_desc.cc.orig 2003-06-09 09:29:14 UTC ++++ method_desc.cc +@@ -767,7 +767,7 @@ void method_desc::parse_code(constant** + sp->mask = var_desc::vs_not_null; + } + sp->index = NO_ASSOC_VAR; +- sp->equals = is_const; ++ sp->equals = jlint_is_const; + sp += 1; + } + break; +@@ -2381,7 +2381,7 @@ void method_desc::parse_code(constant** + aux->name_and_type = nt; + sp->equals = aux; + equal_descs.push_back(aux);*/ +- sp->equals = is_const; ++ sp->equals = jlint_is_const; + } + } + field->equals = sp->equals; diff --git a/java/jlint/files/patch-method__desc.hh b/java/jlint/files/patch-method__desc.hh new file mode 100644 index 000000000000..7ad9306f6974 --- /dev/null +++ b/java/jlint/files/patch-method__desc.hh @@ -0,0 +1,9 @@ +--- method_desc.hh.orig 2001-02-09 23:40:33 UTC ++++ method_desc.hh +@@ -147,5 +147,5 @@ private: + + const char* compound_name(const char* first, const char* second); + extern string_pool stringPool; // declared in jlint.cc +-extern field_desc* is_const; ++extern field_desc* jlint_is_const; + #endif |