Deleted Added
full compact
chartype.h (296435) chartype.h (298896)
1/* $NetBSD: chartype.h,v 1.15 2015/05/17 13:14:41 christos Exp $ */
2
3/*-
4 * Copyright (c) 2009 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
27 *
1/* $NetBSD: chartype.h,v 1.15 2015/05/17 13:14:41 christos Exp $ */
2
3/*-
4 * Copyright (c) 2009 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/lib/libedit/chartype.h 296435 2016-03-06 21:32:54Z pfg $
28 * $FreeBSD: head/lib/libedit/chartype.h 298896 2016-05-01 19:37:33Z pfg $
29 */
30
31#ifndef _h_chartype_f
32#define _h_chartype_f
33
34
35
36#ifdef WIDECHAR

--- 162 unchanged lines hidden (view full) ---

199#define ct_decode_argv(l, s, b) (s)
200#define ct_conv_cbuff_resize(b, s) ((s) == (0))
201#define ct_conv_wbuff_resize(b, s) ((s) == (0))
202#define ct_encode_char(d, l, s) (*d = s, 1)
203#define ct_free_argv(s)
204#endif
205
206#ifndef NARROWCHAR
29 */
30
31#ifndef _h_chartype_f
32#define _h_chartype_f
33
34
35
36#ifdef WIDECHAR

--- 162 unchanged lines hidden (view full) ---

199#define ct_decode_argv(l, s, b) (s)
200#define ct_conv_cbuff_resize(b, s) ((s) == (0))
201#define ct_conv_wbuff_resize(b, s) ((s) == (0))
202#define ct_encode_char(d, l, s) (*d = s, 1)
203#define ct_free_argv(s)
204#endif
205
206#ifndef NARROWCHAR
207/* Encode a characted into the destination buffer, provided there is sufficent
207/* Encode a characted into the destination buffer, provided there is sufficient
208 * buffer space available. Returns the number of bytes used up (zero if the
209 * character cannot be encoded, -1 if there was not enough space available). */
210
208 * buffer space available. Returns the number of bytes used up (zero if the
209 * character cannot be encoded, -1 if there was not enough space available). */
210
211/* The maximum buffer size to hold the most unwieldly visual representation,
211/* The maximum buffer size to hold the most unwieldy visual representation,
212 * in this case \U+nnnnn. */
213#define VISUAL_WIDTH_MAX ((size_t)8)
214
215/* The terminal is thought of in terms of X columns by Y lines. In the cases
216 * where a wide character takes up more than one column, the adjacent
217 * occupied column entries will contain this faux character. */
218#define MB_FILL_CHAR ((Char)-1)
219

--- 30 unchanged lines hidden ---
212 * in this case \U+nnnnn. */
213#define VISUAL_WIDTH_MAX ((size_t)8)
214
215/* The terminal is thought of in terms of X columns by Y lines. In the cases
216 * where a wide character takes up more than one column, the adjacent
217 * occupied column entries will contain this faux character. */
218#define MB_FILL_CHAR ((Char)-1)
219

--- 30 unchanged lines hidden ---