]> git.sur5r.net Git - i3/i3/commit
Ensure all *.[ch] files include config.h
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 11 Oct 2016 07:13:35 +0000 (09:13 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Oct 2016 19:09:24 +0000 (21:09 +0200)
commitf354f534357798eb3ba497b7143132f41ff090f6
tree6e06ce3e2387b43882130a95eb065f0a43048e62
parentc2bd10c482173b72a74f568348305ea87d3b4dd9
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.
134 files changed:
i3-config-wizard/main.c
i3-dump-log/main.c
i3-input/i3-input.h
i3-input/main.c
i3-msg/main.c
i3-nagbar/i3-nagbar.h
i3-nagbar/main.c
i3bar/include/child.h
i3bar/include/common.h
i3bar/include/configuration.h
i3bar/include/ipc.h
i3bar/include/mode.h
i3bar/include/outputs.h
i3bar/include/parse_json_header.h
i3bar/include/util.h
i3bar/include/workspaces.h
i3bar/include/xcb.h
i3bar/src/child.c
i3bar/src/config.c
i3bar/src/ipc.c
i3bar/src/main.c
i3bar/src/mode.c
i3bar/src/outputs.c
i3bar/src/parse_json_header.c
i3bar/src/workspaces.c
i3bar/src/xcb.c
include/all.h
include/assignments.h
include/bindings.h
include/click.h
include/cmdparse.h
include/commands.h
include/commands_parser.h
include/con.h
include/config_directives.h
include/config_parser.h
include/configuration.h
include/data.h
include/debug.h
include/display_version.h
include/ewmh.h
include/fake_outputs.h
include/floating.h
include/handlers.h
include/i3.h
include/ipc.h
include/key_press.h
include/libi3.h
include/load_layout.h
include/log.h
include/main.h
include/manage.h
include/match.h
include/move.h
include/output.h
include/randr.h
include/regex.h
include/render.h
include/resize.h
include/restore_layout.h
include/scratchpad.h
include/shmlog.h
include/sighandler.h
include/startup.h
include/tree.h
include/util.h
include/window.h
include/workspace.h
include/x.h
include/xcb.h
include/xcursor.h
include/xinerama.h
include/yajl_utils.h
libi3/dpi.c
libi3/draw_util.c
libi3/fake_configure_notify.c
libi3/font.c
libi3/format_placeholders.c
libi3/get_colorpixel.c
libi3/get_config_path.c
libi3/get_exe_path.c
libi3/get_mod_mask.c
libi3/get_process_filename.c
libi3/ipc_connect.c
libi3/ipc_recv_message.c
libi3/ipc_send_message.c
libi3/is_debug_build.c
libi3/mkdirp.c
libi3/resolve_tilde.c
libi3/root_atom_contents.c
libi3/safewrappers.c
libi3/string.c
libi3/strndup.c
libi3/ucs2_conversion.c
src/assignments.c
src/click.c
src/commands.c
src/commands_parser.c
src/con.c
src/config.c
src/config_directives.c
src/config_parser.c
src/debug.c
src/display_version.c
src/ewmh.c
src/fake_outputs.c
src/floating.c
src/handlers.c
src/ipc.c
src/key_press.c
src/load_layout.c
src/log.c
src/main.c
src/manage.c
src/match.c
src/move.c
src/output.c
src/randr.c
src/regex.c
src/render.c
src/resize.c
src/restore_layout.c
src/scratchpad.c
src/sighandler.c
src/startup.c
src/tree.c
src/util.c
src/version.c
src/window.c
src/workspace.c
src/x.c
src/xcb.c
src/xcursor.c
src/xinerama.c