Cleanup: apply `include-what-you-use` guideline for `mbstate_t`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 3 Dec 2019 20:47:24 +0000 (15:47 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Feb 2020 17:10:43 +0000 (12:10 -0500)
I saw that some files use the `mbstate_t` type but there are not including
a header for it. The `mbstate_t` type is defined by the following header:
  <wchar.h>

So, to follow the best practice of including what is used in a file, I
added `#include <wchar.h>` in files using `mbstate_t`.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I103d144ede1a8488d2662d3b8ba5337accafda99

snprintf/various.h
snprintf/vfprintf.c
snprintf/wcio.h

index 64f1db1fb44aedffd27c8db0f47c272284280789..13d29b7b59069627275d6419046b40499cc9266d 100644 (file)
@@ -36,6 +36,7 @@
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdio.h>
+#include <wchar.h>
 
 struct __lttng_ust_sbuf {
         unsigned char *_base;
index 896a8840e5470321c1bc1ac00236dfd0cb0f699d..4ac63c3c9238dfa188164076d5e9037cfd3c3734 100644 (file)
@@ -51,6 +51,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <wchar.h>
 
 #include "local.h"
 #include "fvwrite.h"
index 453a41b1674423de032e72faa727f80b89f7a8ed..ddaf9e4b2f415ecc2921e3e3300ff3ed0ec48a92 100644 (file)
@@ -33,6 +33,7 @@
 #define _WCIO_H_
 
 #include <stddef.h>
+#include <wchar.h>
 
 /* minimal requirement of SUSv2 */
 #define WCIO_UNGETWC_BUFSIZE 1
This page took 0.026168 seconds and 4 git commands to generate.