aboutsummaryrefslogtreecommitdiff
path: root/scripts/update_terminfo.sh
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-08-11 10:06:57 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-08-11 16:06:57 +0200
commit6aefae8c4e6e273ae96f1135b74a081543b548e5 (patch)
treef6e30fbd66123bd91fe4950b137809a7cd9fa5bb /scripts/update_terminfo.sh
parentc30812be7bff56d3a18a879240d47491c5934164 (diff)
downloadrneovim-6aefae8c4e6e273ae96f1135b74a081543b548e5.tar.gz
rneovim-6aefae8c4e6e273ae96f1135b74a081543b548e5.tar.bz2
rneovim-6aefae8c4e6e273ae96f1135b74a081543b548e5.zip
terminfo: add header guard, stdint.h for int8_t (#8848)
Lint fixes for single-include test.
Diffstat (limited to 'scripts/update_terminfo.sh')
-rwxr-xr-xscripts/update_terminfo.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/update_terminfo.sh b/scripts/update_terminfo.sh
index f9b5096f55..e3b1692b15 100755
--- a/scripts/update_terminfo.sh
+++ b/scripts/update_terminfo.sh
@@ -61,8 +61,13 @@ cat > "$target" <<EOF
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
//
-// This file got generated by scripts/update_terminfo.sh and $(tic -V)
+// Generated by scripts/update_terminfo.sh and $(tic -V)
//
+
+#ifndef NVIM_TUI_TERMINFO_DEFS_H
+#define NVIM_TUI_TERMINFO_DEFS_H
+
+#include <stdint.h>
EOF
for term in $sorted_terms; do
@@ -78,4 +83,7 @@ for term in $sorted_terms; do
echo "};"
done >> "$target"
+cat > "$target" <<EOF
+#endif // NVIM_TUI_TERMINFO_DEFS_H
+EOF
print_bold 'done\n'