summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorrealead <egor.dranischnikow@googlemail.com>2019-05-30 09:09:00 +0200
committerStefan Behnel <stefan_ml@behnel.de>2019-05-30 09:09:00 +0200
commit55dcc92dac53269e62359eeb17b013fab630227b (patch)
tree3be722421146fbbd152178a15791a0068a7d7a23 /Cython/Compiler/ModuleNode.py
parent5f79a743dc2932ab19b5ae0aac706845970b25f2 (diff)
downloadcython-55dcc92dac53269e62359eeb17b013fab630227b.tar.gz
Support showing the complete C code in the annotated html-file (GH-2858)
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 2d4144b62..a705dfd48 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -341,7 +341,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
modules = self.referenced_modules
if Options.annotate or options.annotate:
- rootwriter = Annotate.AnnotationCCodeWriter()
+ show_entire_c_code = Options.annotate == "fullc" or options.annotate == "fullc"
+ rootwriter = Annotate.AnnotationCCodeWriter(show_entire_c_code=show_entire_c_code)
else:
rootwriter = Code.CCodeWriter()