|
1 | | -//===- AutoConvert.h - Auto conversion between ASCII/EBCDIC -----*- C++ -*-===// |
| 1 | +/*===- AutoConvert.h - Auto conversion between ASCII/EBCDIC -----*- C++ -*-===// |
2 | 2 | // |
3 | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | 4 | // See https://llvm.org/LICENSE.txt for license information. |
|
9 | 9 | // This file contains functions used for auto conversion between |
10 | 10 | // ASCII/EBCDIC codepages specific to z/OS. |
11 | 11 | // |
12 | | -//===----------------------------------------------------------------------===// |
| 12 | +//===----------------------------------------------------------------------===*/ |
13 | 13 |
|
14 | 14 | #ifndef LLVM_SUPPORT_AUTOCONVERT_H |
15 | 15 | #define LLVM_SUPPORT_AUTOCONVERT_H |
|
18 | 18 | #include <_Ccsid.h> |
19 | 19 | #ifdef __cplusplus |
20 | 20 | #include <system_error> |
21 | | -#endif // __cplusplus |
| 21 | +#endif /* __cplusplus */ |
22 | 22 |
|
23 | 23 | #define CCSID_IBM_1047 1047 |
24 | 24 | #define CCSID_UTF_8 1208 |
25 | 25 | #define CCSID_ISO8859_1 819 |
26 | 26 |
|
27 | 27 | #ifdef __cplusplus |
28 | 28 | extern "C" { |
29 | | -#endif // __cplusplus |
| 29 | +#endif /* __cplusplus */ |
30 | 30 | int enablezOSAutoConversion(int FD); |
31 | 31 | int disablezOSAutoConversion(int FD); |
32 | 32 | int restorezOSStdHandleAutoConversion(int FD); |
33 | 33 | #ifdef __cplusplus |
34 | 34 | } |
35 | | -#endif // __cplusplus |
| 35 | +#endif /* __cplusplus */ |
36 | 36 |
|
37 | 37 | #ifdef __cplusplus |
38 | 38 | namespace llvm { |
39 | 39 |
|
40 | | -/// \brief Disable the z/OS enhanced ASCII auto-conversion for the file |
41 | | -/// descriptor. |
| 40 | +/** \brief Disable the z/OS enhanced ASCII auto-conversion for the file |
| 41 | + * descriptor. |
| 42 | + */ |
42 | 43 | std::error_code disablezOSAutoConversion(int FD); |
43 | 44 |
|
44 | | -/// \brief Query the z/OS enhanced ASCII auto-conversion status of a file |
45 | | -/// descriptor and force the conversion if the file is not tagged with a |
46 | | -/// codepage. |
| 45 | +/** \brief Query the z/OS enhanced ASCII auto-conversion status of a file |
| 46 | + * descriptor and force the conversion if the file is not tagged with a |
| 47 | + * codepage. |
| 48 | + */ |
47 | 49 | std::error_code enablezOSAutoConversion(int FD); |
48 | 50 |
|
49 | | -/// Restore the z/OS enhanced ASCII auto-conversion for the std handle. |
| 51 | +/** Restore the z/OS enhanced ASCII auto-conversion for the std handle. */ |
50 | 52 | std::error_code restorezOSStdHandleAutoConversion(int FD); |
51 | 53 |
|
52 | | -/// \brief Set the tag information for a file descriptor. |
| 54 | +/** \brief Set the tag information for a file descriptor. */ |
53 | 55 | std::error_code setzOSFileTag(int FD, int CCSID, bool Text); |
54 | 56 |
|
55 | | -} // namespace llvm |
56 | | -#endif // __cplusplus |
| 57 | +} /* namespace llvm */ |
| 58 | +#endif /* __cplusplus */ |
57 | 59 |
|
58 | | -#endif // __MVS__ |
| 60 | +#endif /* __MVS__ */ |
59 | 61 |
|
60 | | -#endif // LLVM_SUPPORT_AUTOCONVERT_H |
| 62 | +#endif /* LLVM_SUPPORT_AUTOCONVERT_H */ |
0 commit comments