Codebase list i3-gaps / f354f53
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. Michael Stapelberg 7 years ago
134 changed file(s) with 230 addition(s) and 149 deletion(s). Raw diff Collapse all Expand all
77 * keysyms.
88 *
99 */
10 #include <config.h>
11
1012 #if defined(__FreeBSD__)
1113 #include <sys/param.h>
1214 #endif
66 * i3-dump-log/main.c: Dumps the i3 SHM log to stdout.
77 *
88 */
9 #include <config.h>
10
911 #include <stdio.h>
1012 #include <stdbool.h>
1113 #include <sys/types.h>
00 #pragma once
1
2 #include <config.h>
13
24 #include <err.h>
35
77 * to i3.
88 *
99 */
10 #include "libi3.h"
11
1012 #include <stdio.h>
1113 #include <sys/types.h>
1214 #include <stdlib.h>
2931 #include "keysym2ucs.h"
3032
3133 #include "i3-input.h"
32
33 #include "libi3.h"
3434
3535 /* IPC format string. %s will be replaced with what the user entered, then
3636 * the command will be sent to i3 */
1313 * Additionally, it’s even useful sometimes :-).
1414 *
1515 */
16 #include "libi3.h"
17
1618 #include <stdio.h>
1719 #include <stdbool.h>
1820 #include <sys/types.h>
3335 #include <xcb/xcb.h>
3436 #include <xcb/xcb_aux.h>
3537
36 #include "libi3.h"
3738 #include <i3/ipc.h>
3839
3940 static char *socket_path;
00 #pragma once
1
2 #include <config.h>
13
24 #include <err.h>
35
77 * when the user has an error in their configuration file.
88 *
99 */
10 #include "libi3.h"
11
1012 #include <stdio.h>
1113 #include <sys/types.h>
1214 #include <sys/stat.h>
2931 #include <xcb/randr.h>
3032 #include <xcb/xcb_cursor.h>
3133
32 #include "libi3.h"
3334 #include "i3-nagbar.h"
3435
3536 /** This is the equivalent of XC_left_ptr. I’m not sure why xcb doesn’t have a
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <stdbool.h>
1214
55 *
66 */
77 #pragma once
8
9 #include <config.h>
810
911 #include <stdbool.h>
1012 #include <xcb/xcb.h>
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include "common.h"
1214
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <stdint.h>
1214
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <xcb/xproto.h>
1214
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <xcb/xcb.h>
1214 #include <cairo/cairo-xcb.h>
99 */
1010 #pragma once
1111
12 #include <config.h>
13
1214 #include <stdint.h>
1315
1416 /**
55 *
66 */
77 #pragma once
8
9 #include <config.h>
810
911 #include "queue.h"
1012
88 */
99 #pragma once
1010
11 #include "common.h"
12
1113 #include <xcb/xproto.h>
12
13 #include "common.h"
1414
1515 typedef struct i3_ws i3_ws;
1616
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <stdint.h>
1214 //#include "outputs.h"
66 * child.c: Getting input for the statusline
77 *
88 */
9 #include "common.h"
10
911 #include <stdlib.h>
1012 #include <unistd.h>
1113 #include <sys/types.h>
2325 #include <yajl/yajl_version.h>
2426 #include <yajl/yajl_gen.h>
2527 #include <paths.h>
26
27 #include "common.h"
2828
2929 /* Global variables for child_*() */
3030 i3bar_child child;
66 * config.c: Parses the configuration (received from i3).
77 *
88 */
9 #include "common.h"
10
911 #include <string.h>
1012 #include <stdlib.h>
1113 #include <stdio.h>
1517 #include <yajl/yajl_version.h>
1618
1719 #include <X11/Xlib.h>
18
19 #include "common.h"
2020
2121 static char *cur_key;
2222 static bool parsing_bindings;
66 * ipc.c: Communicating with i3
77 *
88 */
9 #include "common.h"
10
911 #include <stdlib.h>
1012 #include <stdio.h>
1113 #include <unistd.h>
1921 #ifdef I3_ASAN_ENABLED
2022 #include <sanitizer/lsan_interface.h>
2123 #endif
22
23 #include "common.h"
2424
2525 ev_io *i3_connection;
2626
44 * © 2010 Axel Wagner and contributors (see also: LICENSE)
55 *
66 */
7 #include "common.h"
8
79 #include <stdio.h>
810 #include <i3/ipc.h>
911 #include <string.h>
1315 #include <ev.h>
1416 #include <getopt.h>
1517 #include <glob.h>
16
17 #include "common.h"
1818
1919 /*
2020 * Having verboselog(), errorlog() and debuglog() is necessary when using libi3.
66 * mode.c: Handle mode event and show current binding mode in the bar
77 *
88 */
9 #include "common.h"
10
911 #include <string.h>
1012 #include <stdlib.h>
1113 #include <stdio.h>
1214 #include <errno.h>
1315 #include <yajl/yajl_parse.h>
1416 #include <yajl/yajl_version.h>
15
16 #include "common.h"
1717
1818 /* A datatype to pass through the callbacks to save the state */
1919 struct mode_json_params {
66 * outputs.c: Maintaining the outputs list
77 *
88 */
9 #include "common.h"
10
911 #include <string.h>
1012 #include <stdlib.h>
1113 #include <stdio.h>
1315 #include <i3/ipc.h>
1416 #include <yajl/yajl_parse.h>
1517 #include <yajl/yajl_version.h>
16
17 #include "common.h"
1818
1919 /* A datatype to pass through the callbacks to save the state */
2020 struct outputs_json_params {
77 * protocol version and features.
88 *
99 */
10 #include "common.h"
11
1012 #include <stdlib.h>
1113 #include <unistd.h>
1214 #include <sys/types.h>
2325 #include <yajl/yajl_common.h>
2426 #include <yajl/yajl_parse.h>
2527 #include <yajl/yajl_version.h>
26
27 #include "common.h"
2828
2929 static enum {
3030 KEY_VERSION,
66 * workspaces.c: Maintaining the workspace lists
77 *
88 */
9 #include "common.h"
10
911 #include <string.h>
1012 #include <stdlib.h>
1113 #include <stdio.h>
1214 #include <errno.h>
1315 #include <yajl/yajl_parse.h>
1416 #include <yajl/yajl_version.h>
15
16 #include "common.h"
1717
1818 /* A datatype to pass through the callbacks to save the state */
1919 struct workspaces_json_params {
66 * xcb.c: Communicating with X
77 *
88 */
9 #include "common.h"
10
911 #include <xcb/xcb.h>
1012 #include <xcb/xkb.h>
1113 #include <xcb/xproto.h>
3133 #include <sanitizer/lsan_interface.h>
3234 #endif
3335
34 #include "common.h"
3536 #include "libi3.h"
3637
3738 /** This is the equivalent of XC_left_ptr. I’m not sure why xcb doesn’t have a
99 * compile-time.
1010 *
1111 */
12 #ifndef I3_ALL_H
13 #define I3_ALL_H
12 #pragma once
13
14 #include <config.h>
1415
1516 #include <assert.h>
1617 #include <stdbool.h>
8081 #include "display_version.h"
8182 #include "restore_layout.h"
8283 #include "main.h"
83
84 #endif
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Checks the list of assignments for the given window and runs all matching
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 extern pid_t command_error_nagbar_pid;
1214
88 */
99 #pragma once
1010
11 #include <config.h>
12
1113 /**
1214 * The button press X callback. This function determines whether the floating
1315 * modifier is pressed and where the user clicked (decoration, border, inside
88 */
99 #pragma once
1010
11 #include <config.h>
12
1113 char *parse_cmd(const char *new);
88 */
99 #pragma once
1010
11 #include <config.h>
12
1113 #include "commands_parser.h"
1214
1315 /** The beginning of the prototype for every cmd_ function. */
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <yajl/yajl_gen.h>
1214
99 *
1010 */
1111 #pragma once
12
13 #include <config.h>
1214
1315 /**
1416 * Create a new container (and attach it to the given parent, if not NULL).
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include "config_parser.h"
1214
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <yajl/yajl_gen.h>
1214
1111 */
1212 #pragma once
1313
14 #include "libi3.h"
15
1416 #include <stdbool.h>
1517 #include "queue.h"
1618 #include "i3.h"
17 #include "libi3.h"
1819
1920 typedef struct Config Config;
2021 typedef struct Barconfig Barconfig;
77 *
88 */
99 #pragma once
10
11 #include "libi3.h"
1012
1113 #define SN_API_NOT_YET_FROZEN 1
1214 #include <libsn/sn-launcher.h>
1618 #include <pcre.h>
1719 #include <sys/time.h>
1820
19 #include "libi3.h"
2021 #include "queue.h"
2122
2223 /*
99 */
1010 #pragma once
1111
12 #include <config.h>
13
1214 int handle_event(void *ignored, xcb_connection_t *c, xcb_generic_event_t *e);
77 * i3 --moreversion.
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Connects to i3 to find out the currently running version. Useful since it
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Updates _NET_CURRENT_DESKTOP with the current desktop number.
99 */
1010 #pragma once
1111
12 #include <config.h>
13
1214 /**
1315 * Creates outputs according to the given specification.
1416 * The specification must be in the format wxh+x+y, for example 1024x768+0+0,
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include "tree.h"
1214
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 #include <xcb/randr.h>
1315
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <sys/time.h>
1214 #include <sys/resource.h>
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <ev.h>
1214 #include <stdbool.h>
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * There was a key press. We compare this key code with our bindings table and pass
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 #include <stdbool.h>
1315 #include <stdarg.h>
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 typedef enum {
1315 // We could not determine the content of the JSON file. This typically
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <stdarg.h>
1214 #include <stdbool.h>
88 */
99 #pragma once
1010
11 #include <config.h>
12
1113 /**
1214 * Enable or disable the main X11 event handling function.
1315 * This is used by drag_pointer() which has its own, modal event handler, which
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include "data.h"
1214
1111 *
1212 */
1313 #pragma once
14
15 #include <config.h>
1416
1517 /*
1618 * Initializes the Match data structure. This function is necessary because the
88 */
99 #pragma once
1010
11 #include <config.h>
12
1113 /**
1214 * Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
1315 * TOK_UP, TOK_DOWN from cmdparse.l)
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Returns the output container below the given output container.
99 *
1010 */
1111 #pragma once
12
13 #include <config.h>
1214
1315 #include "data.h"
1416 #include <xcb/randr.h>
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Creates a new 'regex' struct containing the given pattern and a PCRE
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 /* This is used to keep a state to pass around when rendering a con in render_con(). */
1315 typedef struct render_params {
88 */
99 #pragma once
1010
11 #include <config.h>
12
1113 bool resize_find_tiling_participants(Con **current, Con **other, direction_t direction);
1214
1315 int resize_graphical_handler(Con *first, Con *second, orientation_t orientation, const xcb_button_press_event_t *event);
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 /**
1315 * Opens a separate connection to X11 for placeholder windows when restoring
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Moves the specified window to the __i3_scratch workspace, making it floating
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 #include <stdint.h>
1315 #if !defined(__OpenBSD__)
1010 */
1111 #pragma once
1212
13 #include <config.h>
14
1315 /**
1416 * Setup signal handlers to safely handle SIGSEGV and SIGFPE
1517 *
1010 *
1111 */
1212 #pragma once
13
14 #include <config.h>
1315
1416 #define SN_API_NOT_YET_FROZEN 1
1517 #include <libsn/sn-monitor.h>
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 extern Con *croot;
1214 /* TODO: i am not sure yet how much access to the focused container should
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 #include <err.h>
1315
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 /**
1214 * Frees an i3Window and all its members.
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 #include "data.h"
1315 #include "tree.h"
88 *
99 */
1010 #pragma once
11
12 #include <config.h>
1113
1214 /** Stores the X11 window ID of the currently focused window */
1315 extern xcb_window_t focused_id;
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include "data.h"
1214 #include "xcursor.h"
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <xcb/xcb_cursor.h>
1214
1010 */
1111 #pragma once
1212
13 #include <config.h>
14
1315 #include "data.h"
1416
1517 /**
77 *
88 */
99 #pragma once
10
11 #include <config.h>
1012
1113 #include <yajl/yajl_gen.h>
1214 #include <yajl/yajl_parse.h>
55 *
66 */
77 #include "libi3.h"
8
89 #include <math.h>
910 #include <stdlib.h>
1011 #include <xcb/xcb_xrm.h>
55 * draw.c: Utility for drawing.
66 *
77 */
8 #include "libi3.h"
9
810 #include <stdlib.h>
911 #include <err.h>
1012 #include <string.h>
1113 #include <xcb/xcb.h>
1214 #include <xcb/xcb_aux.h>
1315 #include <cairo/cairo-xcb.h>
14
15 #include "libi3.h"
1616
1717 /* The default visual_type to use if none is specified when creating the surface. Must be defined globally. */
1818 xcb_visualtype_t *visual_type;
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <stdlib.h>
810 #include <stdbool.h>
911
1012 #include <xcb/xcb.h>
1113 #include <xcb/xproto.h>
12
13 #include "libi3.h"
1414
1515 /*
1616 * Generates a configure_notify event and sends it to the given window
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <assert.h>
810 #include <stdint.h>
911 #include <stdlib.h>
1315
1416 #include <cairo/cairo-xcb.h>
1517 #include <pango/pangocairo.h>
16
17 #include "libi3.h"
1818
1919 static const i3Font *savedFont = NULL;
2020
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <stdlib.h>
810 #include <stdint.h>
911 #include <string.h>
10
11 #include "libi3.h"
1212
1313 #ifndef STARTS_WITH
1414 #define STARTS_WITH(string, needle) (strncasecmp((string), (needle), strlen((needle))) == 0)
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <stdlib.h>
810 #include <stdint.h>
911 #include <string.h>
1012
1113 #include "queue.h"
12 #include "libi3.h"
13
1414 struct Colorpixel {
1515 char hex[8];
1616 uint32_t pixel;
55 *
66 */
77 #include "libi3.h"
8
89 #include <stdlib.h>
910 #include <string.h>
1011 #include <sys/stat.h>
0 /*
1 * vim:ts=4:sw=4:expandtab
2 *
3 * i3 - an improved dynamic tiling window manager
4 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
5 *
6 */
7 #include "libi3.h"
8
09 #include <unistd.h>
110 #include <string.h>
211 #include <stdio.h>
312 #include <limits.h>
413 #include <stdlib.h>
514 #include <errno.h>
6
7 #include "libi3.h"
815
916 /*
1017 * This function returns the absolute path to the executable it is running in.
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <stdint.h>
810 #include <stdlib.h>
911 #include <xcb/xcb.h>
1012 #include <xcb/xcb_keysyms.h>
11
12 #include "libi3.h"
1313
1414 /*
1515 * All-in-one function which returns the modifier mask (XCB_MOD_MASK_*) for the
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <assert.h>
810 #include <stdint.h>
911 #include <stdlib.h>
1517 #include <pwd.h>
1618 #include <unistd.h>
1719 #include <err.h>
18
19 #include "libi3.h"
2020
2121 /*
2222 * Returns the name of a temporary file with the specified prefix.
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <sys/types.h>
810 #include <sys/socket.h>
911 #include <sys/un.h>
1214 #include <stdlib.h>
1315 #include <unistd.h>
1416 #include <fcntl.h>
15
16 #include "libi3.h"
1717
1818 /*
1919 * Connects to the i3 IPC socket and returns the file descriptor for the
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <string.h>
810 #include <stdlib.h>
911 #include <stdio.h>
1214 #include <errno.h>
1315
1416 #include <i3/ipc.h>
15
16 #include "libi3.h"
1717
1818 /*
1919 * Reads a message from the given socket file descriptor and stores its length
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <string.h>
810 #include <stdlib.h>
911 #include <unistd.h>
1214 #include <errno.h>
1315
1416 #include <i3/ipc.h>
15
16 #include "libi3.h"
1717
1818 /*
1919 * Formats a message (payload) of the given size and type and sends it to i3 via
0 /*
1 * vim:ts=4:sw=4:expandtab
2 *
3 * i3 - an improved dynamic tiling window manager
4 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
5 *
6 */
7 #include "libi3.h"
8
09 #include <string.h>
110 #include <stdbool.h>
211
0 /*
1 * vim:ts=4:sw=4:expandtab
2 *
3 * i3 - an improved dynamic tiling window manager
4 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
5 *
6 */
07 #include "libi3.h"
8
19 #include <errno.h>
210 #include <stdlib.h>
311 #include <string.h>
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
78
8 #include "libi3.h"
99 #include <err.h>
1010 #include <glob.h>
1111 #include <stdlib.h>
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <stdio.h>
810 #include <string.h>
911 #include <stdbool.h>
1315
1416 #include <xcb/xcb.h>
1517 #include <xcb/xcb_aux.h>
16
17 #include "libi3.h"
1818
1919 /*
2020 * Try to get the contents of the given atom (for example I3_SOCKET_PATH) from
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <string.h>
810 #include <stdlib.h>
911 #include <stdarg.h>
1113 #include <stdio.h>
1214 #include <err.h>
1315 #include <errno.h>
14
15 #include "libi3.h"
1616
1717 /*
1818 * The s* functions (safe) are wrappers around malloc, strdup, …, which exits if one of
88 * others want UTF-8 (Pango).
99 *
1010 */
11 #include "libi3.h"
1112
1213 #include <stdlib.h>
1314 #include <string.h>
1415
1516 #include <glib.h>
16
17 #include "libi3.h"
1817
1918 struct _i3String {
2019 char *utf8;
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <sys/types.h>
810 #include <string.h>
9
10 #include "libi3.h"
1111
1212 #if defined(__APPLE__)
1313
44 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
55 *
66 */
7 #include "libi3.h"
8
79 #include <err.h>
810 #include <errno.h>
911 #include <iconv.h>
1012 #include <stdlib.h>
1113 #include <string.h>
12
13 #include "libi3.h"
1414
1515 static iconv_t utf8_conversion_descriptor = (iconv_t)-1;
1616 static iconv_t ucs2_conversion_descriptor = (iconv_t)-1;
0 #undef I3__FILE__
1 #define I3__FILE__ "assignments.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "click.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "commands.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
86 * commands.c: all command functions (see commands_parser.c)
97 *
108 */
9 #include "all.h"
10
1111 #include <stdint.h>
1212 #include <float.h>
1313 #include <stdarg.h>
1616 #include <sanitizer/lsan_interface.h>
1717 #endif
1818
19 #include "all.h"
2019 #include "shmlog.h"
2120
2221 // Macros to make the YAJL API a bit easier to use.
0 #undef I3__FILE__
1 #define I3__FILE__ "commands_parser.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
2422 * instead of actually calling any function).
2523 *
2624 */
25 #include "all.h"
26
2727 #include <stdio.h>
2828 #include <stdlib.h>
2929 #include <string.h>
3030 #include <unistd.h>
3131 #include <stdbool.h>
3232 #include <stdint.h>
33
34 #include "all.h"
3533
3634 // Macros to make the YAJL API a bit easier to use.
3735 #define y(x, ...) (command_output.json_gen != NULL ? yajl_gen_##x(command_output.json_gen, ##__VA_ARGS__) : 0)
0 #undef I3__FILE__
1 #define I3__FILE__ "con.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
119 *
1210 */
1311 #include "all.h"
12
1413 #include "yajl_utils.h"
1514
1615 static void con_on_remove_child(Con *con);
0 #undef I3__FILE__
1 #define I3__FILE__ "config.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
108 *
119 */
1210 #include "all.h"
11
1312 #include <xkbcommon/xkbcommon.h>
1413
1514 char *current_configpath = NULL;
0 #undef I3__FILE__
1 #define I3__FILE__ "config_directives.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
86 * config_directives.c: all config storing functions (see config_parser.c)
97 *
108 */
9 #include "all.h"
10
1111 #include <float.h>
1212 #include <stdarg.h>
13
14 #include "all.h"
1513
1614 /*******************************************************************************
1715 * Criteria functions.
0 #undef I3__FILE__
1 #define I3__FILE__ "config_parser.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
2422 * nearest <error> token.
2523 *
2624 */
25 #include "all.h"
26
2727 #include <stdio.h>
2828 #include <stdlib.h>
2929 #include <string.h>
3535 #include <sys/stat.h>
3636 #include <fcntl.h>
3737 #include <xcb/xcb_xrm.h>
38
39 #include "all.h"
4038
4139 // Macros to make the YAJL API a bit easier to use.
4240 #define y(x, ...) yajl_gen_##x(command_output.json_gen, ##__VA_ARGS__)
0 #undef I3__FILE__
1 #define I3__FILE__ "debug.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
97 * events. This code is from xcb-util.
108 *
119 */
10 #include <config.h>
11
1212 #include <stdio.h>
1313 #include <xcb/xcb.h>
1414
0 #undef I3__FILE__
1 #define I3__FILE__ "key_press.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
97 * i3 --moreversion.
108 *
119 */
10 #include "all.h"
11
1212 #include <sys/types.h>
1313 #include <sys/stat.h>
1414 #include <sys/wait.h>
1616 #include <sys/un.h>
1717 #include <fcntl.h>
1818 #include <time.h>
19 #include "all.h"
2019
2120 static bool human_readable_key, loaded_config_file_name_key;
2221 static char *human_readable_version, *loaded_config_file_name;
0 #undef I3__FILE__
1 #define I3__FILE__ "ewmh.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "fake_outputs.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "floating.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "handlers.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "ipc.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
97 *
108 */
119 #include "all.h"
10
1211 #include "yajl_utils.h"
1312
1413 #include <stdint.h>
0 #undef I3__FILE__
1 #define I3__FILE__ "key_press.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "load_layout.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "log.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
86 * log.c: Logging functions.
97 *
108 */
9 #include <config.h>
10
1111 #include <stdarg.h>
1212 #include <stdio.h>
1313 #include <string.h>
0 #undef I3__FILE__
1 #define I3__FILE__ "main.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
86 * main.c: Initialization, main loop
97 *
108 */
9 #include "all.h"
10
1111 #include <ev.h>
1212 #include <fcntl.h>
1313 #include <sys/types.h>
1818 #include <sys/mman.h>
1919 #include <sys/stat.h>
2020 #include <libgen.h>
21 #include "all.h"
2221 #include "shmlog.h"
2322
2423 #include "sd-daemon.h"
0 #undef I3__FILE__
1 #define I3__FILE__ "manage.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
97 *
108 */
119 #include "all.h"
10
1211 #include "yajl_utils.h"
1312
1413 #include <yajl/yajl_gen.h>
0 #undef I3__FILE__
1 #define I3__FILE__ "match.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "move.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "output.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "randr.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "regex.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "render.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "resize.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "restore_layout.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "scratchpad.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "sighandler.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "startup.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
1210 *
1311 */
1412 #include "all.h"
13
1514 #include "sd-daemon.h"
1615
1716 #include <sys/types.h>
0 #undef I3__FILE__
1 #define I3__FILE__ "tree.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "util.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
77 * and used dynamically without recompiling every object file.
88 *
99 */
10 #include <config.h>
11
1012 const char *i3_version = I3_VERSION;
0 #undef I3__FILE__
1 #define I3__FILE__ "window.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "workspace.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "x.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "xcb.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
0 #undef I3__FILE__
1 #define I3__FILE__ "xcursor.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *
86 * xcursor.c: xcursor support for themed cursors.
97 *
108 */
9 #include <config.h>
10
1111 #include <assert.h>
1212 #include <xcb/xcb_cursor.h>
1313
0 #undef I3__FILE__
1 #define I3__FILE__ "xinerama.c"
20 /*
31 * vim:ts=4:sw=4:expandtab
42 *