Displaying 5 results from an estimated 5 matches for "make_string_list".
2020 Jun 01
1
[PATCH] erlang: Port to libei for Erlang 23
...+
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 *term);
-extern int get_bool (ETERM *term);
-extern int get_int (ETERM *term);
-extern int64_t get_int64 (ETERM *term);
-
/* This stops things getting out of hand, but also let...
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...SIZE];
> + CLEANUP_FREE char *buf;
Missing "= NULL" here.
> diff --git a/erlang/erl-guestfs-proto.c b/erlang/erl-guestfs-proto.c
> index 658a0ef..0c2f545 100644
> --- a/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");
't...
2016 Mar 07
2
[PATCH v2] Use less stack.
...no, "malloc");
for (i = 0; i < nr_threads; ++i) {
thread_data[i].thread_num = i;
diff --git a/erlang/erl-guestfs-proto.c b/erlang/erl-guestfs-proto.c
index 658a0ef..0c2f545 100644
--- a/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[...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames.
Rich.
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.