Skip to content

Commit

Permalink
Merge pull request #3 from Alexxx180/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Alexxx180 authored May 19, 2024
2 parents cd4e383 + 4bf62c5 commit 55cdb1c
Show file tree
Hide file tree
Showing 170 changed files with 1,494 additions and 1,224 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SHELL := powershell.exe
CMD=powershell -NoProfile -Command

CC=cl
CFLAGS=/nologo /EHsc /I header /Zi
CFLAGS=/nologo /EHsc /I header
LINK=link
LFLAGS=/nologo /SUBSYSTEM:CONSOLE /DEBUG:FULL

Expand All @@ -30,7 +30,7 @@ DELOBJ=del $$PSItem.FullName -Recurse
%.obj : %.cpp
$(eval folder=$(subst $(SRC),$(OBJ),$(@D)))
$(eval result=$(folder)/$(@F))
@$(CMD) "if (-not (Test-Path $(folder))) { mkdir $(folder) > $(BUILD)/$(CLOG) }"
@$(CMD) "if (-not (Test-Path $(folder))) { mkdir $(folder) }"
@$(CC) $(CFLAGS) /Fo$(result) /c $<

compile : $(OFILES)
Expand Down
1 change: 1 addition & 0 deletions demo/input/numbers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-4 12 6 -9 8 -2 3 5
6 changes: 6 additions & 0 deletions demo/input/search.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
There is a couple of
examples to work with {keyword}.
As you can see the {keyword}
tend to be used in various
markdown systems that contain
{keyword} format string.
Binary file added demo/output/binary.bin
Binary file not shown.
8 changes: 8 additions & 0 deletions demo/output/binary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
12
6
8
3
5
-2
-9
-4
8 changes: 8 additions & 0 deletions demo/output/squares.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
16
144
36
81
64
4
9
25
15 changes: 15 additions & 0 deletions header/common/calculus/pow.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef COMMON_CALCULUS_POW
#define COMMON_CALCULUS_POW

template<TYPE>
TYPE pow(TYPE base, byte exp) {
TYPE result = 1;
while (exp) {
if (exp % 2) result *= base;
exp /= 2;
base *= base;
}
return result;
}

#endif
126 changes: 87 additions & 39 deletions header/common/texts/common.h

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion header/common/texts/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ static const std::map<std::string, std::wstring> errors = {
{ "empty_string", L"\u041e\u0448\u0438\u0431\u043a\u0430\u003a\u0020\u0432\u0432\u0435\u0434\u0435\u043d\u0430\u0020\u043f\u0443\u0441\u0442\u0430\u044f\u0020\u0441\u0442\u0440\u043e\u043a\u0430!" }, // Ошибка: введена пустая строка!
{ "invalid_character", L"\u041e\u0448\u0438\u0431\u043a\u0430\u003a\u0020\u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439\u0020\u0441\u0438\u043c\u0432\u043e\u043b!" }, // Ошибка: некорректный символ!
{ "out_of_bounds", L"\u0414\u0430\u043d\u043d\u044b\u0435 \u0432\u043d\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430!" }, // Данные вне диапазона!
{ "can_not_read", L"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445!" }, // Ошибка чтения данных!
{ "read_failure", L"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445!" }, // Ошибка чтения данных!
{ "write_failure", L"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445!" }, // Ошибка записи данных!
};

#endif
18 changes: 0 additions & 18 deletions header/common/types/time.h

This file was deleted.

