search for: make_error

Displaying 9 results from an estimated 9 matches for "make_error".

Did you mean: ae_error
2020 Jun 01
1
[PATCH] erlang: Port to libei for Erlang 23
...ull-read.h" @@ -38,36 +34,25 @@ instead of erl_interface. #include "guestfs.h" #include "guestfs-utils.h" +#include "actions.h" + guestfs_h *g; -extern ETERM *dispatch (ETERM *message); -extern int atom_equals (ETERM *atom, const char *name); -extern ETERM *make_error (const char *funname); -extern ETERM *unknown_optarg (const char *funname, ETERM *optargname); -extern ETERM *unknown_function (ETERM *fun); -extern ETERM *make_string_list (char **r); -extern ETERM *make_table (char **r); -extern ETERM *make_bool (int r); -extern char **get_string_list (ETERM *ter...
2018 Jan 23
1
[PDB] Error "DIA is not installed on the system" occured in `llvm::pdb::loadDataForExe()`.
..._ptr<IPDBSession> &Session) { // Create the correct concrete instance type based on the value of Type. if (Type == PDB_ReaderType::Native) return NativeSession::createFromExe(Path, Session); #if LLVM_ENABLE_DIA_SDK return DIASession::createFromExe(Path, Session); #else return make_error<GenericError>("DIA is not installed on the system"); #endif } ------------------------------------------------------------------------------------------------- [https://avatars2.githubusercontent.com/u/1386314?s=400&v=4]<https://github.com/llvm-mirror/lldb/blob/master/source...
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...@@ -201,11 +201,14 @@ ETERM * > make_string_list (char **r) > { > size_t i, size; > + ETERM **t; > > for (size = 0; r[size] != NULL; ++size) > ; > > - ETERM *t[size]; > + t = malloc (sizeof (ETERM *) * size); > + if (t == NULL) > + return make_error ("make_string_list"); 't' is leaked now. > > for (i = 0; r[i] != NULL; ++i) > t[i] = erl_mk_string (r[i]); > @@ -220,13 +223,16 @@ ETERM * > make_table (char **r) > { > size_t i, size; > - > - for (size = 0; r[size] != NULL; ++size) &gt...
2017 Mar 03
1
[PATCH] erlang: Rename 'message' to something less generic.
...100644 --- a/generator/erlang.ml +++ b/generator/erlang.ml @@ -192,7 +192,7 @@ and generate_erlang_actions_h () = extern guestfs_h *g; -extern ETERM *dispatch (ETERM *message); +extern ETERM *dispatch (ETERM *args_tuple); extern int atom_equals (ETERM *atom, const char *name); extern ETERM *make_error (const char *funname); extern ETERM *unknown_optarg (const char *funname, ETERM *optargname); @@ -205,7 +205,7 @@ extern int get_bool (ETERM *term); extern int get_int (ETERM *term); extern int64_t get_int64 (ETERM *term); -#define ARG(i) (ERL_TUPLE_ELEMENT(message,(i)+1)) +#define ARG(i) (ERL...
2020 Sep 23
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
...dSymbol(adr, llvm::JITSymbolFlags::Absolute); } else { notFound.push_back(name.first); } } JD.define(absoluteSymbols(std::move(NewSymbols))); return (notFound.size() == 0) ? llvm::Error::success() : llvm::make_error<llvm::orc::SymbolsNotFound>(std::move(notFound)); } When I use “llvm::orc::JITDylibLookupFlags::MatchExportedSymbolsOnly” then I will get 1 undefined Reference in the first run, but a total of 9 in the second run, because every symbol I wanted to lookup was now an undefined reference. Thank...
2016 Mar 07
2
[PATCH v2] Use less stack.
.../erlang/erl-guestfs-proto.c +++ b/erlang/erl-guestfs-proto.c @@ -201,11 +201,14 @@ ETERM * make_string_list (char **r) { size_t i, size; + ETERM **t; for (size = 0; r[size] != NULL; ++size) ; - ETERM *t[size]; + t = malloc (sizeof (ETERM *) * size); + if (t == NULL) + return make_error ("make_string_list"); for (i = 0; r[i] != NULL; ++i) t[i] = erl_mk_string (r[i]); @@ -220,13 +223,16 @@ ETERM * make_table (char **r) { size_t i, size; - - for (size = 0; r[size] != NULL; ++size) - ; - - ETERM *t[size/2]; + ETERM **t; ETERM *a[2]; + for (size =...
2020 Sep 24
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
...dSymbol(adr, llvm::JITSymbolFlags::Absolute); } else { notFound.push_back(name.first); } } JD.define(absoluteSymbols(std::move(NewSymbols))); return (notFound.size() == 0) ? llvm::Error::success() : llvm::make_error<llvm::orc::SymbolsNotFound>(std::move(notFound)); } When I use “llvm::orc::JITDylibLookupFlags::MatchExportedSymbolsOnly” then I will get 1 undefined Reference in the first run, but a total of 9 in the second run, because every symbol I wanted to lookup was now an undefined reference. Thank...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2018 Jan 23
0
MachineVerifier and undef
...> // Create the correct concrete instance type based on the value of Type. > if (Type == PDB_ReaderType::Native) > return NativeSession::createFromExe(Path, Session); > > #if LLVM_ENABLE_DIA_SDK > return DIASession::createFromExe(Path, Session); > #else > return make_error<GenericError>("DIA is not installed on the system"); > #endif > } > > ------------------------------------------------------------------------------------------------- > [https://avatars2.githubusercontent.com/u/1386314?s=400&v=4]<https://github.com/llvm-mirror...