ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1// Auto-generated version header - DO NOT EDIT
2// Generated by CMake from version.h.in
3// Supports VERSION env var override (e.g., from Coolify build args)
4
5#pragma once
6
7#define ASCII_CHAT_VERSION_MAJOR 0
8#define ASCII_CHAT_VERSION_MINOR 11
9#define ASCII_CHAT_VERSION_PATCH 33
10#define ASCII_CHAT_VERSION_STRING "0.11.33"
11#define ASCII_CHAT_GIT_VERSION "dev-251+gf082a3bac"
12#define ASCII_CHAT_GIT_COMMIT_HASH "f082a3bac"
13#define ASCII_CHAT_GIT_IS_DIRTY false
14#define ASCII_CHAT_BUILD_TYPE "Release"
15#define ASCII_CHAT_OS "Linux"
16#define ASCII_CHAT_BUILD_DATE "2026-10-07"
17#define ASCII_CHAT_REPO_HASH "bcbbbe9920dda295dbf96a268aa351a0ffcf1cca0455c4fec639885117d45049"
18
19// Full version string like "v0.2.0-42+gf811525" (nvim-style)
20// On clean release tags, this will be just "v0.3.0" without trailing dash
21#define ASCII_CHAT_VERSION_FULL "v" ASCII_CHAT_VERSION_STRING "-" ASCII_CHAT_GIT_VERSION
22
23// Description tagline
24#define ASCII_CHAT_DESCRIPTION_EMOJI_L "💻📸"
25#define ASCII_CHAT_DESCRIPTION_EMOJI_R "🔡💬"
26#define ASCII_CHAT_DESCRIPTION_TEXT "Video chat in your terminal"
27#define ASCII_CHAT_DESCRIPTION ASCII_CHAT_DESCRIPTION_EMOJI_L " " ASCII_CHAT_DESCRIPTION_TEXT " " ASCII_CHAT_DESCRIPTION_EMOJI_R
28
29// Full build info string used everywhere: "ascii-chat v0.2.0-... built on OS (yyyy-mm-dd, BuildType)"
30#define ASCII_CHAT_BUILD_INFO_STRING "ascii-chat " ASCII_CHAT_VERSION_FULL " built on " ASCII_CHAT_OS " (" ASCII_CHAT_BUILD_DATE ", " ASCII_CHAT_BUILD_TYPE ")"
31
32#define ASCII_CHAT_DOT_COMMENT_STRING ASCII_CHAT_BUILD_INFO_STRING "\n" ASCII_CHAT_DESCRIPTION "\n" "https://github.com/zfogg/ascii-chat"
33
34#define ASCII_CHAT_DOT_ASCII_CHAT_STRING ASCII_CHAT_DOT_COMMENT_STRING "\n" "coded with 🖤 by Zachary Fogg <me@zfo.gg>"
35
36// Runtime version accessors
37const char *ascii_chat_get_version(void);
38const char *ascii_chat_get_comment(void);
39const char *ascii_chat_get_build_info(void);
40
41// Version parsing and comparison
42#include <stdbool.h>
43
47typedef struct {
48 int major;
49 int minor;
50 int patch;
51 bool valid;
53
63semantic_version_t version_parse(const char *version_string);
64
ClangTool/LibTooling compatibility shim for stdbool.h.
Parsed semantic version structure.
Definition version.h:47
bool valid
True if parsing succeeded.
Definition version.h:51
int patch
Patch version (0 to INT_MAX)
Definition version.h:50
int major
Major version (0 to INT_MAX)
Definition version.h:48
int minor
Minor version (0 to INT_MAX)
Definition version.h:49
int version_compare(semantic_version_t a, semantic_version_t b)
Compare two semantic versions.
Definition version.c:112
const char * ascii_chat_get_build_info(void)
semantic_version_t version_parse(const char *version_string)
Parse a version string into semantic version components.
Definition version.c:49
const char * ascii_chat_get_version(void)
const char * ascii_chat_get_comment(void)