[sr-dev] git:master: ipops: add a comment about autogenerated files from ragel

Iñaki Baz Castillo ibc at aliax.net
Wed Jun 29 23:01:23 CEST 2011

2011/6/29 Henning Westerholt <henning.westerholt at 1und1.de>:
> diff --git a/modules/ipops/ip_parser.c b/modules/ipops/ip_parser.c
> index 0695fa5..b9e0a1c 100644
> --- a/modules/ipops/ip_parser.c
> +++ b/modules/ipops/ip_parser.c
> @@ -1,3 +1,7 @@
> +/*
> + * Warning: This file is auto generated from a ragel syntax (ip_parser.rl),
> + * do not change it!
> + */

Hi Henning, the only problem with this warning is that if ip_parser.rl
is modified and compile_ip_parser.rl.sh executed, it will generate
ip_parser.c without your comment above. The workaround would be adding
your comment on top of ip_parser.rl file (but it would be a bit
confusing reading it that file :-D).

Well, a better solution would be just to remember adding your comment
after regenerating ip_parser.c :)


Iñaki Baz Castillo
<ibc at aliax.net>

More information about the sr-dev mailing list