3 changes: 2 additions & 1 deletion header/input/feedback/typer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ class Typer {

void Input() {
out->Field();
byte context = out->TargetLayer;
do {
out->Target(MAIN)->Move();
out->Target(context)->Move();
Type();
}
while (!IsVerified);
Expand Down
2 changes: 2 additions & 0 deletions header/screen/matrix/tools/layer/layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ struct Layer {
Fragment<Grid> back;
Fragment<Stencil> out;
Fragment<Bar> status;
byte TargetLayer;

void Add(Screen* screen) {
back.Add(screen->back);
out.Add(screen->out);
}

Layer* Target(byte current) {
TargetLayer = current;
back.Target(current);
out.Target(current);
status.Target(current);
Expand Down
1 change: 1 addition & 0 deletions header/screen/matrix/tools/markdown.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Markdown {
Markdown* Top(byte flow);
Markdown* Bot(byte flow);
Markdown* Relate(byte flow, float relation);
Markdown* Split(byte flow, float ratio);
Markdown* Margin(byte flow, byte margin);
};

Expand Down
11 changes: 0 additions & 11 deletions header/task/forms/defaults/cui/screens/menu/array.h

This file was deleted.

5 changes: 0 additions & 5 deletions header/task/forms/defaults/cui/screens/menu/individual.h

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem FilesMenu();
3 changes: 3 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/main/files/text.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem TextFilesMenu();
3 changes: 3 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/main/practice.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem PracticeMenu();
6 changes: 6 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/main/records.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "screen/controls/menu/menuitem.h"
#include <vector>
#include <string>

MenuItem RecordsMenu();
std::vector<std::string> RecordsWeek();
3 changes: 3 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/main/structure.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem StructureMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "screen/controls/menu/menu.h"
#include "screen/controls/menu/menuitem.h"

Menu CommonMenu(MenuItem* task);
5 changes: 5 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/structure/list.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "screen/controls/menu/loop/exit.h"

extern ExitMenu list_menu;

void ListMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem ListFillMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem ListOperationsMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem ListAddMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem ListDeleteMenu();
5 changes: 5 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/structure/queue.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "screen/controls/menu/loop/exit.h"

extern ExitMenu queue_menu;

void QueueMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem QueueFillMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem QueueOperationsMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem QueueViewMenu();
5 changes: 5 additions & 0 deletions header/task/forms/defaults/cui/screens/menu/structure/stack.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "screen/controls/menu/loop/exit.h"

extern ExitMenu stack_menu;

void StackMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem StackFillMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem StackOperationsMenu();
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "screen/controls/menu/menuitem.h"

MenuItem StackViewMenu();
3 changes: 0 additions & 3 deletions header/task/forms/defaults/cui/screens/templates/common.h

This file was deleted.

1 change: 0 additions & 1 deletion header/task/forms/defaults/cui/screens/templates/footer.h

This file was deleted.

1 change: 1 addition & 0 deletions header/task/forms/defaults/cui/screens/templates/list.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void ListInfo();
1 change: 1 addition & 0 deletions header/task/forms/defaults/cui/screens/templates/queue.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void QueueInfo();
1 change: 1 addition & 0 deletions header/task/forms/defaults/cui/screens/templates/stack.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void StackInfo();
2 changes: 1 addition & 1 deletion header/task/forms/defaults/io/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ void SetInputVerifiers();
extern Boundary<char> limits;
extern StringPrompt* prompts;
extern Verifier<char>* numeric;
extern Randomizer<char> gen_int8;
extern Randomizer<char> gen8;
11 changes: 0 additions & 11 deletions header/task/structure/input/array/annotation/define.h

This file was deleted.

8 changes: 0 additions & 8 deletions header/task/structure/input/array/annotation/input.h

This file was deleted.

40 changes: 0 additions & 40 deletions header/task/structure/input/array/annotation/value.h

This file was deleted.

1 change: 0 additions & 1 deletion header/task/structure/input/array/array.h

This file was deleted.

39 changes: 0 additions & 39 deletions header/task/structure/input/array/choice/input.h

This file was deleted.

25 changes: 0 additions & 25 deletions header/task/structure/input/array/choice/sort.h

This file was deleted.

6 changes: 0 additions & 6 deletions header/task/structure/input/array/menu.h

This file was deleted.

3 changes: 0 additions & 3 deletions header/task/structure/input/common/data.h

This file was deleted.

Loading

0 comments on commit 55cdb1c

Please sign in to comment.