From 211387ce2f7617b0e155b734259d3aaba3116db5 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 16 Jan 2018 12:12:33 -0500 Subject: [PATCH] Mark generated @yields on classes and rate-each as such on symbols * src/current/include/preproc/expand.xsl (lv:classify): Set `@preproc:yields-generated' if `@yields' was not previously defined. * src/current/include/preproc/macros.xsl: (lv:rate-each): Set `@preproc:yields-generated` if `@yields' was not previously defined. * src/current/include/preproc/symtable.xsl: (lv:rate, lv:classify): Set `@preproc:generated` on symbol if `@preproc:yields-generated'. --- src/current/include/preproc/expand.xsl | 3 +++ src/current/include/preproc/macros.xsl | 2 ++ src/current/include/preproc/symtable.xsl | 11 ++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/current/include/preproc/expand.xsl b/src/current/include/preproc/expand.xsl index 0cb43124..e1d82af4 100644 --- a/src/current/include/preproc/expand.xsl +++ b/src/current/include/preproc/expand.xsl @@ -550,6 +550,9 @@ + + + diff --git a/src/current/include/preproc/symtable.xsl b/src/current/include/preproc/symtable.xsl index 8bb31469..e8fefe5a 100644 --- a/src/current/include/preproc/symtable.xsl +++ b/src/current/include/preproc/symtable.xsl @@ -660,7 +660,12 @@ + local="{@local}" dtype="float" dim="0" tex="{@sym}"> + + + + + @@ -736,6 +741,10 @@ extclass="{$external}" terminate="{$terminate}" type="cgen" dtype="boolean" dim="?" desc="{@desc}"> + + + +