svn commit: trunk/busybox/editors

pgf at busybox.net pgf at busybox.net
Sun Oct 9 14:26:30 UTC 2005


Author: pgf
Date: 2005-10-09 07:26:26 -0700 (Sun, 09 Oct 2005)
New Revision: 11816

Log:
make Hit_Return() available when CONFIG_FEATURE_VI_COLON is off.  it's
needed elsewhere as well now.


Modified:
   trunk/busybox/editors/vi.c


Changeset:
Modified: trunk/busybox/editors/vi.c
===================================================================
--- trunk/busybox/editors/vi.c	2005-10-09 11:16:01 UTC (rev 11815)
+++ trunk/busybox/editors/vi.c	2005-10-09 14:26:26 UTC (rev 11816)
@@ -284,12 +284,13 @@
 static void Indicate_Error(void);       // use flash or beep to indicate error
 #define indicate_error(c) Indicate_Error()
 
+static void Hit_Return(void);
+
 #ifdef CONFIG_FEATURE_VI_SEARCH
 static Byte *char_search(Byte *, Byte *, int, int);	// search for pattern starting at p
 static int mycmp(Byte *, Byte *, int);	// string cmp based in "ignorecase"
 #endif							/* CONFIG_FEATURE_VI_SEARCH */
 #ifdef CONFIG_FEATURE_VI_COLON
-static void Hit_Return(void);
 static Byte *get_one_address(Byte *, int *);	// get colon addr, if present
 static Byte *get_address(Byte *, int *, int *);	// get two colon addrs, if present
 static void colon(Byte *);	// execute the "colon" mode cmds
@@ -1146,6 +1147,7 @@
 	psb(":s expression missing delimiters");
 #endif
 }
+#endif							/* CONFIG_FEATURE_VI_COLON */
 
 static void Hit_Return(void)
 {
@@ -1158,7 +1160,6 @@
 		;
 	redraw(TRUE);		// force redraw all
 }
-#endif							/* CONFIG_FEATURE_VI_COLON */
 
 //----- Synchronize the cursor to Dot --------------------------
 static void sync_cursor(Byte * d, int *row, int *col)




More information about the busybox-cvs mailing list