[PATCH,fortran] *The* ISO C Binding patch
Brooks Moses
brooks.moses@codesourcery.com
Tue Jun 26 18:15:00 GMT 2007
Andreas Schwab wrote:
> Steve Kargl <sgk@troutmask.apl.washington.edu> writes:
>> +NAMED_CHARCST (ISOCBINDING_NULL_CHAR, "c_null_char", '\0')
>> +NAMED_CHARCST (ISOCBINDING_ALERT, "c_alert", '\a')
>> +NAMED_CHARCST (ISOCBINDING_BACKSPACE, "c_backspace", '\b')
>> +NAMED_CHARCST (ISOCBINDING_FORM_FEED, "c_form_feed", '\f')
>> +NAMED_CHARCST (ISOCBINDING_NEW_LINE, "c_new_line", '\n')
>> +NAMED_CHARCST (ISOCBINDING_CARRIAGE_RETURN, "c_carriage_return", '\r')
>> +NAMED_CHARCST (ISOCBINDING_HORIZONTAL_TAB, "c_horizontal_tab", '\t')
>> +NAMED_CHARCST (ISOCBINDING_VERTICAL_TAB, "c_vertical_tab", '\v')
>
> Shouldn't those use the target character set?
My understanding is that they do -- that GFortran assumes, in a number
of places (e.g., the constant-folding for the ACHAR and related
intrinsics) that both the host and the target are using the ASCII
character set.
- Brooks
More information about the Fortran
mailing list