6r1d / midi-message-parser

A C library for parsing MIDI messages.
MIT License
0 stars 0 forks source link

Header-only version #1

Closed 6r1d closed 3 years ago

6r1d commented 3 years ago

I think it's better to move all the parts of midi-message-parser to header files, based on the structs. Related branch.

According to this StackOverflow answer,

.c files compile to .obj files, which are linked together after compilation (by the linker) into the executable (or library), so there is no need to include one .c file in another

For me that means that there are two ways to use this library, a shared object (.so) file or a number of header files.

I feel like there's less need for a .so file and using a bunch of headers will be easier to use in embedded devices.


List of ifndef statements:


TO-DO:

UPD: I think it'll be ok if I clarify the previous library uses doing a PR.