From 28f8ad0f5a11e69d2e59bed2aaf25f256197d6dc Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 7 Aug 2016 21:15:46 +1000 Subject: [PATCH] Run header checker --- qcsrc/menu/command/all.qc | 2 ++ qcsrc/menu/command/all.qh | 1 + qcsrc/menu/matrix.qc | 2 ++ qcsrc/menu/matrix.qh | 1 + qcsrc/tools/headerstyle.sh | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 qcsrc/menu/command/all.qh create mode 100644 qcsrc/menu/matrix.qh diff --git a/qcsrc/menu/command/all.qc b/qcsrc/menu/command/all.qc index 283cca0c1..2f8df96b6 100644 --- a/qcsrc/menu/command/all.qc +++ b/qcsrc/menu/command/all.qc @@ -1 +1,3 @@ +#include "all.qh" + #include diff --git a/qcsrc/menu/command/all.qh b/qcsrc/menu/command/all.qh new file mode 100644 index 000000000..6f70f09be --- /dev/null +++ b/qcsrc/menu/command/all.qh @@ -0,0 +1 @@ +#pragma once diff --git a/qcsrc/menu/matrix.qc b/qcsrc/menu/matrix.qc index b0c4ec880..3039b4a7d 100644 --- a/qcsrc/menu/matrix.qc +++ b/qcsrc/menu/matrix.qc @@ -1,3 +1,5 @@ +#include "matrix.qh" + var void MX_Handle(int buf, string ancestor) { string type = json_get(buf, strcat(ancestor, ".type")); diff --git a/qcsrc/menu/matrix.qh b/qcsrc/menu/matrix.qh new file mode 100644 index 000000000..6f70f09be --- /dev/null +++ b/qcsrc/menu/matrix.qh @@ -0,0 +1 @@ +#pragma once diff --git a/qcsrc/tools/headerstyle.sh b/qcsrc/tools/headerstyle.sh index b638927bf..daf20ebf3 100755 --- a/qcsrc/tools/headerstyle.sh +++ b/qcsrc/tools/headerstyle.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -cd "$(dirname "$0")" +cd ${0%/*} cd .. function startswith() { -- 2.39.2