This commit is contained in:
TheK0tYaRa 2025-06-15 00:02:51 +03:00
commit 6848796fb3
4 changed files with 33 additions and 0 deletions

4
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild",
"C_Cpp.default.compileCommands": "/home/thek0tyara/Documents/projects/c/builddir/compile_commands.json"
}

19
meson.build Normal file
View file

@ -0,0 +1,19 @@
project(
'thread_tree',
'C',
version: '0.0.1',
default_options: [ 'warning_level=3' ]
)
cmd = run_command('/usr/bin/find', 'src', '-name', '*.c')
c_files = cmd.stdout().splitlines()
cmd = run_command('/usr/bin/find', 'src', '-name', '*.h')
h_files = cmd.stdout().splitlines()
executable(
'thread_tree',
sources: [
c_files,
h_files
]
)

5
src/main.c Normal file
View file

@ -0,0 +1,5 @@
#include "main.h"
int main(int argc, char *argv[]) {
return 0;
}

5
src/main.h Normal file
View file

@ -0,0 +1,5 @@
#ifndef __main_h__
#define __main_h__
#include <threads.h>
#endif