Commit Graph

30 Commits

Author SHA1 Message Date
Hermet Park 1e5ae3db45 stablize unstable worker threads.
Still there are unsafe thread functions that access invalid memory.
fix all of them.
2016-08-23 08:05:14 +09:00
Taehyub Kim 74938a0f66 syntax_color: add NULL checking in macro_apply
Summary:
add NULL checking in macro_apply
@fix

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4237
2016-08-18 17:06:23 +09:00
Taehyub Kim a47b12bd53 syntax_color: add NULL checking in macro_key_push function
Summary: add NULL checking in macro_key_push function

Reviewers: Jaehyun_Cho, bowonryu, NikaWhite, Hermet

Reviewed By: NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D4235
2016-08-17 22:22:53 +09:00
Jean-Philippe Andre 3af6ede5e5 clang: Fix warnings and compilation errors
enventor wouldn't compile with clang. Also, it would print
a lot of warnings.
2016-08-10 15:17:41 +09:00
Hermet Park 86b9124e53 syntax_color: ++ safe code.
don't free color instance if its internal thread is working.
2016-08-04 20:54:21 +09:00
Hermet Park 1a9d5dcba7 edc_editor: one more thread safe code.
This patch is another same fix to e24efc9c7e.
2016-08-04 20:45:42 +09:00
Hermet Park 3db26261f7 multi-file: support syntax_colors.
a# Please enter the commit message for your changes. Lines starting
2016-07-27 15:37:46 +09:00
Hermet Park d0f6bb2e36 syntax_color: improve macro keywords.
Set macro colors to the end of a strcuture,
if the define continues to the next lines with line wrapping.
2016-07-21 21:48:21 +09:00
Hermet Park 5140ab5c64 code refactoring.
add a common memory fail message routine to reduce string usage.
2016-06-29 20:41:39 +09:00
Bowon Ryu d4a4a4da6c syntax_color: fix wrong indentation
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4002
2016-06-02 11:59:54 +09:00
Jaehyun Cho e3b07f998e syntax_color: Fix warnings. 2016-05-17 17:40:11 +09:00
Hermet Park fa1d1fc6d7 syntax_color: reorganize internals for multiple edc editor.
place a global syntax color source to share throught editor instances.

This is a partial change for supporting multiple edc files.
2016-05-07 01:46:58 +09:00
taehyub 21ed85b72b syntax_color: improve string syntax color logic
Summary:
If we input the quotation mark("), the code under the mark are changed to gray.
so I changed the limitation from the start of quotation mark to the end of the line.

Test Plan:
1. launch enventor
2. input the quotation mark(") in the middle of the code
3. see the syntax color change range about string syntax color

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3825
2016-03-25 13:18:06 +09:00
Hermet Park 872a79e87d fix incorrect memory allocation.
eina_inarray copies it's element memory when it have them.
we don't need to allocate element memory dynamically to push into it.

@fix
2016-02-02 16:38:51 +09:00
ChunEon Park 2c4a407e65 renamed color.src -> edc.src
Reeame the color source file more specifically.
2015-07-10 20:06:49 +09:00
ChunEon Park 74ff6efbd7 syntax_color: reorder the syntax color.
apply comments color prior to tags.
2015-07-09 22:48:16 +09:00
ChunEon Park d3cfd41e14 syntax_color: support configurable syntax color count.
Previous the color table count is fixed to 6
we can make it changeable by color configurable file.

Please increase MAX_COL_NUM if it really needs.
2015-07-09 20:18:43 +09:00
ChunEon Park c188b78c06 syntax_color: improve logic.
previous code was strictly only working for edc.
relax the logic to cover more general cases.
2015-07-09 19:51:19 +09:00
ChunEon Park d2e3c6dc6b syntax_color: apply string syntax color prior to others.
even if the comments are inside of the qutoes,
the comments syntax color should not be applied.
2015-07-04 01:08:01 +09:00
ChunEon Park cdab9f0a5d clean up code for supporting dllexport in win32. 2015-02-28 15:13:23 +09:00
ChunEon Park 96d4919a6b enable ENVENTOR BETA API in configure. 2015-02-28 14:50:17 +09:00
Michelle Legrand 05a848fddd lib: add export/import for libraries on Windows
Summary: Exporting/Importing Enventor dll for Win32.

Differential Revision: https://phab.enlightenment.org/D2040
2015-02-28 14:33:18 +09:00
ChunEon Park 5e8f437df5 fix all annoying warnings. 2015-02-27 17:26:02 +09:00
Jaehyun Cho 0832ee8b16 Revert "syntax_color: Set white to default text color."
This reverts commit 992b50cc9b.
2015-02-24 20:37:05 +09:00
Jaehyun Cho 992b50cc9b syntax_color: Set white to default text color.
Set white to default text color to not change text color when entry is disabled.
2015-02-16 18:58:22 +09:00
Jaehyun Cho d5898e5434 syntax_color: Fix to parse and append double quotation marks(") correctly.
Fix the way of parsing and appending """ correctly.
2015-01-20 13:48:25 +09:00
Jaehyun Cho af1dc2f23d edc_parser: Fix to show double quotation marks(")
Change the markup for double quotation marks from "\"" to """.
2015-01-16 17:56:26 +09:00
Jaehyun Cho aeb4bcda16 syntax_color: Add enventor_object_syntax_color_set()/get().
Summary: Add enventor_object_syntax_color_set()/get() to support changing text color.

@feature

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1833
2015-01-05 13:27:54 +09:00
ChunEon Park 6569821349 lib/syntax_color: free allocated memory. 2014-11-01 18:45:42 +09:00
ChunEon Park e5927b37eb library support.
current enventor apis are under beta apis.
im notice you these apis could be changed soon.
2014-09-30 23:56:16 +09:00