Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 540732 Details for
Bug 645294
sci-libs/shogun-5.0.0 : /.../NeuralNetworkFileReader.cpp:54:6: error: is_error was not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
shogun-5.0.0-SerializableJsonFile_is_error.diff
shogun-5.0.0-SerializableJsonFile_is_error.diff (text/plain), 2.80 KB, created by
Juergen Rose
on 2018-07-24 17:29:48 UTC
(
hide
)
Description:
shogun-5.0.0-SerializableJsonFile_is_error.diff
Filename:
MIME Type:
Creator:
Juergen Rose
Created:
2018-07-24 17:29:48 UTC
Size:
2.80 KB
patch
obsolete
>--- shogun-5.0.0/src/shogun/io/SerializableJsonFile.cpp_orig 2016-11-05 07:32:23.000000000 +0100 >+++ shogun-5.0.0/src/shogun/io/SerializableJsonFile.cpp 2018-07-24 13:58:10.254341295 +0200 >@@ -45,7 +45,6 @@ > m_stack_stream.back(), STR_KEY_FILETYPE, &buf); > > if (!success || buf == NULL >- || is_error(buf) > || (ftype = json_object_get_string(buf)) == NULL) > return NULL; > >@@ -80,11 +79,10 @@ > CSerializableJsonFile::get_object(json_object** dest, json_object* src, > const char* key, json_type t) > { >- bool success = true ; >- success = json_object_object_get_ex(src, key, & *dest); >+ bool success = true; >+ success = json_object_object_get_ex(src, key, &*dest); > >- return success && *dest != NULL && !is_error(*dest) >- && json_object_is_type(*dest, t); >+ return success && *dest != nullptr && json_object_is_type(*dest, t); > } > > void >@@ -100,7 +98,7 @@ > switch (m_task) { > case 'r': > buf = json_object_from_file((char*) fname); >- if (is_error(buf)) { >+ if (buf == nullptr) { > SG_ERROR("Could not open file `%s' for reading!\n", > fname); > return; >@@ -222,7 +220,7 @@ > break; > } > >- if (is_error(m_stack_stream.back())) >+ if (m_stack_stream.back() == nullptr) > return false; > > return true; >@@ -292,7 +290,7 @@ > push_object(json_object_new_object()); > > json_object* buf = json_object_new_array(); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > > json_object_object_add(m_stack_stream.back(), >@@ -322,7 +320,7 @@ > push_object(buf); > > buf = json_object_new_int(feat_index); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > > json_object_object_add(m_stack_stream.back(), >@@ -383,7 +381,7 @@ > > json_object* buf; > buf = json_object_new_string(sgserializable_name); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > > json_object_object_add(m_stack_stream.back(), >@@ -393,7 +391,7 @@ > string_t buf_str; > TSGDataType::ptype_to_string(buf_str, generic, STRING_LEN); > buf = json_object_new_string(buf_str); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > > json_object_object_add(m_stack_stream.back(), >@@ -401,7 +399,7 @@ > } > > buf = json_object_new_object(); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > json_object_object_add(m_stack_stream.back(), STR_KEY_INSTANCE, > buf); >@@ -426,7 +424,7 @@ > const TSGDataType* type, const char* name, const char* prefix) > { > json_object* buf = json_object_new_object(); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > > json_object_object_add(m_stack_stream.back(), name, buf); >@@ -435,7 +433,7 @@ > string_t str_buf; > type->to_string(str_buf, STRING_LEN); > buf = json_object_new_string(str_buf); >- if (is_error(buf)) >+ if (buf == nullptr) > return false; > > json_object_object_add(m_stack_stream.back(), STR_KEY_TYPE, buf);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 645294
:
515762
|
515764
|
515766
|
515768
|
515770
|
515772
|
515774
|
540730
| 540732 |
540734