Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/editors/ed.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/editors/ed.c
r3232 r3621 8 8 */ 9 9 10 //config:config ED 11 //config: bool "ed" 12 //config: default y 13 //config: help 14 //config: The original 1970's Unix text editor, from the days of teletypes. 15 //config: Small, simple, evil. Part of SUSv3. If you're not already using 16 //config: this, you don't need it. 17 18 //kbuild:lib-$(CONFIG_ED) += ed.o 19 20 //applet:IF_ED(APPLET(ed, BB_DIR_BIN, BB_SUID_DROP)) 21 10 22 //usage:#define ed_trivial_usage "" 11 23 //usage:#define ed_full_usage "" 12 24 13 25 #include "libbb.h" 26 #include "common_bufsiz.h" 14 27 15 28 typedef struct LINE { … … 24 37 25 38 enum { 26 USERSIZE = sizeof(searchString)> 1024 ? 102427 : sizeof(searchString)- 1, /* max line length typed in by user */39 USERSIZE = COMMON_BUFSIZE > 1024 ? 1024 40 : COMMON_BUFSIZE - 1, /* max line length typed in by user */ 28 41 INITBUF_SIZE = 1024, /* initial buffer size */ 29 42 }; … … 55 68 #define marks (G.marks ) 56 69 #define INIT_G() do { \ 70 setup_common_bufsiz(); \ 57 71 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ 58 72 } while (0) … … 195 209 printf("\"%s\"\n", fileName); 196 210 else 197 p rintf("No file name\n");211 puts("No file name"); 198 212 break; 199 213 } … … 721 735 bufUsed += cc; 722 736 bufPtr = bufBase; 723 724 737 } while (cc > 0); 725 738
Note:
See TracChangeset
for help on using the changeset viewer.