]> granicus.if.org Git - libass/commitdiff
Include config.h in all source files and in no headers
authorOleg Oshmyan <chortos@inbox.lv>
Tue, 15 Sep 2015 14:10:58 +0000 (17:10 +0300)
committerOleg Oshmyan <chortos@inbox.lv>
Thu, 17 Sep 2015 20:37:10 +0000 (23:37 +0300)
This way, #include "config.h" is consistently the very
first thing the compiler sees when compiling any file.

Some source files currently don't use anything defined in config.h,
but it's easier and less error-prone to include it now to anticipate
possible future changes in those files, config.h or other headers.

12 files changed:
libass/ass_blur.c
libass/ass_coretext.h
libass/ass_directwrite.h
libass/ass_drawing.c
libass/ass_fontconfig.h
libass/ass_rasterizer.c
libass/ass_rasterizer_c.c
libass/ass_shaper.h
libass/ass_string.c
libass/ass_string.h
libass/ass_strtod.c
libass/ass_utils.h

index 023be038334e44fae55b0734a1cca80c44df355f..f02072549894aee2b3f6b635c75b52b39df8702a 100644 (file)
@@ -16,6 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "config.h"
+
 #include <math.h>
 #include <stdbool.h>
 
index 07a49fa6d9ced16321e056d7c80e7cb65e961a4f..31edc5f7291e89dc72eaac21a8fbe926175de17b 100644 (file)
@@ -16,8 +16,6 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
-
 #include "ass_types.h"
 #include "ass_fontselect.h"
 
index daf17ffe8716392ee0bf9c808666c11c5f10baf1..acb2e194e1e2016ef19cecfeaf4caa7af9947f87 100644 (file)
@@ -16,8 +16,6 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
-
 #include "ass_types.h"
 #include "ass_fontselect.h"
 
index 4e982380d02942fe760b01518b9a4d15f0386560..9828d575db20221057f5be2e290b43820924fd75 100644 (file)
@@ -16,6 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "config.h"
+
 #include <ft2build.h>
 #include FT_OUTLINE_H
 #include FT_BBOX_H
index 6d4f5e9bdefc093c1a0206f8ec37ee6f2089c818..2db82d7395bcf6384d24de1a6512138304352bb6 100644 (file)
@@ -16,8 +16,6 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
-
 #include "ass_types.h"
 #include "ass_fontselect.h"
 
index 8a0ee3bf27704a6b09f8a5694b1ce87d4d9ea08f..91c0cf1fff2cf5570e7006420c1e76f7cf02022f 100644 (file)
@@ -16,6 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "config.h"
+
 #include "ass_utils.h"
 #include "ass_rasterizer.h"
 #include <assert.h>
index bd378fbaedff0120a3cfc41aaad44d7a2b7673b2..ac865453bf0873bbb9f60a72c813afabcfa3467a 100644 (file)
@@ -16,6 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "config.h"
+
 #include "ass_utils.h"
 #include "ass_rasterizer.h"
 #include <assert.h>
index b27cd53b2253c82d2d8401c7f9ac19e00ba2dabf..0d1dfc2502267025f10f60edda83ccb4200f271b 100644 (file)
@@ -19,8 +19,6 @@
 #ifndef LIBASS_SHAPER_H
 #define LIBASS_SHAPER_H
 
-#include "config.h"
-
 typedef struct ass_shaper ASS_Shaper;
 
 #include <fribidi.h>
index bb755a6104e1f625f0262361f3d68fe6a3ba9f66..dfde674baaa2da062be0dde7d4dc902568d5104e 100644 (file)
@@ -16,6 +16,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include "config.h"
+
 #include "ass_string.h"
 
 static const char lowertab[] = {
index 8944804b4cb16a798175330902be1544770b2eaf..7cda708df955e9eb70d0dcb54c5163e2f9afee01 100644 (file)
@@ -16,8 +16,6 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
-
 #include <stdlib.h>
 
 #ifndef ASS_STRING_H
index 566f6e4abd020b9865185abbbae9e9823a7e4dea..0d5f752ca02ac3ed30022c78c32eac3de1b27b18 100644 (file)
@@ -12,6 +12,8 @@
  *
  */
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <errno.h>
 #include "ass_string.h"
index 8295d4e09017e56fbeeccf0ed7c993f2ea136c1d..270d33033be57e1650ca166d0b339ce1be900a8a 100644 (file)
@@ -28,8 +28,6 @@
 #include <errno.h>
 #include <math.h>
 
-#include "config.h"
-
 #ifdef CONFIG_ENCA
 #include <enca.h>
 #endif