Exemple #1
0
int
DWGimpl::readFile(char* filename) {
    int error;
    error = dwg_read_file(filename, &data);

    if (!error) {
        ReadDWG(&data);
    }

    dwg_free(&data);
    /* This value is the return value for `main',
    so clamp it to either 0 or 1.  */
    return error ? 1 : 0;
}
Exemple #2
0
int
test_SVG(char *filename)
{
  int error;
  Dwg_Data dwg;

  error = dwg_read_file(filename, &dwg);

  if (!error)
    {
      output_SVG(&dwg);
    }

  dwg_free(&dwg);
  /* This value is the return value for `main',
     so clamp it to either 0 or 1.  */
  return error ? 1 : 0;
}