From 5db0b9a664b777af4c343bf616b319312e56918a Mon Sep 17 00:00:00 2001 From: MertGunduz Date: Fri, 17 Nov 2023 20:51:18 +0300 Subject: [PATCH] doxy refreshed --- docs/html/d7/d57/sub64_8c.html | 12 +- docs/html/d7/d57/sub64_8c_source.html | 176 +++++++++--------- docs/html/dir_000000_000002.html | 77 ++++++++ docs/html/dir_000000_000003.html | 4 +- ...r_5194e5fea318fda12687127c23f8aba1_dep.dot | 4 +- .../dir_68267d1309a1af8e8297ef4c3efbcdba.html | 2 - ...r_68267d1309a1af8e8297ef4c3efbcdba_dep.dot | 5 +- docs/html/files.html | 27 ++- docs/html/search/all_5.js | 5 +- docs/html/search/all_a.js | 9 +- docs/html/search/files_3.js | 3 +- docs/html/search/files_7.js | 5 +- docs/latex/d7/d57/sub64_8c.tex | 12 +- docs/latex/d7/d57/sub64_8c_source.tex | 168 +++++++++-------- ...r_5194e5fea318fda12687127c23f8aba1_dep.dot | 4 +- .../dir_68267d1309a1af8e8297ef4c3efbcdba.tex | 2 - ...r_68267d1309a1af8e8297ef4c3efbcdba_dep.dot | 5 +- docs/latex/files.tex | 2 - docs/latex/refman.tex | 4 - 19 files changed, 296 insertions(+), 230 deletions(-) create mode 100644 docs/html/dir_000000_000002.html diff --git a/docs/html/d7/d57/sub64_8c.html b/docs/html/d7/d57/sub64_8c.html index d1df657..b896592 100644 --- a/docs/html/d7/d57/sub64_8c.html +++ b/docs/html/d7/d57/sub64_8c.html @@ -115,7 +115,7 @@ - + @@ -182,7 +182,7 @@

-

Definition at line 47 of file sub64.c.

+

Definition at line 49 of file sub64.c.

@@ -222,7 +222,7 @@

Definition at line 78 of file sub64.c.

+

Definition at line 82 of file sub64.c.

@@ -239,7 +239,7 @@

-

Definition at line 45 of file sub64.c.

+

Definition at line 47 of file sub64.c.

@@ -250,12 +250,12 @@

Variables

char * two_arg_commands [] = {"--encrypt", "--decrypt", "--gen-key", "--import-key"}
char * two_arg_commands [] = {"--encrypt", "--decrypt", "--import-key"}
 
char * one_arg_commands [] = {"--export-key", "--help", "--github", "--version", "--docs"}
 
- +
char* two_arg_commands[] = {"--encrypt", "--decrypt", "--gen-key", "--import-key"}char* two_arg_commands[] = {"--encrypt", "--decrypt", "--import-key"}
-

Definition at line 44 of file sub64.c.

+

Definition at line 46 of file sub64.c.

