shithub: choc

Download patch

ref: deb89ab15d8fa434a94c52ed0c9a5bb2e309eeb4
parent: 88fe15083f4d55936c6d7708e35d65facd601a5c
author: Turo Lamminen <[email protected]>
date: Tue Sep 6 11:00:18 EDT 2022

Add check-extern.sh

--- /dev/null
+++ b/check-extern.sh
@@ -1,0 +1,6 @@
+#!/bin/sh
+EXTERN="$(grep -e 'extern[^A-Za-z0-9_]' $(find . -name *.c))"
+if [ -n "$EXTERN" ] ; then
+	echo "extern found in .c files:\n${EXTERN}"
+	exit 1
+fi