Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit expose the encode and decode string functions fo...
details: https://anonhg.NetBSD.org/src/rev/7ca4b674d2ec
branches: trunk
changeset: 750437:7ca4b674d2ec
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 31 18:32:37 2009 +0000
description:
expose the encode and decode string functions for the benefit of history
and readline.
diffstat:
lib/libedit/chartype.c | 8 ++++----
lib/libedit/chartype.h | 8 +++++---
2 files changed, 9 insertions(+), 7 deletions(-)
diffs (61 lines):
diff -r af2aa7509f22 -r 7ca4b674d2ec lib/libedit/chartype.c
--- a/lib/libedit/chartype.c Thu Dec 31 16:04:32 2009 +0000
+++ b/lib/libedit/chartype.c Thu Dec 31 18:32:37 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chartype.c,v 1.1 2009/12/30 22:37:40 christos Exp $ */
+/* $NetBSD: chartype.c,v 1.2 2009/12/31 18:32:37 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: chartype.c,v 1.1 2009/12/30 22:37:40 christos Exp $");
+__RCSID("$NetBSD: chartype.c,v 1.2 2009/12/31 18:32:37 christos Exp $");
#endif /* not lint && not SCCSID */
#include "el.h"
#include <stdlib.h>
@@ -75,7 +75,7 @@
}
-protected char *
+public char *
ct_encode_string(const Char *s, ct_buffer_t *conv)
{
char *dst;
@@ -115,7 +115,7 @@
return conv->cbuff;
}
-protected Char *
+public Char *
ct_decode_string(const char *s, ct_buffer_t *conv)
{
size_t len = 0;
diff -r af2aa7509f22 -r 7ca4b674d2ec lib/libedit/chartype.h
--- a/lib/libedit/chartype.h Thu Dec 31 16:04:32 2009 +0000
+++ b/lib/libedit/chartype.h Thu Dec 31 18:32:37 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chartype.h,v 1.2 2009/12/30 23:54:52 christos Exp $ */
+/* $NetBSD: chartype.h,v 1.3 2009/12/31 18:32:37 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -171,11 +171,13 @@
size_t wsize;
} ct_buffer_t;
+#define ct_encode_string __ct_encode_string
/* Encode a wide character string and return the UTF-8 encoded result. */
-protected char *ct_encode_string(const Char *, ct_buffer_t *);
+public char *ct_encode_string(const Char *, ct_buffer_t *);
+#define ct_decode_string __ct_decode_string
/* Decode a (multi)?byte string and return the wide character string result. */
-protected Char *ct_decode_string(const char *, ct_buffer_t *);
+public Char *ct_decode_string(const char *, ct_buffer_t *);
/* Decode a (multi)?byte argv string array.
* The pointer returned must be free()d when done. */
Home |
Main Index |
Thread Index |
Old Index