Skip to content

Commit 08607ef

Browse files
CAppDevKit v2.1
1 parent b0243d4 commit 08607ef

File tree

7 files changed

+51
-142
lines changed

7 files changed

+51
-142
lines changed

CAppDevKitInfoLib/cappdevkitinfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#define C_LIB_NAME "CAppDevKit"
99
#define C_APP_DEV_KIT "CAppDevKit (C App Developer Kit)"
10-
#define CAppDevKit_Ver 2.0
10+
#define CAppDevKit_Ver 2.1
1111
#define CAppDevKit_RS_Date "11/24/2023"
12-
#define CAppDevKit_LAST_UPDATED_DATE "12/03/2023"
12+
#define CAppDevKit_LAST_UPDATED_DATE "1/26/2025"
1313
#define CAppDevKit_Developer_Name "@LinuxUsersLinuxMint"
1414
#define CAppDevKit_Developer_website "https://linuxuserslinuxmint.github.io"
1515

CAppDevKitLib/appvoid.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ appfunc app_exit(_i x)
5151
exit(x);
5252
}
5353

54-
/*appfunc app_exit_msg(app_msg exit_msg, _i maxtime)
54+
appfunc app_exit_msg(app_msg exit_msg, _i maxtime)
5555
{
5656
printf("%s\n", exit_msg);
5757

@@ -62,6 +62,6 @@ appfunc app_exit(_i x)
6262
app_exit(0);
6363
}
6464
}
65-
}*/
65+
}
6666

6767
#endif

FastVar/cppfastvar.hpp

-112
Original file line numberDiff line numberDiff line change
@@ -17,116 +17,4 @@ _cc en_letters[MAX_EN_LETTERS_SIZE] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', '
1717
_cc lower_tr_letters[MAX_TR_LETTERS_SIZE] = {'a', 'b', 'c', 'ç', 'd', 'e', 'f', 'g', 'ğ', 'h', 'ı', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'ö', 'p', 'r', 's', 'ş', 't', 'u', 'ü', 'v', 'y', 'z'};
1818
_cc lower_en_letters[MAX_EN_LETTERS_SIZE] = {'a' , 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'ı', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
1919

20-
// List of BIOS Color Attributes
21-
// link: https://en.wikipedia.org/wiki/BIOS_color_attributes
22-
23-
#define VGA_COLOR_BLACK 0x0
24-
#define VGA_COLOR_BLUE 0x1
25-
#define VGA_COLOR_GREEN 0x2
26-
#define VGA_COLOR_CYAN 0x3
27-
#define VGA_COLOR_RED 0x4
28-
#define VGA_COLOR_MAGENTA 0x5
29-
#define VGA_COLOR_BROWN 0x6
30-
#define VGA_COLOR_LIGHT_GRAY 0x7
31-
#define VGA_COLOR_DARK_GRAY 0x8
32-
#define VGA_COLOR_LIGHT_BLUE 0x9
33-
#define VGA_COLOR_LIGHT_GREEN 0xA
34-
#define VGA_COLOR_LIGHT_CYAN 0xB
35-
#define VGA_COLOR_LIGHT_RED 0xC
36-
#define VGA_COLOR_LIGHT_MAGENTA 0xD
37-
#define VGA_COLOR_YELLOW 0xE
38-
#define VGA_COLOR_WHITE 0xF
39-
40-
// structures
41-
42-
struct vcl // vga color list
43-
{
44-
_i vcb; // black
45-
_i vcbl; // blue
46-
_i vcg; // green
47-
_i vcc; // cyan
48-
_i vcr; // red
49-
_i vcm; // magenta
50-
_i vcbrw; // brown
51-
_i vclg; // light gray
52-
_i vcdg; // dark gray
53-
_i vclbl; // light blue
54-
_i vclgre; // light green
55-
_i vclcy; // light cyan
56-
_i vclr; // light red
57-
_i vclmg; // light magenta
58-
_i vcy; // light yellow
59-
_i vcwh; // white
60-
} vclist;
61-
62-
st vcl vclist;
63-
64-
// enum
65-
66-
en vgcl
67-
{
68-
BLACK,
69-
BLUE,
70-
GREEN,
71-
CYAN,
72-
RED,
73-
MAGENTA,
74-
BROWN,
75-
LIGHTGRAY,
76-
DARKGRAY,
77-
LIGHTBLUE,
78-
LIGHTGREEN,
79-
LIGHTCYAN,
80-
LIGHTRED,
81-
LIGHTMAGENTA,
82-
YELLOW,
83-
WHITE
84-
} vgclist;
85-
86-
en vgcl vgclist;
87-
88-
// List Of 16-bit computer color palettes
89-
// link: https://en.wikipedia.org/wiki/List_of_16-bit_computer_color_palettes
90-
91-
// 12-Bit/15-bit 4096-color palette
92-
93-
namespace vga_color_palette
94-
{
95-
#define VGA_COLOR_PALETTE_0 0x00
96-
#define VGA_COLOR_PALETTE_1 0x01
97-
#define VGA_COLOR_PALETTE_2 0x02
98-
#define VGA_COLOR_PALETTE_3 0x03
99-
#define VGA_COLOR_PALETTE_4 0x04
100-
#define VGA_COLOR_PALETTE_5 0x05
101-
#define VGA_COLOR_PALETTE_6 0x06
102-
#define VGA_COLOR_PALETTE_7 0x07
103-
#define VGA_COLOR_PALETTE_8 0x08
104-
#define VGA_COLOR_PALETTE_9 0x09
105-
#define VGA_COLOR_PALETTE_A 0x0A
106-
#define VGA_COLOR_PALETTE_B 0x0B
107-
#define VGA_COLOR_PALETTE_C 0x0C
108-
#define VGA_COLOR_PALETTE_D 0x0D
109-
#define VGA_COLOR_PALETTE_E 0x0E
110-
#define VGA_COLOR_PALETTE_F 0x0F
111-
112-
// 15-bit
113-
114-
#define VGA_COLOR_PALETTE_10 0x10
115-
#define VGA_COLOR_PALETTE_11 0x11
116-
#define VGA_COLOR_PALETTE_12 0x12
117-
#define VGA_COLOR_PALETTE_13 0x13
118-
#define VGA_COLOR_PALETTE_14 0x14
119-
#define VGA_COLOR_PALETTE_15 0x15
120-
#define VGA_COLOR_PALETTE_16 0x16
121-
#define VGA_COLOR_PALETTE_17 0x17
122-
#define VGA_COLOR_PALETTE_18 0x18
123-
#define VGA_COLOR_PALETTE_19 0x19
124-
#define VGA_COLOR_PALETTE_1A 0x1A
125-
#define VGA_COLOR_PALETTE_1B 0x1B
126-
#define VGA_COLOR_PALETTE_1C 0x1C
127-
#define VGA_COLOR_PALETTE_1D 0x1D
128-
#define VGA_COLOR_PALETTE_1E 0x1E
129-
#define VGA_COLOR_PALETTE_1F 0x1F
130-
}
131-
13220
#endif

Lib/customdefine.h

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#define function void
1313
#define func void
1414
#define fun void
15+
#define fn void
1516
#define def void
1617
#define V v
1718
#define F f

Lib/forc/cdefined.h

-9
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,4 @@ appfunc p(char *str)
2121
printf("%s", str);
2222
}
2323

