editors/vi.c: In function 'do_cmd':
editors/vi.c:3643: error: expected ')' before 'readonly_mode'
editors/vi.c:3643: error: expected statement before ')' token
Attached patch, possible workaround.
Cheers,
--
Cristian
Index: editors/vi.c
===================================================================
--- busybox-svn/editors/vi.c (revision 22467)
+++ busybox-svn/editors/vi.c (working copy)
@@ -269,7 +269,7 @@
#define modifying_cmds (G.modifying_cmds )
#define last_search_pattern (G.last_search_pattern)
#define chars_to_parse (G.chars_to_parse )
-
+
#define edit_file__cur_line (G.edit_file__cur_line)
#define refresh__old_offset (G.refresh__old_offset)
#define format_edit_status__tot (G.format_edit_status__tot)
@@ -3640,10 +3640,12 @@
break;
}
if (file_modified) {
- if (ENABLE_FEATURE_VI_READONLY && readonly_mode) {
- status_line_bold("\"%s\" File is read only", current_filename);
- break;
- }
+ USE_FEATURE_VI_READONLY(
+ if (readonly_mode) {
+ status_line_bold("\"%s\" File is read only", current_filename);
+ break;
+ }
+ )
cnt = file_write(current_filename, text, end - 1);
if (cnt < 0) {
if (cnt == -1)
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox