peter klausler | fc94aa6 | 2019-10-11 13:46:58 -0700 | [diff] [blame^] | 1 | #if 0 /* this header can be included into both Fortran and C */ |
| 2 | Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | This file defines various code values that need to be exported |
| 17 | to predefined Fortran standard modules as well as to C/C++ |
| 18 | code in the compiler and runtime library. |
| 19 | These include: |
| 20 | - the error/end code values that can be returned |
| 21 | to an IOSTAT= or STAT= specifier on a Fortran I/O statement |
| 22 | or coindexed data reference (see Fortran 2018 12.11.5, |
| 23 | 16.10.2, and 16.10.2.33) |
| 24 | #endif |
| 25 | #ifndef FORTRAN_RUNTIME_MAGIC_NUMBERS_H_ |
| 26 | #define FORTRAN_RUNTIME_MAGIC_NUMBERS_H_ |
| 27 | |
| 28 | #define FORTRAN_RUNTIME_IOSTAT_END (-1) |
| 29 | #define FORTRAN_RUNTIME_IOSTAT_EOR (-2) |
| 30 | #define FORTRAN_RUNTIME_IOSTAT_FLUSH (-3) |
| 31 | #define FORTRAN_RUNTIME_IOSTAT_INQUIRE_INTERNAL_UNIT 1 |
| 32 | |
| 33 | #define FORTRAN_RUNTIME_STAT_FAILED_IMAGE 10 |
| 34 | #define FORTRAN_RUNTIME_STAT_LOCKED 11 |
| 35 | #define FORTRAN_RUNTIME_STAT_LOCKED_OTHER_IMAGE 12 |
| 36 | #define FORTRAN_RUNTIME_STAT_STOPPED_IMAGE 13 |
| 37 | #define FORTRAN_RUNTIME_STAT_UNLOCKED 14 |
| 38 | #define FORTRAN_RUNTIME_STAT_UNLOCKED_FAILED_IMAGE 15 |
| 39 | #endif |