Logo Search packages:      
Sourcecode: maria version File versions

static void generateComparisons ( const class Net net,
class StringBuffer out,
FILE *  file 
) [static]

Generate code for data item comparisons

net the net for which to generate
out the output buffer
file the output file

Definition at line 194 of file Compilation.C.

References StringBuffer::append(), Net::begin(), StringBuffer::create(), Net::end(), Net::getChild(), StringBuffer::getLength(), Net::getNumChildren(), and StringBuffer::getString().

Referenced by generate().

  for (unsigned i = 0; i < net.getNumChildren (); i++)
    generateComparisons (net.getChild (i), out, file);
  for (Net::TypeList::const_iterator t = net.begin ();
       t != net.end (); t++) {
    if ((*t)->isGenerated ())
    out.append ("#define ID(id) id##");
    (*t)->appendIndex (out);
    out.append ("\n");
    (*t)->compileExtraDefinitions (out, 0, false);
    out.append ("#include\"bushfcn.h\"\n");
    fwrite (out.getString (), 1, out.getLength (), file);
    out.create (0);

Generated by  Doxygen 1.6.0   Back to index