From b340790ba49bb5af1cce1e130b5abaf3d21e380b Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 14 Dec 2015 14:50:28 +0000 Subject: [PATCH] Eolite: increase paste thread stack size Textreader: fix images gui.h: add WriteTextLines() function git-svn-id: svn://kolibrios.org@5962 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/compile_ru.bat | 2 +- programs/cmm/eolite/include/copy.h | 4 +-- programs/cmm/eolite/include/fs.h | 3 +- programs/cmm/eolite/include/properties.h | 12 ++------ programs/cmm/lib/gui.h | 9 ++++++ programs/cmm/textreader/textreader.c | 39 ++++++++++-------------- 6 files changed, 33 insertions(+), 36 deletions(-) diff --git a/programs/cmm/eolite/compile_ru.bat b/programs/cmm/eolite/compile_ru.bat index 85fcc7a814..716abb4bdd 100644 --- a/programs/cmm/eolite/compile_ru.bat +++ b/programs/cmm/eolite/compile_ru.bat @@ -6,7 +6,7 @@ cls c-- Eolite.c rem @kpack Eolite.com @rename Eolite.com Eolite -kpack eolite + @del warning.txt @del lang.h-- @pause \ No newline at end of file diff --git a/programs/cmm/eolite/include/copy.h b/programs/cmm/eolite/include/copy.h index 4998a5127e..ef27ccb1ed 100644 --- a/programs/cmm/eolite/include/copy.h +++ b/programs/cmm/eolite/include/copy.h @@ -46,8 +46,8 @@ void Copy(dword pcth, char cut) void Paste() { - copy_stak = malloc(20000); - CreateThread(#PasteThread,copy_stak+20000-4); + copy_stak = malloc(64000); + CreateThread(#PasteThread,copy_stak+64000-4); } void PasteThread() diff --git a/programs/cmm/eolite/include/fs.h b/programs/cmm/eolite/include/fs.h index 1ded99f33d..7b06a4a353 100644 --- a/programs/cmm/eolite/include/fs.h +++ b/programs/cmm/eolite/include/fs.h @@ -10,9 +10,10 @@ void DirFileCount(dword way) cur_file = malloc(4096); // In the process of recursive descent, memory must be allocated dynamically, because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); + filename = dirbuf+72; for (i=0; i