Ensure all *.[ch] files include config.h
Including config.h is necessary to get e.g. the _GNU_SOURCE define and any other definitions that autoconf declares. Hence, config.h needs to be included as the first header in each file. This is done either via: 1. Including "common.h" (i3bar) 2. Including "libi3.h" 3. Including "all.h" (i3) 4. Including <config.h> directly Also remove now-unused I3__FILE__, add copyright/license statement where missing and switch include/all.h to #pragma once.
This commit is contained in:
i3-config-wizard
i3-dump-log
i3-input
i3-msg
i3-nagbar
i3bar
include
src
include
all.hassignments.hbindings.hclick.hcmdparse.hcommands.hcommands_parser.hcon.hconfig_directives.hconfig_parser.hconfiguration.hdata.hdebug.hdisplay_version.hewmh.hfake_outputs.hfloating.hhandlers.hi3.hipc.hkey_press.hlibi3.hload_layout.hlog.hmain.hmanage.hmatch.hmove.houtput.hrandr.hregex.hrender.hresize.hrestore_layout.hscratchpad.hshmlog.hsighandler.hstartup.htree.hutil.hwindow.hworkspace.hx.hxcb.hxcursor.hxinerama.hyajl_utils.h
libi3
dpi.cdraw_util.cfake_configure_notify.cfont.cformat_placeholders.cget_colorpixel.cget_config_path.cget_exe_path.cget_mod_mask.cget_process_filename.cipc_connect.cipc_recv_message.cipc_send_message.cis_debug_build.cmkdirp.cresolve_tilde.croot_atom_contents.csafewrappers.cstring.cstrndup.cucs2_conversion.c
src
assignments.cclick.ccommands.ccommands_parser.ccon.cconfig.cconfig_directives.cconfig_parser.cdebug.cdisplay_version.cewmh.cfake_outputs.cfloating.chandlers.cipc.ckey_press.cload_layout.clog.cmain.cmanage.cmatch.cmove.coutput.crandr.cregex.crender.cresize.crestore_layout.cscratchpad.csighandler.cstartup.ctree.cutil.cversion.cwindow.cworkspace.cx.cxcb.cxcursor.cxinerama.c
@ -9,4 +9,6 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <config.h>
|
||||
|
||||
char *parse_cmd(const char *new);
|
||||
|
Reference in New Issue
Block a user