[vte] build: Remove wint_t checks
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] build: Remove wint_t checks
- Date: Tue, 24 Oct 2017 08:39:27 +0000 (UTC)
commit 99e37b77ab3f6c31e5a29dda2b1ce914b5d9902c
Author: Christian Persch <chpe src gnome org>
Date: Tue Oct 24 10:38:59 2017 +0200
build: Remove wint_t checks
We don't really need this type anyway.
configure.ac | 18 ------------------
src/vte.cc | 10 ++--------
2 files changed, 2 insertions(+), 26 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fb15382..3139c96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -320,24 +320,6 @@ PKG_CHECK_MODULES([APP],[
pango >= $PANGO_REQUIRED
gtk+-$GTK_API_VERSION >= $GTK_REQUIRED])
-wcs_funcs_includes="
-#ifdef HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#else
-# ifdef HAVE_STRINGS_H
-# include <strings.h>
-# endif
-#endif
-#ifdef HAVE_WCHAR_H
-# include <wchar.h>
-#endif
-"
-
-AC_CHECK_TYPES(wint_t, AC_DEFINE(HAVE_WINT_T, , [Defined when the wint_t type is supported]),
,$wcs_funcs_includes)
-
################################################################################
# Glade catalogue
################################################################################
diff --git a/src/vte.cc b/src/vte.cc
index 37d628c..c12e3ed 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -86,10 +86,6 @@ static inline double round(double x) {
}
#endif
-#ifndef HAVE_WINT_T
-typedef gunichar wint_t;
-#endif
-
#define WORD_CHAR_EXCEPTIONS_DEFAULT "-#%&+,./=?@\\_~\302\267"
#define I_(string) (g_intern_static_string(string))
@@ -3731,11 +3727,9 @@ skip_chunk:
(long) c);
}
if (c < 32) {
- g_printerr("^%lc\n",
- (wint_t)c + 64);
+ g_printerr("^%c\n", c + 64);
} else {
- g_printerr("`%lc'\n",
- (wint_t)c);
+ g_printerr("`%c'\n", c);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]