diff --git a/docs/html/d7/d57/sub64_8c_source.html b/docs/html/d7/d57/sub64_8c_source.html index cf1628f..3c8953c 100644 --- a/docs/html/d7/d57/sub64_8c_source.html +++ b/docs/html/d7/d57/sub64_8c_source.html @@ -100,89 +100,93 @@
36 {"--docs", docs_menu}
37};
38
-
39static sub64_two_command two_arg_structs[] =
-
40{
-
41 {"--gen-key"}
-
42};
-
43
-
44char *two_arg_commands[] = {"--encrypt", "--decrypt", "--gen-key", "--import-key"};
-
45char *one_arg_commands[] = {"--export-key", "--help", "--github", "--version", "--docs"};
-
46
-
47int main(int argc, char *argv[])
-
48{
-
49 if (verify_args(argc, argv[1]))
-
50 {
-
51 for (size_t i = 0; i < sizeof(one_arg_structs) / sizeof(one_arg_structs[0]); i++)
-
52 {
-
53 if (strcmp(argv[1], one_arg_structs[i].command_text) == 0)
-
54 {
-
55 one_arg_structs[i].func();
-
56 }
-
57 }
-
58
-
59 /*for (size_t i = 0; i < sizeof(two_arg_structs) / sizeof(two_arg_structs[0]); i++)
-
60 {
-
61 if (strcmp(argv[1], two_arg_structs[i].command_text) == 0)
-
62 {
-
63 two_arg_structs[i].func(argv[2]);
-
64 }
-
65 }*/
-
66 }
-
67}
-
68
-
78bool verify_args(int total_args, char *argument)
-
79{
-
80 if (total_args == 2)
-
81 {
-
82 for (size_t i = 0; i < sizeof(one_arg_commands) / sizeof(one_arg_commands[0]); i++)
-
83 {
-
84 if (strcmp(one_arg_commands[i], argument) == 0)
-
85 {
-
86 return true;
-
87 }
-
88 }
-
89
-
90 for (size_t i = 0; i < sizeof(two_arg_commands) / sizeof(two_arg_commands[0]); i++)
-
91 {
-
92 if (strcmp(two_arg_commands[i], argument) == 0)
-
93 {
-
94 vall_err_msg(argument);
-
95 return false;
-
96 }
-
97 }
-
98
-
99 not_valid_arg(argument);
-
100 return false;
-
101 }
-
102 else if (total_args == 3)
-
103 {
-
104 for (size_t i = 0; i < sizeof(one_arg_commands) / sizeof(one_arg_commands[0]); i++)
-
105 {
-
106 if (strcmp(one_arg_commands[i], argument) == 0)
-
107 {
-
108 one_arg_err_msg(argument);
-
109 return false;
-
110 }
-
111 }
-
112
-
113 for (size_t i = 0; i < sizeof(two_arg_commands) / sizeof(two_arg_commands[0]); i++)
-
114 {
-
115 if (strcmp(two_arg_commands[i], argument) == 0)
-
116 {
-
117 return true;
-
118 }
-
119 }
-
120
-
121 not_valid_arg(argument);
-
122 return false;
-
123 }
-
124 else
-
125 {
-
126 argc_err_msg();
+
39/*
+
40static sub64_two_command two_arg_structs[] =
+
41{
+
42
+
43};
+
44*/
+
45
+
46char *two_arg_commands[] = {"--encrypt", "--decrypt", "--import-key"};
+
47char *one_arg_commands[] = {"--export-key", "--help", "--github", "--version", "--docs"};
+
48
+
49int main(int argc, char *argv[])
+
50{
+
51 if (verify_args(argc, argv[1]))
+
52 {
+
53 for (size_t i = 0; i < sizeof(one_arg_structs) / sizeof(one_arg_structs[0]); i++)
+
54 {
+
55 if (strcmp(argv[1], one_arg_structs[i].command_text) == 0)
+
56 {
+
57 one_arg_structs[i].func();
+
58 }
+
59 }
+
60
+
61 /*
+
62 for (size_t i = 0; i < sizeof(two_arg_structs) / sizeof(two_arg_structs[0]); i++)
+
63 {
+
64 if (strcmp(argv[1], two_arg_structs[i].command_text) == 0)
+
65 {
+
66 two_arg_structs[i].func(argv[2]);
+
67 }
+
68 }
+
69 */
+
70 }
+
71}
+
72
+
82bool verify_args(int total_args, char *argument)
+
83{
+
84 if (total_args == 2)
+
85 {
+
86 for (size_t i = 0; i < sizeof(one_arg_commands) / sizeof(one_arg_commands[0]); i++)
+
87 {
+
88 if (strcmp(one_arg_commands[i], argument) == 0)
+
89 {
+
90 return true;
+
91 }
+
92 }
+
93
+
94 for (size_t i = 0; i < sizeof(two_arg_commands) / sizeof(two_arg_commands[0]); i++)
+
95 {
+
96 if (strcmp(two_arg_commands[i], argument) == 0)
+
97 {
+
98 vall_err_msg(argument);
+
99 return false;
+
100 }
+
101 }
+
102
+
103 not_valid_arg(argument);
+
104 return false;
+
105 }
+
106 else if (total_args == 3)
+
107 {
+
108 for (size_t i = 0; i < sizeof(one_arg_commands) / sizeof(one_arg_commands[0]); i++)
+
109 {
+
110 if (strcmp(one_arg_commands[i], argument) == 0)
+
111 {
+
112 one_arg_err_msg(argument);
+
113 return false;
+
114 }
+
115 }
+
116
+
117 for (size_t i = 0; i < sizeof(two_arg_commands) / sizeof(two_arg_commands[0]); i++)
+
118 {
+
119 if (strcmp(two_arg_commands[i], argument) == 0)
+
120 {
+
121 return true;
+
122 }
+
123 }
+
124
+
125 not_valid_arg(argument);
+
126 return false;
127 }
-
128
-
129 return false;
-
130}
+
128 else
+
129 {
+
130 argc_err_msg();
+
131 }
+
132
+
133 return false;
+
134}
void argc_err_msg()
Definition: argc_err_msg.c:13
void docs_menu()
This function is used to show docs URL.
Definition: docs_menu.c:16
void github_menu()
Shows the project github URL, current issues to user.
Definition: github_menu.c:16
@@ -195,12 +199,12 @@
Definition: sub64.c:26
char * command_text
Definition: sub64.c:27
void(* func)(char *argument)
Definition: sub64.c:28
-
int main(int argc, char *argv[])
Definition: sub64.c:47
+
int main(int argc, char *argv[])
Definition: sub64.c:49
struct two_command sub64_two_command
-
bool verify_args(int total_args, char *argument)
This function is used to verify wanted argument count and argument.
Definition: sub64.c:78
-
char * two_arg_commands[]
Definition: sub64.c:44
+
bool verify_args(int total_args, char *argument)
This function is used to verify wanted argument count and argument.
Definition: sub64.c:82
+
char * two_arg_commands[]
Definition: sub64.c:46
struct one_command sub64_one_command
-
char * one_arg_commands[]
Definition: sub64.c:45
+
char * one_arg_commands[]
Definition: sub64.c:47
void version_menu()
This function shows the version of sub64.
Definition: version_menu.c:16
void vall_err_msg(char *option)
Definition: val_err_msg.c:13
diff --git a/docs/html/dir_000000_000002.html b/docs/html/dir_000000_000002.html new file mode 100644 index 0000000..de58089 --- /dev/null +++ b/docs/html/dir_000000_000002.html @@ -0,0 +1,77 @@ + + + + + + + +sub64: src/app -> menus Relation + + + + + + + + + +
+
+ + + + + + + +
+
sub64 1.0.0 +
+
a secure text encryption/decryption tool
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+

app → menus Relation

File in src/appIncludes file in src/menus
sub64.csub64_menus.h
+ + + + diff --git a/docs/html/dir_000000_000003.html b/docs/html/dir_000000_000003.html index de58089..bf1ce9a 100644 --- a/docs/html/dir_000000_000003.html +++ b/docs/html/dir_000000_000003.html @@ -5,7 +5,7 @@ -sub64: src/app -> menus Relation +sub64: src/app -> msg Relation @@ -68,7 +68,7 @@
-

app → menus Relation

File in src/appIncludes file in src/menus
sub64.csub64_menus.h
+

app → msg Relation

File in src/appIncludes file in src/msg
sub64.csub64_msg.h