From 23f1902a07c792fe10c1649259eaf4b80a6f6c43 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 1 Feb 2019 00:53:05 -0500 Subject: Add def script --- home/.local/bin/def | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 home/.local/bin/def (limited to 'home/.local/bin/def') diff --git a/home/.local/bin/def b/home/.local/bin/def new file mode 100755 index 00000000..ea8b9536 --- /dev/null +++ b/home/.local/bin/def @@ -0,0 +1,47 @@ +#!/bin/sh +set -eu + +macro=$1 +headers=' +assert.h +complex.h +ctype.h +errno.h +fenv.h +float.h +inttypes.h +iso646.h +limits.h +locale.h +math.h +setjmp.h +signal.h +stdalign.h +stdarg.h +stdatomic.h +stdbool.h +stddef.h +stdint.h +stdio.h +stdlib.h +stdnoreturn.h +string.h +tgmath.h +threads.h +time.h +uchar.h +wchar.h +wctype.h +' + +for header in $headers; do + defined=$( + echo "$macro" \ + | cc -E -x c -include "$header" - \ + 2> /dev/null \ + | tail -n 1 + ) + [ $? -ne 0 -o "$defined" = "$macro" ] && continue + echo "#include <$header>" + echo "$defined" +done -- cgit 1.4.1 ctive' href='/src/log/www/text.causal.agency/006-some-libs.7?follow=1'>log tree commit diff
path: root/www/text.causal.agency/006-some-libs.7 (unfollow)
Commit message (Expand)Author
2020-07-10Add The Broken KingdomsJune McEnroe
2020-07-08Add facebook and twitter to title user-agentJune McEnroe
2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe
2020-06-30Add Ancillary JusticeJune McEnroe
2020-06-26Add password non-manager to planJune McEnroe
2020-06-26Tweak TF2 sensitivities once moreJune McEnroe
2020-06-19Add note about litterbox bot useJune McEnroe
2020-06-19Publish "IRC suite"June McEnroe
2020-06-17Add errors to link.shJune McEnroe