Include config.h automatically

There are a few files missing #include <config.h>.

That is bad since it means those files don't get debug tracing.

This commit eliminates the pitfall by making sure the file is
included implicitly
This commit is contained in:
Ray Strode 2023-12-04 14:02:51 -05:00
parent 1b43dd504f
commit 54fb7e1d56
64 changed files with 1 additions and 63 deletions

View file

@ -62,6 +62,7 @@ endif
# Global C flags
add_project_arguments([
'-D_GNU_SOURCE',
'-include', 'config.h',
],
language: 'c'
)

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-boot-client.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -20,7 +20,6 @@
* Written by: Ray Strode <rstrode@redhat.com>
* Soeren Sandmann <sandmann@redhat.com>
*/
#include "config.h"
#include "ply-boot-splash.h"
#include <assert.h>

View file

@ -17,7 +17,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
#include "config.h"
#include "ply-device-manager.h"
#include "ply-renderer.h"

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-keyboard.h"
#include <assert.h>

View file

@ -22,7 +22,6 @@
* Kristian Høgsberg <krh@redhat.com>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-list.h"
#include "ply-pixel-buffer.h"
#include "ply-logger.h"

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-pixel-display.h"
#include <assert.h>

View file

@ -22,7 +22,6 @@
* Kristian Høgsberg <krh@redhat.com>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-renderer.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-terminal.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-text-display.h"
#include <assert.h>

View file

@ -22,7 +22,6 @@
* Ray Strode <rstrode@redhat.com>
* Soeren Sandmann <sandmann@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <dirent.h>

View file

@ -17,7 +17,6 @@
* 02111-1307, USA.
*
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>

View file

@ -19,7 +19,6 @@
*
* Written by: William Jon McCann <jmccann@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <dirent.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Hans de Goede <hdegoede@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <stdbool.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <dirent.h>

View file

@ -25,7 +25,6 @@
* Ray Strode <rstrode@redhat.com>
* Carl D. Worth <cworth@cworth.org>
*/
#include "config.h"
#include "ply-image.h"
#include "ply-pixel-buffer.h"

View file

@ -19,7 +19,6 @@
*
* Written by: Hans de Goede <hdegoede@redhat.com>
*/
#include "config.h"
#include <stdbool.h>
#include <stdio.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-label.h"
#include <assert.h>

View file

@ -20,7 +20,6 @@
* Written by: William Jon McCann <jmccann@redhat.com>
*
*/
#include "config.h"
#include <assert.h>
#include <dirent.h>

View file

@ -21,7 +21,6 @@
* Will Woods <wwoods@redhat.com>
* Hans de Goede <hdegoede@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <dirent.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <dirent.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-array.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#include "config.h"
#include "ply-bitarray.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-buffer.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-command-parser.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-event-loop.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#include "config.h"
#include "ply-hashtable.h"
#include "ply-utils.h"
#include "ply-bitarray.h"

View file

@ -21,7 +21,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-key-file.h"
#include <assert.h>

View file

@ -21,7 +21,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-list.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-logger.h"
#include <assert.h>

View file

@ -23,7 +23,6 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>

View file

@ -23,7 +23,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-list.h"
#include "ply-rectangle.h"

View file

@ -23,7 +23,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-region.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-terminal-session.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-trigger.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include <config.h>
#include "ply-utils.h"

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <sys/stat.h>
#include <sys/types.h>

View file

@ -21,7 +21,6 @@
* Written by: Ray Strode <rstrode@redhat.com>
* Written by: Fabian Vogt <fvogt@suse.com>
*/
#include "config.h"
#include <stdio.h>
#include <stdint.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -24,7 +24,6 @@
* Ray Strode <rstrode@redhat.com>
* Hans de Goede <hdegoede@redhat.com>
*/
#include "config.h"
#include <arpa/inet.h>
#include <assert.h>

View file

@ -23,7 +23,6 @@
* Peter Jones <pjones@redhat.com>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <arpa/inet.h>
#include <assert.h>

View file

@ -23,7 +23,6 @@
* Peter Jones <pjones@redhat.com>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <arpa/inet.h>
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -21,7 +21,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -20,7 +20,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ply-hashtable.h"

View file

@ -21,7 +21,6 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ply-hashtable.h"

View file

@ -20,7 +20,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#include "config.h"
#include "ply-image.h"
#include "ply-label.h"

View file

@ -20,7 +20,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#include "config.h"
#include "ply-utils.h"
#include "script.h"

View file

@ -21,7 +21,6 @@
*/
#pragma weak ply_keyboard_get_capslock_state
#include "config.h"
#include "ply-boot-splash-plugin.h"
#include "ply-utils.h"

View file

@ -19,7 +19,6 @@
*
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#include "config.h"
#include "ply-image.h"
#include "ply-utils.h"
#include "ply-logger.h"

View file

@ -20,7 +20,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#include "config.h"
#include "script.h"
#include "script-parse.h"

View file

@ -21,7 +21,6 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ply-hashtable.h"

View file

@ -21,7 +21,6 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ply-hashtable.h"

View file

@ -20,7 +20,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>

View file

@ -21,7 +21,6 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ply-hashtable.h"

View file

@ -21,7 +21,6 @@
* Written by: Charlie Brej <cbrej@cs.man.ac.uk>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -17,7 +17,6 @@
* 02111-1307, USA.
*
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -20,7 +20,6 @@
* Written by: Adam Jackson <ajax@redhat.com>
* Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -20,7 +20,6 @@
* Written by: William Jon McCann, Hans de Goede <hdegoede@redhat.com>
*
*/
#include "config.h"
#include <assert.h>
#include <errno.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Ray Strode <rstrode@redhat.com>
*/
#include "config.h"
#include "ply-boot-server.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Colin Watson <cjwatson@ubuntu.com>
*/
#include "config.h"
#include "ply-upstart-monitor.h"
#include <assert.h>

View file

@ -19,7 +19,6 @@
*
* Written by: Colin Watson <cjwatson@ubuntu.com>
*/
#include "config.h"
#include <stdbool.h>
#include <signal.h>