24-
st cdefine
25-
{
26-
#define clib_define_name "cdefined"
27-
#define clib_file_ext ".h"
28-
#define clib_ver "2.0"
29-
} cdef;
30-
31-
st cdefine cdef;
32-
3324
#endif

pyappdevkit.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2025 LinuxUsersLinuxMint
3+
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
PyAppDevKit All Rights Reserved under the GPL(General Public License).
5+
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
6+
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
7+
8+
def time(number):
9+
while number > 0:
10+
number -= 1
11+
for _ in range(100000000):
12+
pass
13+
14+
def error_msg(error_dialog):
15+
print(error_dialog)
16+
17+
def exit_program_dialog_time(exit_dialog_msg,userTime):
18+
print(exit_dialog_msg)
19+
time(userTime)
20+
exit()
21+
22+
def exit_program_time(userTime):
23+
time(userTime)
24+
exit()
25+
26+
def exit_program_dialog(exit_dialog_msg):
27+
print(exit_dialog_msg)
28+
exit()

setupcappdevkit.py

+18-17
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,45 @@
55
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
66
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint """
77

8-
import time, os
8+
import os
9+
from pyappdevkit import *
910

1011
yes_no=str(input('Are you sure you want to install CAppDevKit? (Y / N / Uninstall): '))
1112

1213
if yes_no=="N" or yes_no=="n" or yes_no=="No" or yes_no=="no" or yes_no=="NO":
13-
exit()
14+
exit_program_dialog("exit...")
1415
elif yes_no=="Y" or yes_no=="y" or yes_no=="Yes" or yes_no=="yes" or yes_no=="YES":
1516
print("Installing CAppDevKit...")
16-
time.sleep(3)
17+
time(3)
1718
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 1/3...")
18-
time.sleep(3)
19+
time(3)
1920
print("[CAppDevKit_Setup_Environment]: setup_create_dir.sh step 1/3... (Create Folder)")
20-
time.sleep(3)
21+
time(3)
2122
os.system("./setup_create_dir.sh")
22-
time.sleep(3)
23+
time(3)
2324
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
24-
time.sleep(3)
25+
time(3)
2526
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 2/3...")
26-
time.sleep(3)
27+
time(3)
2728
print("[CAppDevKit_Setup_Environment]: setup_copy_files.sh step 2/3... (Copy Files)")
28-
time.sleep(3)
29+
time(3)
2930
os.system("./setup_copy_files.sh")
30-
time.sleep(3)
31+
time(3)
3132
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
32-
time.sleep(3)
33+
time(3)
3334
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 3/3...")
34-
time.sleep(3)
35+
time(3)
3536
print("[CAppDevKit_Setup_Environment]: setup_folder_copy.sh step 3/3... (Copy Folder)")
36-
time.sleep(3)
37+
time(3)
3738
os.system("./setup_folder_copy.sh")
38-
time.sleep(3)
39+
time(3)
3940
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
4041
exit()
4142
elif yes_no=="Uninstall" or yes_no=="uninstall" or yes_no=="U" or yes_no=="u":
4243
print("Uninstall CAppDevKit...")
43-
time.sleep(3)
44+
time(3)
4445
os.system("./uninstall_cappdevkit.sh")
45-
time.sleep(2)
46+
time(3)
4647
exit()
4748
else:
48-
print("Invalid CAppSE (CAppDevKit Setup Environment) Argument...")
49+
error_msg("Invalid CAppSE (CAppDevKit Setup Environment) Argument...")

0 commit comments

Comments
 (0)