Hi!

While trying to apply a semantic patch I realised that the spatch tool didn't find the #include "somefile.h" when that file wasn't in the same local directory as the including file, but in a include directory specified with the option -I somedir.

I've checked the C99 standard and it seems that the expected behaviour of the preprocessor is to treat a #include "somefile.h" as if it were #include <somefile.h> if the file is not found with the first lookup method.

I've been trying to make that change myself, but I fear that my knowledge of OCaml is too basic and the spatch code is too complex for me to dive into it without guidance :-(

Could I ask for this feature to be included in the next release?

Thank you very much!

Alex
-
This message is subject to Imagination Technologies' e-mail terms: 
http://www.imgtec.com/e-mail.htm

Imagination Technologies Ltd is a limited company registered in England No: 1306335 Registered Office: Imagination House, Home Park Estate, Kings Langley, Hertfordshire, WD4 8LZ. Email to and from the company may be monitored for compliance and other administrative purposes. -

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to