[ovs-dev] [threads 08/23] dirs: Make thread-safe.

Ben Pfaff blp at nicira.com
Mon Jul 22 17:37:15 UTC 2013


On Mon, Jul 22, 2013 at 10:20:54AM -0700, Alex Wang wrote:
> One question, why do we have the "#line directive" in "lib/dirs.c.in"?
> We have already created "dirs.c" in "lib/automake.mk". What is the
> use of "#line directive" here?

dirs.c gets generated by search-and-replace on dirs.c.in.  If there's
a compiler warning or error we want it reported against dirs.c.in so
that the developer doesn't waste time fixing the generated file, and
that's what the #line directive does.



More information about the dev mailing list