forked from OSchip/llvm-project
[flang] Define the named constants for the C characters with
special semantics in the ISO_C_BINDING intrinsic module. Original-commit: flang-compiler/f18@bee546fdb2 Reviewed-on: https://github.com/flang-compiler/f18/pull/660 Tree-same-pre-rewrite: false
This commit is contained in:
parent
bcaba6e571
commit
7b17a67190
|
@ -74,6 +74,16 @@ module iso_c_binding
|
|||
integer, parameter :: c_bool = 1 ! TODO: or default LOGICAL?
|
||||
integer, parameter :: c_char = 1
|
||||
|
||||
! C characters with special semantics
|
||||
character(kind=c_char, len=1), parameter :: c_null_char = '\0'
|
||||
character(kind=c_char, len=1), parameter :: c_alert = '\a'
|
||||
character(kind=c_char, len=1), parameter :: c_backspace = '\b'
|
||||
character(kind=c_char, len=1), parameter :: c_form_feed = '\f'
|
||||
character(kind=c_char, len=1), parameter :: c_new_line = '\n'
|
||||
character(kind=c_char, len=1), parameter :: c_carriage_return = '\r'
|
||||
character(kind=c_char, len=1), parameter :: c_horizontal_tab = '\t'
|
||||
character(kind=c_char, len=1), parameter :: c_vertical_tab = '\v'
|
||||
|
||||
contains
|
||||
|
||||
logical function c_associated(c_ptr_1, c_ptr_2)
|
||||
|
|
Loading…
Reference in New Issue