Skip to content

Commit 159a5c6

Browse files
CAppDevKit v1.7
1 parent 1b4d4cc commit 159a5c6

File tree

10 files changed

+220
-56
lines changed

10 files changed

+220
-56
lines changed

CAppDevKitInfoLib/cappdevkitinfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
#define C_LIB_NAME "CAppDevKit"
88
#define C_APP_DEV_KIT "CAppDevKit (C App Developer Kit)"
9-
#define CAppDevKit_Ver 1.5
9+
#define CAppDevKit_Ver 1.7
1010
#define CAppDevKit_RS_Date "11/24/2023"
11-
#define CAppDevKit_LAST_UPDATED_DATE "11/28/2023"
11+
#define CAppDevKit_LAST_UPDATED_DATE "12/02/2023"
1212
#define CAppDevKit_Developer_Name "@LinuxUsersLinuxMint"
1313
#define CAppDevKit_Developer_website "https://linuxuserslinuxmint.github.io"
1414

CAppDevKitLib/appvoid.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
#define _APP_VOID_H_
33

44
#include "appcustomvar.h"
5+
#include "../Lib/forc/cdefined.h"
56
#include "../CAppDevKitInfoLib/cappdevkitinfo.h"
67
#include "../Lib/customdefine.h"
78

8-
afunc appinfo(app_name appname, app_ver_t appver, app_rs_date apprs, app_lsup_date applsdate, app_developer_name appdevname, app_developer_website appdevwsite)
9+
appfunc appinfo(app_name appname, app_ver_t appver, app_rs_date apprs, app_lsup_date applsdate, app_developer_name appdevname, app_developer_website appdevwsite)
910
{
1011
printf("AppName: %s\n", appname);
1112
printf("AppVersion: %f\n", appver);
@@ -15,7 +16,7 @@ afunc appinfo(app_name appname, app_ver_t appver, app_rs_date apprs, app_lsup_da
1516
printf("AppDevWebSite: %s\n", appdevwsite);
1617
}
1718

18-
afunc cappdevkit_info()
19+
appfunc cappdevkit_info()
1920
{
2021
st CAppDevKitInfo CAppDevKitI;
2122
CAppDevKitI.clibname = C_LIB_NAME;
@@ -35,7 +36,7 @@ afunc cappdevkit_info()
3536
printf("CAppDevKitWebSite: %s\n", CAppDevKitI.appdevswebsite);
3637
}
3738

38-
afunc app_exit()
39+
appfunc app_exit()
3940
{
4041
exit(0);
4142
}

FastVar/cppfastvar.hpp

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
#ifndef _CPP_FAST_VAR_HPP_
2+
#define _CPP_FAST_VAR_HPP_
3+
4+
#define MAX_NUMBERS_SIZE 11
5+
#define MAX_EN_LETTERS_SIZE 26
6+
#define MAX_TR_LETTERS_SIZE 29
7+
8+
#include <iostream>
9+
#include "../ForCpp/cppdefined.hpp"
10+
uns
11+
12+
_i numbers[MAX_NUMBERS_SIZE] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
13+
_cc 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'};
14+
_cc en_letters[MAX_EN_LETTERS_SIZE] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I' , 'J', 'K', 'L' , 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
15+
16+
_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'};
17+
_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'};
18+
19+
// List of BIOS Color Attributes
20+
// link: https://en.wikipedia.org/wiki/BIOS_color_attributes
21+
22+
#define VGA_COLOR_BLACK 0x0
23+
#define VGA_COLOR_BLUE 0x1
24+
#define VGA_COLOR_GREEN 0x2
25+
#define VGA_COLOR_CYAN 0x3
26+
#define VGA_COLOR_RED 0x4
27+
#define VGA_COLOR_MAGENTA 0x5
28+
#define VGA_COLOR_BROWN 0x6
29+
#define VGA_COLOR_LIGHT_GRAY 0x7
30+
#define VGA_COLOR_DARK_GRAY 0x8
31+
#define VGA_COLOR_LIGHT_BLUE 0x9
32+
#define VGA_COLOR_LIGHT_GREEN 0xA
33+
#define VGA_COLOR_LIGHT_CYAN 0xB
34+
#define VGA_COLOR_LIGHT_RED 0xC
35+
#define VGA_COLOR_LIGHT_MAGENTA 0xD
36+
#define VGA_COLOR_YELLOW 0xE
37+
#define VGA_COLOR_WHITE 0xF
38+
39+
// structures
40+
41+
struct vcl // vga color list
42+
{
43+
_i vcb; // black
44+
_i vcbl; // blue
45+
_i vcg; // green
46+
_i vcc; // cyan
47+
_i vcr; // red
48+
_i vcm; // magenta
49+
_i vcbrw; // brown
50+
_i vclg; // light gray
51+
_i vcdg; // dark gray
52+
_i vclbl; // light blue
53+
_i vclgre; // light green
54+
_i vclcy; // light cyan
55+
_i vclr; // light red
56+
_i vclmg; // light magenta
57+
_i vcy; // light yellow
58+
_i vcwh; // white
59+
} vclist;
60+
61+
st vcl vclist;
62+
63+
// enum
64+
65+
en vgcl
66+
{
67+
BLACK,
68+
BLUE,
69+
GREEN,
70+
CYAN,
71+
RED,
72+
MAGENTA,
73+
BROWN,
74+
LIGHTGRAY,
75+
DARKGRAY,
76+
LIGHTBLUE,
77+
LIGHTGREEN,
78+
LIGHTCYAN,
79+
LIGHTRED,
80+
LIGHTMAGENTA,
81+
YELLOW,
82+
WHITE
83+
} vgclist;
84+
85+
en vgcl vgclist;
86+
87+
// List Of 16-bit computer color palettes
88+
// link: https://en.wikipedia.org/wiki/List_of_16-bit_computer_color_palettes
89+
90+
// 12-Bit/15-bit 4096-color palette
91+
92+
namespace vga_color_palette
93+
{
94+
#define VGA_COLOR_PALETTE_0 0x00
95+
#define VGA_COLOR_PALETTE_1 0x01
96+
#define VGA_COLOR_PALETTE_2 0x02
97+
#define VGA_COLOR_PALETTE_3 0x03
98+
#define VGA_COLOR_PALETTE_4 0x04
99+
#define VGA_COLOR_PALETTE_5 0x05
100+
#define VGA_COLOR_PALETTE_6 0x06
101+
#define VGA_COLOR_PALETTE_7 0x07
102+
#define VGA_COLOR_PALETTE_8 0x08
103+
#define VGA_COLOR_PALETTE_9 0x09
104+
#define VGA_COLOR_PALETTE_A 0x0A
105+
#define VGA_COLOR_PALETTE_B 0x0B
106+
#define VGA_COLOR_PALETTE_C 0x0C
107+
#define VGA_COLOR_PALETTE_D 0x0D
108+
#define VGA_COLOR_PALETTE_E 0x0E
109+
#define VGA_COLOR_PALETTE_F 0x0F
110+
111+
// 15-bit
112+
113+
#define VGA_COLOR_PALETTE_10 0x10
114+
#define VGA_COLOR_PALETTE_11 0x11
115+
#define VGA_COLOR_PALETTE_12 0x12
116+
#define VGA_COLOR_PALETTE_13 0x13
117+
#define VGA_COLOR_PALETTE_14 0x14
118+
#define VGA_COLOR_PALETTE_15 0x15
119+
#define VGA_COLOR_PALETTE_16 0x16
120+
#define VGA_COLOR_PALETTE_17 0x17
121+
#define VGA_COLOR_PALETTE_18 0x18
122+
#define VGA_COLOR_PALETTE_19 0x19
123+
#define VGA_COLOR_PALETTE_1A 0x1A
124+
#define VGA_COLOR_PALETTE_1B 0x1B
125+
#define VGA_COLOR_PALETTE_1C 0x1C
126+
#define VGA_COLOR_PALETTE_1D 0x1D
127+
#define VGA_COLOR_PALETTE_1E 0x1E
128+
#define VGA_COLOR_PALETTE_1F 0x1F
129+
}
130+
131+
#endif

ForCpp/cppdefined.hpp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#ifndef _CPP_DEFINED_HPP_
2+
#define _CPP_DEFINED_HPP_
3+
#include <iostream>
4+
#include <string>
5+
using namespace std;
6+
7+
#define use using
8+
#define nsp namespace
9+
#define cl class
10+
#define pb public:
11+
#define pr private:
12+
#define ptc protected:
13+
#define uns using namespace std;
14+
#define ct cout
15+
#define cn cin
16+
#define ed endl
17+
#define st struct
18+
#define en enum
19+
#define ui union
20+
21+
#define _i int
22+
#define _si short int
23+
#define _li long int
24+
#define _d double
25+
#define _f float
26+
#define _c char
27+
#define _cc const char
28+
#define _co const
29+
30+
#endif

Lib/customdefine.h

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef _CUSTOM_DEFINE_H_
22
#define _CUSTOM_DEFINE_H_
33

4-
#include "../CAppDevKitLib/appcustomvar.h"
5-
64
// return keywords
75

86
#define r return
@@ -15,7 +13,6 @@
1513
#define func void
1614
#define fun void
1715
#define def void
18-
#define afunc void
1916

2017
// Data Types keywords
2118

@@ -38,34 +35,4 @@
3835
#define en enum
3936
#define ui union
4037

41-
// print func
42-
43-
afunc print(char *str)
44-
{
45-
printf("%s", str);
46-
}
47-
48-
afunc println(char *str)
49-
{
50-
printf("%s", str);
51-
}
52-
53-
afunc p(char *str)
54-
{
55-
printf("%s", str);
56-
}
57-
58-
// for cpp (C++)
59-
60-
#define use using
61-
#define nsp namespace
62-
#define cl class
63-
#define pb public:
64-
#define pr private:
65-
#define ptc protected:
66-
#define uns using namespace std;
67-
#define ct cout
68-
#define cn cin
69-
#define ed endl
70-
7138
#endif

Lib/forc/cdefined.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#ifndef _C_DEFINED_H_
2+
#define _C_DEFINED_H_
3+
4+
#include "../../CAppDevKitLib/appcustomvar.h"
5+
6+
#define appfunc app_func
7+
#define afunc void
8+
9+
appfunc print(char *str)
10+
{
11+
printf("%s", str);
12+
}
13+
14+
appfunc println(char *str)
15+
{
16+
printf("%s", str);
17+
}
18+
19+
appfunc p(char *str)
20+
{
21+
printf("%s", str);
22+
}
23+
24+
st cdefine
25+
{
26+
#define clib_define_name "cdefined"
27+
#define clib_file_ext ".h"
28+
#define clib_ver "1.5"
29+
} cdef;
30+
31+
st cdefine cdef;
32+
33+
#endif

README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# CAppDevKit
1+
# CAppDevKit-Insiders
22

3-
(TR / Türkçe)
4-
5-
* C programlama dilinde komut satırı uygulama geliştirmek için bir geliştirme kiti
6-
* Grafik Kullanıcı Arayüzü (GUI) Geliştirmesi yapılamaz / veya Kullanıcı Arayüzü (UI) geliştirmesi yapılamaz
7-
8-
Önemli Uyarılar:
9-
* CAppDevKit ile Uygulama geliştirirken cappdevkit_info() fonksiyonu program içinde kullanılmalı ve bu programın "CAppDevKit" kullanılarak yazılmıştır ibaresi eklenmelidir. (CAppDevKit proje linki verilmesi zorunludur)
10-
11-
(EN / English)
12-
13-
* A development kit for developing command line applications in the C programming language
14-
* Graphical User Interface (GUI) Development cannot be done / or User Interface (UI) development cannot be done
15-
16-
Important Notices:
17-
* When developing an application with CAppDevKit, the cappdevkit_info() function should be used in the program and the statement that this program was written using "CAppDevKit" should be added. (CAppDevKit project link is mandatory)
3+
* The project started after CAppDevKit's constantly updated CADK v1.5. Includes CADK preview versions.

exampleapp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _i main()
1212

1313
if (process == 1)
1414
{
15-
appinfo("ExampleCAppDevKitProject",1.5,"11/24/2023","11/28/2023","@LinuxUsersLinuxMint","https://linuxuserslinuxmint.github.io");
15+
appinfo("ExampleCAppDevKitProject",1.7,"11/24/2023","12/02/2023","@LinuxUsersLinuxMint","https://linuxuserslinuxmint.github.io");
1616
}
1717
else if (process == 2)
1818
{

setup_copy_files.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
#!/usr/bin/sh
22
cp exampleapp.c CAppDevKit/
33
chmod a+x CAppDevKit/
4+
45
cp CAppDevKitInfoLib/cappdevkitinfo.h CAppDevKit/CAppDevKitInfoLib/
56
chmod a+x CAppDevKit/CAppDevKitInfoLib/cappdevkitinfo.h
7+
68
cp CAppDevKitLib/appcustomvar.h CAppDevKit/CAppDevKitLib/
79
chmod a+x CAppDevKit/CAppDevKitLib/appcustomvar.h
10+
811
cp CAppDevKitLib/appvoid.h CAppDevKit/CAppDevKitLib/
912
chmod a+x CAppDevKit/CAppDevKitLib/appvoid.h
13+
1014
cp Lib/customdefine.h CAppDevKit/Lib/
11-
chmod a+x CAppDevKit/Lib/customdefine.h
15+
chmod a+x CAppDevKit/Lib/customdefine.h
16+
17+
cp Lib/forc/cdefined.h CAppDevKit/Lib/forc/
18+
chmod a+x CAppDevKit/Lib/forc/cdefined.h
19+
20+
cp FastVar/cppfastvar.hpp CAppDevKit/FastVar/
21+
chmod a+x CAppDevKit/FastVar/cppfastvar.hpp
22+
23+
cp ForCpp/cppdefined.hpp CAppDevKit/ForCpp/
24+
chmod a+x CAppDevKit/ForCpp/cppdefined.hpp

setup_create_dir.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ mkdir CAppDevKit
33
mkdir CAppDevKit/CAppDevKitInfoLib
44
mkdir CAppDevKit/CAppDevKitLib
55
mkdir CAppDevKit/Lib
6+
mkdir CAppDevKit/FastVar
7+
mkdir CAppDevKit/ForCpp
8+
mdkir CAppDevKit/Lib/forc
69
chmod a+x CAppDevKit

0 commit comments

Comments
 (0)