Skip to content

Commit e5c995a

Browse files
committed
10100014
1 parent bdbf31b commit e5c995a

36 files changed

+884
-111
lines changed

.vscode/launch.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "gcc-10 - Build and debug active file",
8+
"name": "gcc-11 - Build and debug active file",
99
"type": "cppdbg",
1010
"request": "launch",
1111
"program": "${fileDirname}/${fileBasenameNoExtension}",
@@ -20,15 +20,10 @@
2020
"description": "Enable pretty-printing for gdb",
2121
"text": "-enable-pretty-printing",
2222
"ignoreFailures": true
23-
},
24-
{
25-
"description": "Set Disassembly Flavor to Intel",
26-
"text": "-gdb-set disassembly-flavor intel",
27-
"ignoreFailures": true
2823
}
2924
],
30-
"preLaunchTask": "C/C++: gcc-10 build active file",
31-
"miDebuggerPath": "/usr/bin/gdb"
25+
"preLaunchTask": "C/C++: gcc-11 build active file",
26+
"miDebuggerPath": "/bin/gdb"
3227
}
3328
]
3429
}

.vscode/tasks.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22
"tasks": [
33
{
44
"type": "cppbuild",
5-
"label": "C/C++: gcc-10 build active file",
6-
"command": "/usr/bin/gcc-10",
5+
"label": "C/C++: gcc-11 build active file",
6+
"command": "/usr/bin/gcc-11",
77
"args": [
88
"-fdiagnostics-color=always",
99
"-g",
1010
"${file}",
11-
"/home/rdwn/Documents/Clocker/src/components/listener.c",
12-
"/home/rdwn/Documents/Clocker/src/components/timer.c",
13-
"/home/rdwn/Documents/Clocker/src/components/time_handler.c",
14-
"/home/rdwn/Documents/Clocker/src/components/mutexed.c",
15-
"/home/rdwn/Documents/Clocker/src/components/update_checker.c",
11+
"/home/rdwn/Documents/projs/Clocker/src/components/listener.c",
12+
"/home/rdwn/Documents/projs/Clocker/src/components/timer.c",
13+
"/home/rdwn/Documents/projs/Clocker/src/components/time_handler.c",
14+
"/home/rdwn/Documents/projs/Clocker/src/components/mutexed.c",
15+
"/home/rdwn/Documents/projs/Clocker/src/components/update_checker.c",
16+
"/home/rdwn/Documents/projs/Clocker/src/components/sig_handler.c",
17+
"/home/rdwn/Documents/projs/Clocker/src/components/cmd.c",
1618
"-o",
1719
"${fileDirname}/${fileBasenameNoExtension}"
1820
],

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<!--
2+
Copyright (C) 2021 rdwn
3+
4+
This file is part of Clocker.
5+
6+
Clocker is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
Clocker is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with Clocker. If not, see <http://www.gnu.org/licenses/>.
18+
-->
19+
120
### Clocker
221
#### A useful time calculator!
322
this app is created by me for my own usage. but you also if have any need or was useful, can use it.

clocker.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0-beta.1
1+
0.1-beta.0

common/info.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (C) 2021 root
2+
//
3+
// This file is part of Clocker.
4+
//
5+
// Clocker is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Clocker is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Clocker. If not, see <http://www.gnu.org/licenses/>.
17+
18+
#ifndef COMMON_INFO_H
19+
#define COMMON_INFO_H
20+
21+
#include "../includes/common/inc.h"
22+
23+
Str clocker_banner = COLOR_TRANSPARENT"\n"\
24+
" █████████ ████ █████\n" \
25+
" ███░░░░░███░░███ ░░███\n" \
26+
" ███ ░░░ ░███ ██████ ██████ ░███ █████ ██████ ████████\n" \
27+
"░███ ░███ ███░░███ ███░░███ ░███░░███ ███░░███░░███░░███\n" \
28+
"░███ ░███ ░███ ░███░███ ░░░ ░██████░ ░███████ ░███ ░░░\n" \
29+
"░░███ ███ ░███ ░███ ░███░███ ███ ░███░░███ ░███░░░ ░███\n" \
30+
" ░░█████████ █████░░██████ ░░██████ ████ █████░░██████ █████\n" \
31+
" ░░░░░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░░░░\n"COLOR_RESET;
32+
33+
#endif // COMMON_INFO_H

headers/cmd.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (C) 2021 root
2+
//
3+
// This file is part of Clocker.
4+
//
5+
// Clocker is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Clocker is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Clocker. If not, see <http://www.gnu.org/licenses/>.
17+
18+
#ifndef HEADERS_CMD_H
19+
#define HEADERS_CMD_H
20+
21+
#include "../includes/common/inc.h"
22+
23+
Hndl cmd_run(Hndl state);
24+
25+
#endif // HEADERS_CMD_H

headers/env.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (C) 2021 rdwn
2+
//
3+
// This file is part of Clocker.
4+
//
5+
// Clocker is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Clocker is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Clocker. If not, see <http://www.gnu.org/licenses/>.
17+
118
#ifndef HEADERS_ENV_H
219
#define HEADERS_ENV_H
320

headers/listener.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (C) 2021 rdwn
2+
//
3+
// This file is part of Clocker.
4+
//
5+
// Clocker is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Clocker is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Clocker. If not, see <http://www.gnu.org/licenses/>.
17+
118
#ifndef HEADERS_LISTENER_H
219
#define HEADERS_LISTENER_H
320

headers/mutexed.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (C) 2021 rdwn
2+
//
3+
// This file is part of Clocker.
4+
//
5+
// Clocker is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Clocker is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Clocker. If not, see <http://www.gnu.org/licenses/>.
17+
118
#ifndef HEDARS_MUTEX_H
219
#define HEDARS_MUTEX_H
320

headers/sig_handler.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (C) 2021 rdwn
2+
//
3+
// This file is part of Clocker.
4+
//
5+
// Clocker is free software: you can redistribute it and/or modify
6+
// it under the terms of the GNU General Public License as published by
7+
// the Free Software Foundation, either version 3 of the License, or
8+
// (at your option) any later version.
9+
//
10+
// Clocker is distributed in the hope that it will be useful,
11+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
// GNU General Public License for more details.
14+
//
15+
// You should have received a copy of the GNU General Public License
16+
// along with Clocker. If not, see <http://www.gnu.org/licenses/>.
17+
18+
#ifndef HEADERS_SIG_HANDLER_H
19+
#define HEADERS_SIG_HANDLER_H
20+
21+
#include <signal.h>
22+
#include "../includes/common/inc.h"
23+
24+
typedef sig_t Sig;
25+
26+
Sig sig_handler(Int32 signal);
27+
28+
#endif // HEADERS_SIG_HANDLER_H

0 commit comments

Comments
 (0)