[ET Trac] #2752: Parameter file parser generates illegal (?) C code
Erik Schnetter
trac-noreply at einsteintoolkit.org
Wed Aug 23 14:35:19 CDT 2023
#2752: Parameter file parser generates illegal (?) C code
Reporter: Erik Schnetter
Status: new
Milestone:
Version:
Type: bug
Priority: major
Component: Cactus
I see this warnings when building the autogenerated Cactus bindings:
```
/Users/eschnett/Cactus/configs/sim-debug/bindings/Parameters/TwoPunctures_BBHSF_Parameters.c: In function 'CCTKi_BindingsCreateTwoPunctures_BBHSFParameters':
/Users/eschnett/Cactus/configs/sim-debug/bindings/Parameters/TwoPunctures_BBHSF_Parameters.c:193:116: warning: unknown escape sequence: '\p'
193 | "Exponent delta for conformal decomposition of the scalar field \phi = \psi^delta \bar\phi",
| ^
/Users/eschnett/Cactus/configs/sim-debug/bindings/Parameters/TwoPunctures_BBHSF_Parameters.c:193:116: warning: unknown escape sequence: '\p'
/Users/eschnett/Cactus/configs/sim-debug/bindings/Parameters/TwoPunctures_BBHSF_Parameters.c:193:116: warning: unknown escape sequence: '\p'
```
It seems that a parameter description in a ccl file contains latex code, and the parameter file parse does not properly escape backslashes when generating C strings for them.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2752/parameter-file-parser-generates-illegal-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20230823/ee70c12a/attachment.htm>
More information about the Trac
mailing list