├── LICENSE.md ├── README.md ├── amalgamate.py ├── test.sh └── test ├── include.h.expected ├── include.h.json ├── include.h.prologue ├── include ├── all.h ├── bar.h ├── foo.h ├── more │ ├── baz.h │ ├── in_nested_dir.h │ ├── local.h │ └── time.h ├── pragma_once.h └── test.h ├── source.c.expected ├── source.c.json ├── source.c.prologue └── source ├── bar.c ├── foo.c └── main.c /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/README.md -------------------------------------------------------------------------------- /amalgamate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/amalgamate.py -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test.sh -------------------------------------------------------------------------------- /test/include.h.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include.h.expected -------------------------------------------------------------------------------- /test/include.h.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include.h.json -------------------------------------------------------------------------------- /test/include.h.prologue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include.h.prologue -------------------------------------------------------------------------------- /test/include/all.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/all.h -------------------------------------------------------------------------------- /test/include/bar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/bar.h -------------------------------------------------------------------------------- /test/include/foo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/foo.h -------------------------------------------------------------------------------- /test/include/more/baz.h: -------------------------------------------------------------------------------- 1 | int baz = 0; 2 | -------------------------------------------------------------------------------- /test/include/more/in_nested_dir.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/more/in_nested_dir.h -------------------------------------------------------------------------------- /test/include/more/local.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/more/local.h -------------------------------------------------------------------------------- /test/include/more/time.h: -------------------------------------------------------------------------------- 1 | #error Not to be inlined! 2 | -------------------------------------------------------------------------------- /test/include/pragma_once.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/pragma_once.h -------------------------------------------------------------------------------- /test/include/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/include/test.h -------------------------------------------------------------------------------- /test/source.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/source.c.expected -------------------------------------------------------------------------------- /test/source.c.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/source.c.json -------------------------------------------------------------------------------- /test/source.c.prologue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/source.c.prologue -------------------------------------------------------------------------------- /test/source/bar.c: -------------------------------------------------------------------------------- 1 | 2 | #include "bar.h" 3 | 4 | int bar() 5 | { 6 | return 1 + foo(); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/source/foo.c: -------------------------------------------------------------------------------- 1 | 2 | #include "foo.h" 3 | 4 | int foo() 5 | { 6 | return 1; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /test/source/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/edlund/amalgamate/HEAD/test/source/main.c --------------------------------------------------------------------------------