diff options
author | David Robillard <d@drobilla.net> | 2019-01-09 20:30:51 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-10 22:09:30 +0100 |
commit | 84597399525d99fe036ea93feedb7993f326de50 (patch) | |
tree | d7744f267d06f600a539a2c92c1c4e2582a5b6ba /plugins/eg-scope.lv2 | |
parent | 677eee0a8a1ca270860c11bc411abb48ae5e455e (diff) | |
download | lv2-84597399525d99fe036ea93feedb7993f326de50.tar.xz |
Sort includes from local to standard and fix exposed issues
This order is better because it ensures that headers can stand alone and
include everything they need. Several missing includes were exposed by this,
and are also fixed in this commit.
Diffstat (limited to 'plugins/eg-scope.lv2')
-rw-r--r-- | plugins/eg-scope.lv2/examploscope.c | 12 | ||||
-rw-r--r-- | plugins/eg-scope.lv2/examploscope_ui.c | 28 |
2 files changed, 20 insertions, 20 deletions
diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c index d675cb2..aa542c8 100644 --- a/plugins/eg-scope.lv2/examploscope.c +++ b/plugins/eg-scope.lv2/examploscope.c @@ -15,11 +15,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <stdbool.h> -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> +#include "./uris.h" #include "lv2/atom/atom.h" #include "lv2/atom/forge.h" @@ -31,7 +27,11 @@ #include "lv2/state/state.h" #include "lv2/urid/urid.h" -#include "./uris.h" +#include <stdbool.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> /** ==== Private Plugin Instance Structure ==== diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c index 1639ae9..ce0000c 100644 --- a/plugins/eg-scope.lv2/examploscope_ui.c +++ b/plugins/eg-scope.lv2/examploscope_ui.c @@ -14,19 +14,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <assert.h> -#include <stdbool.h> -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include <cairo.h> -#include <gdk/gdk.h> -#include <glib-object.h> -#include <glib.h> -#include <gobject/gclosure.h> -#include <gtk/gtk.h> +#include "./uris.h" #include "lv2/atom/atom.h" #include "lv2/atom/forge.h" @@ -35,7 +23,19 @@ #include "lv2/ui/ui.h" #include "lv2/urid/urid.h" -#include "./uris.h" +#include <cairo.h> +#include <gdk/gdk.h> +#include <glib-object.h> +#include <glib.h> +#include <gobject/gclosure.h> +#include <gtk/gtk.h> + +#include <assert.h> +#include <stdbool.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> // Drawing area size #define DAWIDTH (640) |