Repository: lucy-clownfish
Updated Branches:
  refs/heads/master ca15901d7 -> 3a4d248c4


Remove hack to replace "NULL" with "undef" in POD


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

Branch: refs/heads/master
Commit: 3a4d248c4961e368bb3813c1ad222a0ccc503f3b
Parents: ca15901
Author: Nick Wellnhofer <[email protected]>
Authored: Sun Jan 4 20:46:37 2015 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Sun Jan 4 20:46:37 2015 +0100

----------------------------------------------------------------------
 compiler/src/CFCPerlPod.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/3a4d248c/compiler/src/CFCPerlPod.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlPod.c b/compiler/src/CFCPerlPod.c
index 08d8bda..aaf8253 100644
--- a/compiler/src/CFCPerlPod.c
+++ b/compiler/src/CFCPerlPod.c
@@ -71,9 +71,6 @@ S_convert_link(CFCClass *klass, cmark_node *link);
 static char*
 S_pod_link(const char *text, const char *name);
 
-static char*
-S_perlify_pod(const char *source);
-
 CFCPerlPod*
 CFCPerlPod_new(void) {
     CFCPerlPod *self
@@ -327,10 +324,8 @@ CFCPerlPod_md_to_pod(CFCPerlPod *self, CFCClass *klass, 
const char *md) {
     cmark_node *doc = cmark_parse_document(md, strlen(md));
     char *pod = S_nodes_to_pod(klass, doc);
     cmark_node_free(doc);
-    char *perlified = S_perlify_pod(pod);
 
-    FREEMEM(pod);
-    return perlified;
+    return pod;
 }
 
 static char*
@@ -677,9 +672,3 @@ S_pod_link(const char *text, const char *name) {
     }
 }
 
-static char*
-S_perlify_pod(const char *source) {
-    // Change all instances of NULL to 'undef'
-    return CFCUtil_global_replace(source, "NULL", "undef");
-}
-

Reply via email to