From 35988b61919747a21d0b2cfd83076621082343a6 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 24 Apr 2013 04:17:17 +0000 Subject: [PATCH] Make ftepps __NULL__ translate to gmqccs untyped nil keyword (this isn't correct behaviour of the __NULL__ constant, but it works) --- ftepp.c | 6 ++++++ misc/check-doc.sh | 0 2 files changed, 6 insertions(+) mode change 100644 => 100755 misc/check-doc.sh diff --git a/ftepp.c b/ftepp.c index b07899a..7d5ba3e 100755 --- a/ftepp.c +++ b/ftepp.c @@ -1828,6 +1828,12 @@ ftepp_t *ftepp_create() ftepp_add_macro(ftepp, "__STD_VERSION_MINOR__", minor); ftepp_add_macro(ftepp, "__STD_VERSION_MAJOR__", major); + /* + * We're going to just make __NULL__ nil, which works for 60% of the + * cases of __NULL_ for fteqcc. + */ + ftepp_add_macro(ftepp, "__NULL__", "nil"); + return ftepp; } diff --git a/misc/check-doc.sh b/misc/check-doc.sh old mode 100644 new mode 100755 -- 2.39.2