OpenBSD CVS

CVS log for src/lib/libedit/chartype.c


[BACK] Up to [local] / src / lib / libedit

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 29 09:47:00 2019 UTC (5 years, 4 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, HEAD
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Terminate NULL in argv.  This fix is come from 1.31 from NetBSD
lib/libedit/chartype.c via FreeBSD.  From tj@

ok tb

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 11 21:17:29 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.14: +5 -5 lines
Diff to previous 1.14 (colored)

delete the "private" and "public" preprocessor macros, just use standard C;
OK martijn@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 11 20:54:05 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

Clean up chartype.h:

* not used in tokenizer.c
* only use it for !NARROWCHAR
* no need for underscores before ct_{de,en}code_string()
* make the conversion buffer resize function private

OK martijn@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 11 20:43:33 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +16 -16 lines
Diff to previous 1.12 (colored)

get rid of the non-standard data type "Char" in almost all files;
ok martijn@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 9 20:15:26 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +8 -7 lines
Diff to previous 1.11 (colored)

Delete 26 wrapper macros and two wrapper functions that are no
longer needed now that we always compile with wide character support,
reducing code obfuscation.

OK czarkoff@ martijn@.
Diff also proofread by Christian Heckendorf <mbie at ulmus dot me>.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 9 19:31:55 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.10: +1 -35 lines
Diff to previous 1.10 (colored)

Always compile with WIDECHAR on and delete that preprocessor switch.
OK martijn@.
Diff also proofread by Christian Heckendorf <mbie at ulmus dot me>.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 21 18:40:25 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +1 -8 lines
Diff to previous 1.9 (colored)

Christos Zoulas just rescinded clauses 3 & 4 of his licenses, see
NetBSD chartype.c rev. 1.23, chartype.h rev. 1.25, eln.c rev. 1.28.
No code change.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 21 17:28:10 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Make the read_char() function always take a wchar_t * argument.

On first sight, it might look as if this required a bump because
it seems to change the public type el_rfunc_t.  But we only compile
with WIDECHAR, and in that case, there is no change in the interface.

This also simplifies some logic by getting rid of the NARROW_READ flag
which was broken anyway.

OK czarkoff@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 20 23:48:27 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +7 -3 lines
Diff to previous 1.7 (colored)

Cleanup of standard header inclusion:

1. Add the missing <errno.h> to sig.c.
2. Do not include standard headers from private headers "chared.h"
and "el.h", include them directly where needed.
3. Delete a few needless inclusions of <ctype.h>.
4. Sort the standard headers.
5. Delete _GNU_SOURCE weirdness from histedit.h, that file doesn't even
need the access to wcsdup(3) mentioned in the comment.
6. Delete some trailing blanks and blanks before tabs.

OK czarkoff@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 20 20:16:09 2016 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +16 -1 lines
Diff to previous 1.6 (colored)

Get rid of "#ifdef WIDECHAR" and one goto in read_char(),
making the code more readable.  Instead, provide an mbrtowc(3)
replacement function in chartype.[hc], files that encapsulate
such system dependencies anyway.  No functional change.
OK czarkoff@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 17 06:07:50 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.5: +11 -11 lines
Diff to previous 1.5 (colored)

Remove non-exposed malloc/realloc/free wrappers, and then substitute
reallocarray() where it helps.
ok doug

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 22 00:31:38 2013 UTC (11 years ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.4: +13 -18 lines
Diff to previous 1.4 (colored)

Sync with upstream.  Fix buffer growing and memory allocation for wide
chars.  Handle return of mbstowcs().

ok nickm

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 17 20:14:24 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.3: +9 -8 lines
Diff to previous 1.3 (colored)

Calculate the size for the wchar_t argv correctly, fixes memory
corruption reported by LEVAI Daniel <leva at ecentrum dot hu>. Also
rename "bytes" to "wlen" since bytes is not accurate, suggested by
stsp@.

ok stsp oga

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 7 05:40:42 2011 UTC (12 years, 11 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

sync with upstream, retaining local modifications.

ok nicm@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 4 18:48:17 2011 UTC (13 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.1: +6 -2 lines
Diff to previous 1.1 (colored)

Make wcwidth() callers cope with -1 return value. Doesn't affect the build yet.
ok nicm

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 30 00:05:35 2010 UTC (13 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8

Update libedit to bring it into sync with the latest version from NetBSD.

ok deraadt

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.