drgn/libdrgn
Omar Sandoval 948cda2941 libdrgn: add vector/hash table initializers and update coding style
Declaring a local vector or hash table and separately initializing it
with vector_init()/hash_table_init() is annoying. Add macros that can be
used as initializers.

This exposes several places where the C89 style of placing all
declarations at the beginning of a block is awkward. I adopted this
style from the Linux kernel, which uses C89 and thus requires this
style. I'm now convinced that it's usually nicer to declare variables
where they're used. So let's officially adopt the style of mixing
declarations and code (and ditch the blank line after declarations) and
update the functions touched by this change.
2020-07-01 12:48:24 -07:00
..
build-aux Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
elfutils Update elfutils and revert activation frame patch 2020-05-20 13:38:49 -07:00
include Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
m4 libdrgn: build with bundled elfutils 2019-09-19 11:07:12 -07:00
python libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
.gitignore Document with Sphinx 2019-04-11 12:48:15 -07:00
arch_x86_64.c.in libdrgn: make Linux kernel stack unwinding more robust 2020-05-20 12:03:00 -07:00
binary_search_tree.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
cityhash.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
configure.ac drgn 0.0.5 2020-05-26 10:04:06 -07:00
Doxyfile Rewrite drgn core in C 2019-04-02 14:12:07 -07:00
drgn.h.in Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
dwarf_index.c libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
dwarf_index.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
dwarf_info_cache.c libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
dwarf_info_cache.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
error.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
error.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
hash_table.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
hash_table.h libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
helpers.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
internal.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
internal.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
kdump.c libdrgn: fix _page_offset() helper and move to object finder 2020-04-10 15:33:27 -07:00
language_c.c libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
language.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
language.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
lexer.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
lexer.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
linux_kernel_helpers.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
linux_kernel.c libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
linux_kernel.h libdrgn: make Linux kernel stack unwinding more robust 2020-05-20 12:03:00 -07:00
Makefile.am Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
memory_reader.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
memory_reader.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
object_index.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
object_index.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
object.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
object.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
path.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
platform.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
platform.h libdrgn: make Linux kernel stack unwinding more robust 2020-05-20 12:03:00 -07:00
program.c libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
program.h libdrgn: make Linux kernel stack unwinding more robust 2020-05-20 12:03:00 -07:00
read.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
serialize.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
serialize.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
siphash.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
splay_tree.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
stack_trace.c libdrgn: make Linux kernel stack unwinding more robust 2020-05-20 12:03:00 -07:00
string_builder.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
string_builder.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
symbol.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
symbol.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
type_index.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
type_index.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
type.c libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00
type.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
util.h Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
vector.c Update copyright headers to Facebook and add missing headers 2020-05-15 15:13:02 -07:00
vector.h libdrgn: add vector/hash table initializers and update coding style 2020-07-01 12:48:24 -07:00