search for: atom_equ

Displaying 8 results from an estimated 8 matches for "atom_equ".

Did you mean: atom_end
2020 Jun 01
1
[PATCH] erlang: Port to libei for Erlang 23
...t;ei.h> #include "error.h" #include "full-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...
2017 Mar 03
1
[PATCH] erlang: Rename 'message' to something less generic.
...rator/erlang.ml b/generator/erlang.ml index 3753835..d0d2198 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...
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...(* The wrapper functions. *) List.iter ( @@ -461,7 +461,7 @@ extern void free_strings (char **r); pr "}\n"; pr "\n"; - ) all_functions_sorted; + ) external_functions_sorted; pr "\ @@ -480,7 +480,7 @@ dispatch (ETERM *message) pr "if (atom_equals (fun, \"%s\"))\n" name; pr " return run_%s (message);\n" name; pr " else "; - ) all_functions_sorted; + ) external_functions_sorted; pr "return unknown_function (fun); } diff --git a/generator/fish.ml b/generator/fish.ml index 077...
2012 Jan 09
1
[PATCH 1/2] generator: Rename java_structs to camel_structs to better reflect their purpose
This map was originally included just for the java bindings, but is generally useful to any binding which uses camel case by requirement or convention. --- generator/generator_haskell.ml | 4 ++-- generator/generator_java.ml | 10 +++++----- generator/generator_main.ml | 2 +- generator/generator_structs.ml | 12 +++++------- generator/generator_structs.mli | 8 ++++---- 5
2016 Sep 02
6
[PATCH 0/4] generator: Some work to split large C files
By splitting up large C files we can make parallel compiles a bit faster. Rich.
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
...; pr "ETERM *\n"; pr "run_%s (ETERM *args_tuple)\n" name; @@ -550,7 +550,7 @@ dispatch (ETERM *args_tuple) "; List.iter ( - fun { name = name; style = ret, args, optargs } -> + fun { name; style = ret, args, optargs } -> pr "if (atom_equals (fun, \"%s\"))\n" name; pr " return run_%s (args_tuple);\n" name; pr " else "; diff --git a/generator/fish.ml b/generator/fish.ml index 546cd8ed6..e34022ac5 100644 --- a/generator/fish.ml +++ b/generator/fish.ml @@ -53,7 +53,7 @@ let doc_optty...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...pr ").\n" ) @@ -404,7 +405,7 @@ instead of erl_interface. List.iter ( fun argt -> let n = name_of_optargt argt in - let uc_n = String.uppercase n in + let uc_n = String.uppercase_ascii n in pr " if (atom_equals (hd_name, \"%s\")) {\n" n; pr " optargs_s.bitmask |= %s_%s_BITMASK;\n" c_optarg_prefix uc_n; @@ -457,12 +458,12 @@ instead of erl_interface. function | OBool _ | OInt _ | OInt64 _ -> () | OString n -> -...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email: https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html I'd like to talk about requiring a more modern version of the OCaml compiler. These commits show some of the code changes which would be possible with OCaml >= 3.12 [which it turns out we already require by accident] and also with OCaml >= 4.02. The latter is my favoured option. Rich.