OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [sim-config.c] - Diff between revs 1557 and 1561

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1557 Rev 1561
Line 655... Line 655...
          if (strcmp (cur->name, param) == 0) {
          if (strcmp (cur->name, param) == 0) {
            cur_section = cur;
            cur_section = cur;
            break;
            break;
          }
          }
        if (!cur) {
        if (!cur) {
          fprintf (stderr, "WARNING: config: Unknown section: %s; ignoring.", param);
          fprintf (stderr, "WARNING: config: Unknown section: %s; ignoring.\n",
 
                   param);
          /* just skip section */
          /* just skip section */
          while (fscanf (f, "%s\n", param) != 1 && strcmp (param, "end"));
          while (fscanf (f, "%s\n", param) == 1 && strcmp (param, "end"));
        } else {
        } else {
          cur->dat = NULL;
          cur->dat = NULL;
          if (cur->sec_start)
          if (cur->sec_start)
            cur->dat = cur->sec_start();
            cur->dat = cur->sec_start();
        }
        }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.