* Copyright (C) 2004, 2005 by Dominic Rath *
* Dominic.Rath@gmx.de *
* *
+ * Copyright (C) 2007,2008 Øyvind Harboe *
+ * oyvind.harboe@zylin.com *
+ * *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
}
/* return full path or NULL according to search rules */
-char *find_file(char *file)
+char *find_file(const char *file)
{
FILE *fp = NULL;
char **search_dirs = script_search_dirs;
int parse_config_file(struct command_context_s *cmd_ctx)
{
+ int retval;
char **cfg;
if (!config_file_names)
while (*cfg)
{
- command_run_line(cmd_ctx, *cfg);
+ retval=command_run_line(cmd_ctx, *cfg);
+ if (retval!=ERROR_OK)
+ return retval;
cfg++;
}