search for: make_t

Displaying 16 results from an estimated 16 matches for "make_t".

Did you mean: makeit
2010 Dec 01
1
Prawn : undefined method `make_table'
require ''prawn'' require ''prawn/core'' require ''prawn/layout'' Prawn::Document.new do |pdf| subtable = pdf.make_table([[ "foo", "bar" ], [ "baz", "bax" ]], :column_widths => [ 50, 50 ]) { column(0).background_color = "808080" cells.borders = [] } table = pdf.make_table([[ "foo", "bar"...
2020 Jun 01
1
[PATCH] erlang: Port to libei for Erlang 23
...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 lets us detect * protocol problems...
2003 Nov 01
0
[LLVMdev] Cute profiling toy for LLVM
...-=== LLVM profiling output for execution: Output/em3d.llvm.bc ===-------------------------------------------------------------------------=== Function execution frequencies: ## Frequency 1. 390/516 check_percent 2. 102/516 gen_signed_number 3. 2/516 compute_nodes 4. 2/516 make_table 5. 2/516 fill_table 6. 2/516 make_neighbors 7. 2/516 update_from_coeffs 8. 2/516 fill_from_fields 9. 2/516 localize_local 10. 1/516 initialize_graph 11. 1/516 clear_nummiss 12. 1/516 localize 13. 1/516 fill_all_from_fields 14. 1/516 update_...
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...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) > - ; > - > - ETERM *t[size/2]; > + ETERM **t; > ETERM *a[2]; > > + for (size = 0; r[size] != NULL; ++size) > + ; > + > + t = malloc (sizeof (ETERM *) *...
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
...t -> Balloon_change.t -> unit) + | PMSuspendDisk of ([`R] Domain.t -> PM_suspend_disk.t -> unit) + + type callback_id = int64 + + let fresh_callback_id = + let next = ref 0L in + fun () -> + let result = !next in + next := Int64.succ !next; + result + + let make_table value_name = + let table = Hashtbl.create 16 in + let callback callback_id generic x = + if Hashtbl.mem table callback_id + then Hashtbl.find table callback_id generic x in + let _ = Callback.register value_name callback in + table + + let u_table = make_table "Libvi...
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository, instead of having it around in the common submodule. The removal from common will happen later. Pino Toscano (2): common: Bundle the libvirt-ocaml library for use by virt-v2v build: switch embedded copy of libvirt-ocaml .gitignore | 2 + 3rdparty/libvirt-ocaml/Makefile.am |
2016 Mar 07
2
[PATCH v2] Use less stack.
...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 = 0; r[size] != NULL; ++size) + ; + + t = malloc (sizeof (ETERM *) * (size/2)); + if (t == NULL) + return make_error ("make_table...
2018 Aug 30
8
[PATCH 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...ern void gen_next_compressed_state (char*); extern void gen_next_match (void); extern void gen_next_state (int); extern void gen_NUL_trans (void); extern void gen_start_state (void); extern void gentabs (void); extern void indent_put2s (char[], char[]); extern void indent_puts (char[]); extern void make_tables (void); extern void check_options (void); extern void flexend (int); extern void usage (void); extern void action_define ( char *defname, int value ); extern void add_action ( char *new_text ); extern int all_lower (register char *); extern int all_upper (register char *); extern void bubble (...
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.