lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [14/20] lucy-clownfish git commit: Rework display of class attributes in HTML docs
Date Thu, 06 Aug 2015 16:19:51 GMT
Rework display of class attributes in HTML docs


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/ef144277
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/ef144277
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/ef144277

Branch: refs/heads/master
Commit: ef144277fe7bd622155a1f81dadd040306443bc4
Parents: 6c9b0ed
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sat Jul 25 19:27:53 2015 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Thu Aug 6 18:19:19 2015 +0200

----------------------------------------------------------------------
 compiler/src/CFCCHtml.c | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ef144277/compiler/src/CFCCHtml.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCCHtml.c b/compiler/src/CFCCHtml.c
index e320ad9..0697754 100644
--- a/compiler/src/CFCCHtml.c
+++ b/compiler/src/CFCCHtml.c
@@ -343,10 +343,12 @@ char*
 CFCCHtml_create_html_body(CFCClass *klass) {
     CFCParcel  *parcel         = CFCClass_get_parcel(klass);
     const char *parcel_name    = CFCParcel_get_name(parcel);
+    const char *prefix         = CFCClass_get_prefix(klass);
+    const char *PREFIX         = CFCClass_get_PREFIX(klass);
     const char *class_name     = CFCClass_get_name(klass);
     const char *class_nickname = CFCClass_get_nickname(klass);
-    const char *class_var      = CFCClass_full_class_var(klass);
-    const char *struct_sym     = CFCClass_full_struct_sym(klass);
+    const char *class_var      = CFCClass_short_class_var(klass);
+    const char *struct_sym     = CFCClass_get_struct_sym(klass);
     const char *include_h      = CFCClass_include_h(klass);
 
     // Create NAME.
@@ -378,20 +380,16 @@ CFCCHtml_create_html_body(CFCClass *klass) {
         "<td><a href=\"%s\">%s</a></td>\n"
         "</tr>\n"
         "<tr>\n"
-        "<td class=\"label\">class name</td>\n"
-        "<td>%s</td>\n"
-        "</tr>\n"
-        "<tr>\n"
-        "<td class=\"label\">class nickname</td>\n"
-        "<td>%s</td>\n"
-        "</tr>\n"
-        "<tr>\n"
         "<td class=\"label\">class variable</td>\n"
-        "<td><code>%s</code></td>\n"
+        "<td><code><span class=\"prefix\">%s</span>%s</code></td>\n"
         "</tr>\n"
         "<tr>\n"
         "<td class=\"label\">struct symbol</td>\n"
-        "<td><code>%s</code></td>\n"
+        "<td><code><span class=\"prefix\">%s</span>%s</code></td>\n"
+        "</tr>\n"
+        "<tr>\n"
+        "<td class=\"label\">class nickname</td>\n"
+        "<td><code><span class=\"prefix\">%s</span>%s</code></td>\n"
         "</tr>\n"
         "<tr>\n"
         "<td class=\"label\">header file</td>\n"
@@ -406,9 +404,10 @@ CFCCHtml_create_html_body(CFCClass *klass) {
         "%s";
     char *html_body
         = CFCUtil_sprintf(pattern, class_name, index_filename,
-                          parcel_name, class_name, class_nickname, class_var,
-                          struct_sym, include_h, name, synopsis, description,
-                          functions_html, methods_html, inheritance);
+                          parcel_name, PREFIX, class_var, prefix, struct_sym,
+                          prefix, class_nickname, include_h, name, synopsis,
+                          description, functions_html, methods_html,
+                          inheritance);
 
     FREEMEM(index_filename);
     FREEMEM(name);


Mime
View raw message