>> @replacement@
>> identifier M;
>> @@
>> #define M
>> -snprintf
>> +spgprintf_d
>> (...)
>
> I think you could put \ in your semantic patch, like in C,
The escaping of line breaks would be required for the complete handling of
logical source lines.
Such functionality does not help with the sho
> You could try it?
I observed that both variants (and others) fail for this issue.
Can you reproduce the reported software difficulties also
in your current test system?
Regards,
Markus
___
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.
>> @replacement@
>> identifier M;
>> @@
>> #define M
>> -snprintf
>> +spgprintf_d
>> (...)
>
> I think you could put \ in your semantic patch, like in C,
I am interested also in the support for escaping of line breaks
according to the desired handling of logical source lines.
But how will the co
On Wed, 16 Oct 2019, Markus Elfring wrote:
> > Anyway, to my understanding the goal was not to modify the #define part,
> > but rather only the code part.
>
> Will it become supported by the semantic patch language to change
> source code directly after the occurrence of an empty macro?
>
> @rep
> Anyway, to my understanding the goal was not to modify the #define part,
> but rather only the code part.
Will it become supported by the semantic patch language to change
source code directly after the occurrence of an empty macro?
@replacement@
identifier M;
@@
#define M
-snprintf
+spgprintf