[Redbutton-devel] SF.net SVN: redbutton: [444] redbutton-author/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-10-18 07:24:49
|
Revision: 444
http://redbutton.svn.sourceforge.net/redbutton/?rev=444&view=rev
Author: skilvington
Date: 2007-10-18 00:24:42 -0700 (Thu, 18 Oct 2007)
Log Message:
-----------
check for synthetic types in the is_Xxx() functions
Modified Paths:
--------------
redbutton-author/trunk/asn1tag.h
redbutton-author/trunk/ccc.y
Modified: redbutton-author/trunk/asn1tag.h
===================================================================
--- redbutton-author/trunk/asn1tag.h 2007-10-17 16:07:23 UTC (rev 443)
+++ redbutton-author/trunk/asn1tag.h 2007-10-18 07:24:42 UTC (rev 444)
@@ -755,6 +755,7 @@
/* needed by mhegd */
#define FIXME 9999
+#define ASN1TAGCLASS_InterchangedObject ASN1TAG_SYNTHETIC
#define ASN1TAGCLASS_ActionSlot FIXME
#define ASN1TAGCLASS_ActionSlotSeq FIXME
#define ASN1TAGCLASS_ButtonStyleEnum ASN1TAGCLASS_ENUMERATED
Modified: redbutton-author/trunk/ccc.y
===================================================================
--- redbutton-author/trunk/ccc.y 2007-10-17 16:07:23 UTC (rev 443)
+++ redbutton-author/trunk/ccc.y 2007-10-18 07:24:42 UTC (rev 444)
@@ -790,6 +790,9 @@
/* ASN1 is_Xxx() functions */
buf_append(&state.decode_is_fns, "bool is_%s(unsigned char class, unsigned int number)\n{\n", name);
+ buf_append(&state.decode_is_fns, "\tif(!is_synthetic(ASN1TAGCLASS_%s))\n", name);
+ buf_append(&state.decode_is_fns, "\t\treturn MATCH_TAGCLASS(class, number, ASN1TAGCLASS_%s);\n", name);
+ buf_append(&state.decode_is_fns, "\telse\n");
/* count how many non-literal items there are */
nitems = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|