mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
This allows the reuse of the code later in sclp.c. While at it, also declare @source parameter of `ebcdic_to_ascii` function as `const` and rename all `ebc_` function name prefixes into `ebcdic_`. Move conversion tables to separate file so it only gets linked into loaders that need it. Reviewed-by: Philipp Rudo <prudo@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
22 lines
440 B
C
22 lines
440 B
C
/*
|
|
* EBCDIC conversion functions
|
|
*
|
|
* Copyright IBM Corp. 2013, 2020
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*
|
|
*/
|
|
|
|
#ifndef EBCDIC_CONV_H
|
|
#define EBCDIC_CONV_H
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
void ebcdic_to_ascii(unsigned char *target, const unsigned char *source,
|
|
unsigned int l);
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
#endif /* EBCDIC_CONV_H */
|