[Redbutton-devel] SF.net SVN: redbutton: [422] redbutton-author/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-09-24 16:29:30
|
Revision: 422
http://redbutton.svn.sourceforge.net/redbutton/?rev=422&view=rev
Author: skilvington
Date: 2007-09-24 09:29:26 -0700 (Mon, 24 Sep 2007)
Log Message:
-----------
fix NewReferencedContent Null issue. In theory the compiler is now fully working.
Modified Paths:
--------------
redbutton-author/trunk/TODO
redbutton-author/trunk/ccc.y
redbutton-author/trunk/parser.c.header
redbutton-author/trunk/parser.h.header
Modified: redbutton-author/trunk/TODO
===================================================================
--- redbutton-author/trunk/TODO 2007-09-24 16:15:46 UTC (rev 421)
+++ redbutton-author/trunk/TODO 2007-09-24 16:29:26 UTC (rev 422)
@@ -1,7 +1,3 @@
-NewReferencedContent Null is in the wrong place
-
----
-
output filename should default to App/Scene GroupIdentifier rather than "a"
(but warn if file exists - stops accidental overwrite of source!)
Modified: redbutton-author/trunk/ccc.y
===================================================================
--- redbutton-author/trunk/ccc.y 2007-09-24 16:15:46 UTC (rev 421)
+++ redbutton-author/trunk/ccc.y 2007-09-24 16:29:26 UTC (rev 422)
@@ -597,7 +597,7 @@
else if(item->type == IT_IDENTORNULL)
{
buf_append(&state.parse_fns, "\telse\n");
- buf_append(&state.parse_fns, "\t\t(void) add_child(parent, ASN1TAGCLASS_NULL);\n");
+ buf_append(&state.parse_fns, "\t\tadd_null_child(parent, ASN1TAGCLASS_%s);\n", item->name);
}
/* else { optional - don't care if it is not present } */
}
Modified: redbutton-author/trunk/parser.c.header
===================================================================
--- redbutton-author/trunk/parser.c.header 2007-09-24 16:15:46 UTC (rev 421)
+++ redbutton-author/trunk/parser.c.header 2007-09-24 16:29:26 UTC (rev 422)
@@ -93,6 +93,20 @@
}
/*
+ * add this child and add a Null below it
+ */
+
+void
+add_null_child(struct node *parent, uint32_t asn1tagclass)
+{
+ parent = add_child(parent, asn1tagclass);
+
+ (void) add_child(parent, ASN1TAGCLASS_NULL);
+
+ return;
+}
+
+/*
* return true if any of the node's descendants are not synthetic
*/
Modified: redbutton-author/trunk/parser.h.header
===================================================================
--- redbutton-author/trunk/parser.h.header 2007-09-24 16:15:46 UTC (rev 421)
+++ redbutton-author/trunk/parser.h.header 2007-09-24 16:29:26 UTC (rev 422)
@@ -46,6 +46,9 @@
/* add a child to a node */
struct node *add_child(struct node *, uint32_t);
+/* add a Null ASN1 object child to a node */
+void add_null_child(struct node *, uint32_t);
+
/* return true if any of the node's descendants are not synthetic */
bool has_real_children(struct node *);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|