mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
eliminate 'watch' as a view ui rule, move formally into just being a regular view ui build. hook up user file saving. fix metadesk parser - newlines must terminate *all* active implicit set parsing work.
This commit is contained in:
+5
-2
@@ -1052,10 +1052,13 @@ if(work_top == 0) {work_top = &broken_work;}\
|
|||||||
goto end_consume;
|
goto end_consume;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- rjf: [main_implicit] newline -> pop
|
//- rjf: [main_implicit] newline -> pop *all* current implicit work tasks
|
||||||
if(work_top->kind == MD_ParseWorkKind_MainImplicit && token->flags & MD_TokenFlag_Newline)
|
if(work_top->kind == MD_ParseWorkKind_MainImplicit && token->flags & MD_TokenFlag_Newline)
|
||||||
{
|
{
|
||||||
MD_ParseWorkPop();
|
for(;work_top->kind == MD_ParseWorkKind_MainImplicit;)
|
||||||
|
{
|
||||||
|
MD_ParseWorkPop();
|
||||||
|
}
|
||||||
token += 1;
|
token += 1;
|
||||||
goto end_consume;
|
goto end_consume;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -443,6 +443,12 @@ os_copy_file_path(String8 dst, String8 src)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal B32
|
||||||
|
os_move_file_path(String8 dst, String8 src)
|
||||||
|
{
|
||||||
|
// TODO(rjf)
|
||||||
|
}
|
||||||
|
|
||||||
internal String8
|
internal String8
|
||||||
os_full_path_from_path(Arena *arena, String8 path)
|
os_full_path_from_path(Arena *arena, String8 path)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ internal FileProperties os_properties_from_file(OS_Handle file);
|
|||||||
internal OS_FileID os_id_from_file(OS_Handle file);
|
internal OS_FileID os_id_from_file(OS_Handle file);
|
||||||
internal B32 os_delete_file_at_path(String8 path);
|
internal B32 os_delete_file_at_path(String8 path);
|
||||||
internal B32 os_copy_file_path(String8 dst, String8 src);
|
internal B32 os_copy_file_path(String8 dst, String8 src);
|
||||||
|
internal B32 os_move_file_path(String8 dst, String8 src);
|
||||||
internal String8 os_full_path_from_path(Arena *arena, String8 path);
|
internal String8 os_full_path_from_path(Arena *arena, String8 path);
|
||||||
internal B32 os_file_path_exists(String8 path);
|
internal B32 os_file_path_exists(String8 path);
|
||||||
internal B32 os_folder_path_exists(String8 path);
|
internal B32 os_folder_path_exists(String8 path);
|
||||||
|
|||||||
@@ -490,6 +490,17 @@ os_copy_file_path(String8 dst, String8 src)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal B32
|
||||||
|
os_move_file_path(String8 dst, String8 src)
|
||||||
|
{
|
||||||
|
Temp scratch = scratch_begin(0, 0);
|
||||||
|
String16 dst16 = str16_from_8(scratch.arena, dst);
|
||||||
|
String16 src16 = str16_from_8(scratch.arena, src);
|
||||||
|
B32 result = MoveFileW((WCHAR*)src16.str, (WCHAR*)dst16.str);
|
||||||
|
scratch_end(scratch);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
internal String8
|
internal String8
|
||||||
os_full_path_from_path(Arena *arena, String8 path)
|
os_full_path_from_path(Arena *arena, String8 path)
|
||||||
{
|
{
|
||||||
|
|||||||
+1878
-1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -239,7 +239,6 @@ internal RD_WatchViewTextEditState *rd_watch_view_text_edit_state_from_pt(RD_Wat
|
|||||||
|
|
||||||
RD_VIEW_UI_FUNCTION_DEF(null);
|
RD_VIEW_UI_FUNCTION_DEF(null);
|
||||||
|
|
||||||
EV_EXPAND_RULE_INFO_FUNCTION_DEF(watch);
|
|
||||||
EV_EXPAND_RULE_INFO_FUNCTION_DEF(text);
|
EV_EXPAND_RULE_INFO_FUNCTION_DEF(text);
|
||||||
EV_EXPAND_RULE_INFO_FUNCTION_DEF(disasm);
|
EV_EXPAND_RULE_INFO_FUNCTION_DEF(disasm);
|
||||||
EV_EXPAND_RULE_INFO_FUNCTION_DEF(memory);
|
EV_EXPAND_RULE_INFO_FUNCTION_DEF(memory);
|
||||||
@@ -247,7 +246,6 @@ EV_EXPAND_RULE_INFO_FUNCTION_DEF(bitmap);
|
|||||||
EV_EXPAND_RULE_INFO_FUNCTION_DEF(color_rgba);
|
EV_EXPAND_RULE_INFO_FUNCTION_DEF(color_rgba);
|
||||||
EV_EXPAND_RULE_INFO_FUNCTION_DEF(geo3d);
|
EV_EXPAND_RULE_INFO_FUNCTION_DEF(geo3d);
|
||||||
|
|
||||||
RD_VIEW_UI_FUNCTION_DEF(watch);
|
|
||||||
RD_VIEW_UI_FUNCTION_DEF(text);
|
RD_VIEW_UI_FUNCTION_DEF(text);
|
||||||
RD_VIEW_UI_FUNCTION_DEF(disasm);
|
RD_VIEW_UI_FUNCTION_DEF(disasm);
|
||||||
RD_VIEW_UI_FUNCTION_DEF(memory);
|
RD_VIEW_UI_FUNCTION_DEF(memory);
|
||||||
|
|||||||
Reference in New Issue
Block a user