mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2025-02-08 21:06:07 +00:00
silly space saving in sed
This commit is contained in:
parent
54767db8c7
commit
34c4e5f0b3
@ -64,6 +64,7 @@
|
|||||||
/* Each sed command turns into one of these structures. */
|
/* Each sed command turns into one of these structures. */
|
||||||
typedef struct sed_cmd_s {
|
typedef struct sed_cmd_s {
|
||||||
/* Ordered by alignment requirements: currently 36 bytes on x86 */
|
/* Ordered by alignment requirements: currently 36 bytes on x86 */
|
||||||
|
struct sed_cmd_s *next; /* Next command (linked list, NULL terminated) */
|
||||||
|
|
||||||
/* address storage */
|
/* address storage */
|
||||||
regex_t *beg_match; /* sed -e '/match/cmd' */
|
regex_t *beg_match; /* sed -e '/match/cmd' */
|
||||||
@ -75,18 +76,17 @@ typedef struct sed_cmd_s {
|
|||||||
FILE *sw_file; /* File (sw) command writes to, -1 for none. */
|
FILE *sw_file; /* File (sw) command writes to, -1 for none. */
|
||||||
char *string; /* Data string for (saicytb) commands. */
|
char *string; /* Data string for (saicytb) commands. */
|
||||||
|
|
||||||
unsigned short which_match; /* (s) Which match to replace (0 for all) */
|
unsigned short which_match; /* (s) Which match to replace (0 for all) */
|
||||||
|
|
||||||
/* Bitfields (gcc won't group them if we don't) */
|
/* Bitfields (gcc won't group them if we don't) */
|
||||||
unsigned int invert:1; /* the '!' after the address */
|
unsigned invert:1; /* the '!' after the address */
|
||||||
unsigned int in_match:1; /* Next line also included in match? */
|
unsigned in_match:1; /* Next line also included in match? */
|
||||||
unsigned int sub_p:1; /* (s) print option */
|
unsigned sub_p:1; /* (s) print option */
|
||||||
|
|
||||||
char sw_last_char; /* Last line written by (sw) had no '\n' */
|
char sw_last_char; /* Last line written by (sw) had no '\n' */
|
||||||
|
|
||||||
/* GENERAL FIELDS */
|
/* GENERAL FIELDS */
|
||||||
char cmd; /* The command char: abcdDgGhHilnNpPqrstwxy:={} */
|
char cmd; /* The command char: abcdDgGhHilnNpPqrstwxy:={} */
|
||||||
struct sed_cmd_s *next; /* Next command (linked list, NULL terminated) */
|
|
||||||
} sed_cmd_t;
|
} sed_cmd_t;
|
||||||
|
|
||||||
static const char semicolon_whitespace[] = "; \n\r\t\v";
|
static const char semicolon_whitespace[] = "; \n\r\t\v";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user