diff options
Diffstat (limited to 'usr.bin/sed/defs.h')
-rw-r--r-- | usr.bin/sed/defs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/sed/defs.h b/usr.bin/sed/defs.h index b564115..d2f7157 100644 --- a/usr.bin/sed/defs.h +++ b/usr.bin/sed/defs.h @@ -36,6 +36,8 @@ * $FreeBSD: head/usr.bin/sed/defs.h 192732 2009-05-25 06:45:33Z brian $ */ +#include <stdbool.h> + /* * Types of address specifications */ @@ -68,7 +70,7 @@ struct s_subst { int wfd; /* Cached file descriptor */ regex_t *re; /* Regular expression */ unsigned int maxbref; /* Largest backreference. */ - u_long linenum; /* Line number. */ + unsigned long linenum; /* Line number. */ char *new; /* Replacement text */ }; @@ -94,7 +96,7 @@ struct s_tr { struct s_command { struct s_command *next; /* Pointer to next command */ struct s_addr *a1, *a2; /* Start and end address */ - u_long startline; /* Start line number or zero */ + unsigned long startline; /* Start line number or zero */ char *t; /* Text for : a c i r w */ union { struct s_command *c; /* Command(s) for b t { */ @@ -103,7 +105,7 @@ struct s_command { int fd; /* File descriptor for w */ } u; char code; /* Command code */ - u_int nonsel:1; /* True if ! */ + bool nonsel; /* True if ! */ }; /* |