editor config updates

This commit is contained in:
Alexander Popov 2023-08-16 22:01:02 +03:00
parent 25aef9000b
commit d4e2da3838
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
4 changed files with 20 additions and 20 deletions

View File

@ -21,7 +21,7 @@ indent_style = space
indent_size = 4
# Crystal
[{*.cr,shard.yml}]
[{*.cr,shards.yml}]
indent_style = space
indent_size = 2
@ -80,10 +80,10 @@ indent_size = 4
indent_style = tab
indent_size = 4
[~/Gambas/*]
[snipplets/code/Gambas/*]
indent_size = 2
[~/Solar2D/**]
[snipplets/projects/Solar2D**]
indent_style = unset
indent_size = unset
end_of_line = unset

View File

@ -1,17 +1,17 @@
#!/bin/bash
# TCP
#coproc nc -l localhost 3000
# coproc nc -l localhost 3000
# UnixSocket
coproc nc -l -U ./app.sock
while read -r cmd; do
case $cmd in
d) date ;;
q) break ;;
*) echo 'Try again?'
esac
case $cmd in
d) date ;;
q) break ;;
*) echo 'Try again?'
esac
done <&"${COPROC[0]}" >&"${COPROC[1]}"
kill "$COPROC_PID"

View File

@ -6,5 +6,5 @@ files=(
for file in "${files[@]}"
do
clang-format -i --style=LLVM --sort-includes=false $file
clang-format -i --style=LLVM --sort-includes=false $file
done

View File

@ -8,24 +8,24 @@
int g = 0;
void *my_thread(void *vargp) {
int *id = (int *)vargp;
int *id = (int *)vargp;
static int s = 0;
static int s = 0;
++s;
++g;
++s;
++g;
printf("Thread ID: %d, Static: %d, Global: %d\n", *id, ++s, ++g);
printf("Thread ID: %d, Static: %d, Global: %d\n", *id, ++s, ++g);
}
int main() {
pthread_t tid;
pthread_t tid;
int i;
for (i = 0; i < 3; i++)
int i;
for (i = 0; i < 3; i++)
pthread_create(&tid, NULL, my_thread, (void *)&tid);
pthread_exit(NULL);
pthread_exit(NULL);
return 0;
return 0;
}