summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcmd/common/wc.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libcmd/common/wc.h')
-rw-r--r--usr/src/lib/libcmd/common/wc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/lib/libcmd/common/wc.h b/usr/src/lib/libcmd/common/wc.h
index 2752af36a3..e23a1ec2c4 100644
--- a/usr/src/lib/libcmd/common/wc.h
+++ b/usr/src/lib/libcmd/common/wc.h
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1992-2008 AT&T Intellectual Property *
+* Copyright (c) 1992-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
@@ -37,15 +37,17 @@
#define WC_MBYTE 0x08
#define WC_LONGEST 0x10
#define WC_QUIET 0x20
+#define WC_NOUTF8 0x40
typedef struct
{
- signed char space[1<<CHAR_BIT];
+ char type[1<<CHAR_BIT];
Sfoff_t words;
Sfoff_t lines;
Sfoff_t chars;
Sfoff_t longest;
int mode;
+ int mb;
} Wc_t;
#define wc_count _cmd_wccount