code fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 1 Dec 2005 21:46:43 +0000 (21:46 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 1 Dec 2005 21:46:43 +0000 (21:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1355 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/genevent.c
genevent-new/test.xml

index 7f06edaa70fe8d0e5ed962ba4fcfedde72228cc2..c020426853ad1ae1dac3c4ab15eb7366a18a58fb 100644 (file)
@@ -451,7 +451,7 @@ int print_type_declaration(type_descriptor_t * td, FILE *fd, unsigned int tabs,
                        print_tabs(1, fd);
                        if(print_type(((field_t*)td->fields.array[0])->type,
                                                fd, tabs, basename, "")) return 1;
-                       fprintf(fd, "len;\n");
+                       fprintf(fd, " len;\n");
                        print_tabs(1, fd);
                        if(print_type(((field_t*)td->fields.array[1])->type,
                                                fd, tabs, basename, "")) return 1;
index 5b870f83c4676b6d545f7c1250ad9e5204fd812b..c6c2f021d613e3b4f12accc7657956238d0ca7f1 100644 (file)
                        
                        <field name="teststr"><typeref name=mystruct2/></field>
                        <field name="myarray">
-                       <array size=10/>
-                       <uint_fixed size=8/>
-                       </array>
+                               <array size=10/>
+                                       <uint_fixed size=8/>
+                               </array>
                        </field>
                        <field name="mysequence">
-                       <sequence>
-                               <uint>
-                               <float size=8/>
-                       </sequence>
+                               <sequence>
+                                       <uint>
+                                       <float size=8/>
+                               </sequence>
                        </field>
                        <field name="myunion">
-                       <union>
-                               <field name="myfloat"><float size=8/></field>
-                               <field name="myulong"><ulong></field>
-                       </union>
+                               <union>
+                                       <field name="myfloat"><float size=8/></field>
+                                       <field name="myulong"><ulong></field>
+                               </union>
                        </field>
                </struct>
        </type>
This page took 0.027087 seconds and 4 git commands to generate.