[Ltrace-devel] [PATCH 3/6] Add an ability to import config files into other config files

Petr Machata pmachata at redhat.com
Mon Apr 20 08:18:30 UTC 2015


Great stuff, thanks.

> @@ -1072,6 +1146,11 @@ process_line(struct protolib *plib, struct locus *loc, char *buf)
>  	if (*str == ';' || *str == 0 || *str == '\n' || *str == '#')
>  		return 0;
>  
> +	if (strncmp(str, "import ", 7) == 0) {
> +		parse_import(cache, plib, loc, &str);
> +		return 0;
> +	}
> +
>  	if (strncmp(str, "typedef ", 8) == 0) {
>  		parse_typedef(plib, loc, &str);
>  		return 0;

I had to adapt this hunk to use try_parse_kwd, hopefully you don't
mind.  (And hopefully I didn't break it.)

Pushed.

Thanks,
Petr



More information about the Ltrace-devel mailing list