aboutsummaryrefslogtreecommitdiff
path: root/src/interp/c-doc.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/c-doc.boot')
-rw-r--r--src/interp/c-doc.boot10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/interp/c-doc.boot b/src/interp/c-doc.boot
index 5c87a1ed..ba640875 100644
--- a/src/interp/c-doc.boot
+++ b/src/interp/c-doc.boot
@@ -1,6 +1,6 @@
-- Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd.
-- All rights reserved.
--- Copyright (C) 2007-2011, Gabriel Dos Reis.
+-- Copyright (C) 2007-2013, Gabriel Dos Reis.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@@ -136,10 +136,16 @@ collectAndDeleteAssoc x ==
y.rest := s
res
+instantiateNiladicsInDoc! docList ==
+ for [x,:.] in docList | x is [.,:.] repeat
+ x.opSig := instantiateNiladicsInList! x.opSig
+ docList
+
finalizeDocumentation db ==
ctor := dbConstructor db
unusedCommentLineNumbers := [x for (x := [n,:r]) in $COMBLOCKLIST | r]
- docList := substitute("$","%",transDocList($op,$docList))
+ docList := instantiateNiladicsInDoc!
+ substitute!("$","%",transDocList($op,$docList))
if u := [sig for [sig,:doc] in docList | null doc] then
for y in u repeat
y is 'constructor => noHeading := true