>>>> Can such initialisation code be constructed by the specification of several
>>>> script parts there?
>>> I don't understand the question.
>> I suggest to consider corresponding design consequences again.
>>
>>
>>> If the script language supports includes, then you can put includes in the 
>>> script code.
>> I imagine that it will be occasionally nicer to avoid the indirect inclusion
>> of another file there.
>> When will it be more consistent to construct an initialisation script
>> by your host programming language?
> No idea what you mean.

Is it easier for you to clarify the use case based on a concrete source
code example from the recent development “Script constraints on
meta-variables”?
https://github.com/coccinelle/coccinelle/blob/cbc751b30d9e02390d60ebed643c8e4a3fa0bb2b/tests/idcon_python.cocci#L1

If I would like to switch between two constraint specifications there
for a function name list selection in a bigger SmPL script template, I
am looking for a convenient way to append another bit of initialisation
code.

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to