debian
docs
i3-config-wizard
i3-dump-log
i3-input
i3-msg
i3-nagbar
i3bar
include
libi3
Makefile
README
fake_configure_notify.c
font.c
get_colorpixel.c
get_mod_mask.c
ipc_connect.c
ipc_recv_message.c
ipc_send_message.c
is_debug_build.c
root_atom_contents.c
safewrappers.c
strndup.c
ucs2_conversion.c
man
parser-specs
render-tree
src
testcases
tests
yajl-fallback
.gitignore
DEPENDS
GOALS
LICENSE
Makefile
PACKAGE-MAINTAINER
RELEASE-NOTES-4.0
RELEASE-NOTES-4.0.1
RELEASE-NOTES-4.0.2
RELEASE-NOTES-4.1
RELEASE-NOTES-4.1.1
RELEASE-NOTES-4.1.2
RELEASE-NOTES-4.2
common.mk
dump-asy.pl
generate-command-parser.pl
gtk-tree-watch.pl
i3-migrate-config-to-v4
i3-sensible-editor
i3-sensible-pager
i3-sensible-terminal
i3-wsbar
i3.applications.desktop
i3.config
i3.config.keycodes
i3.welcome
i3.xsession.desktop
logo.svg
pseudo-doc.doxygen
show-download-count.sh
18 lines
591 B
C
18 lines
591 B
C
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
/*
|
|
* Returns true if this version of i3 is a debug build (anything which is not a
|
|
* release version), based on the git version number.
|
|
*
|
|
*/
|
|
bool is_debug_build() {
|
|
/* i3_version contains either something like this:
|
|
* "4.0.2 (2011-11-11, branch "release")".
|
|
* or: "4.0.2-123-gCOFFEEBABE (2011-11-11, branch "next")".
|
|
*
|
|
* So we check for the offset of the first opening round bracket to
|
|
* determine whether this is a git version or a release version. */
|
|
return ((strchr(I3_VERSION, '(') - I3_VERSION) > 10);
|
|
}
|