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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [sim-config.c] - Diff between revs 82 and 93

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

Rev 82 Rev 93
Line 956... Line 956...
                    }
                    }
                }
                }
            }
            }
          else
          else
            {
            {
              struct config_param *cur_param;
              struct config_param *cur_param = NULL;
              char *cur_p;
              char *cur_p;
 
              /* If we have a corrupt file, this could be encountered outside
 
                 a section. So make sure cur_section is defined. */
 
              if (cur_section)
 
                {
              for (cur_param = cur_section->params; cur_param;
              for (cur_param = cur_section->params; cur_param;
                   cur_param = cur_param->next)
                   cur_param = cur_param->next)
 
                    {
                if (strcmp (cur_param->name, param) == 0)
                if (strcmp (cur_param->name, param) == 0)
                  {
                  {
                    break;
                    break;
                  }
                  }
 
                    }
 
                }
              if (!cur_param)
              if (!cur_param)
                {
                {
                  fprintf (stderr, "Warning: Invalid parameter: %s; ignored\n",
                  fprintf (stderr, "Warning: Invalid parameter: %s; ignored\n",
                           param);
                           param);
                  while (fgetc (f) != '\n' || feof (f));
                  while (fgetc (f) != '\n' || feof (f));

powered by: WebSVN 2.1.0

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