aboutsummaryrefslogtreecommitdiff
path: root/gcc/cobol/util.h
diff options
context:
space:
mode:
authorJames K. Lowden <jklowden@symas.com>2025-03-06 16:25:09 -0500
committerRichard Biener <rguenth@gcc.gnu.org>2025-03-11 07:48:21 +0100
commit3c5ed996ac94a15bc2929155f2c69cc85eef89f7 (patch)
treec365f6e25814ca3e88ae3fed34ca7a327a016540 /gcc/cobol/util.h
parenta0754187274a36443707eab5506ae53ab1d71ad2 (diff)
downloadgcc-3c5ed996ac94a15bc2929155f2c69cc85eef89f7.zip
gcc-3c5ed996ac94a15bc2929155f2c69cc85eef89f7.tar.gz
gcc-3c5ed996ac94a15bc2929155f2c69cc85eef89f7.tar.bz2
COBOL: Frontend
gcc/cobol/ * LICENSE: New file. * Make-lang.in: New file. * config-lang.in: New file. * lang.opt: New file. * lang.opt.urls: New file. * cbldiag.h: New file. * cdfval.h: New file. * cobol-system.h: New file. * copybook.h: New file. * dts.h: New file. * exceptg.h: New file. * gengen.h: New file. * genmath.h: New file. * genutil.h: New file. * inspect.h: New file. * lang-specs.h: New file. * lexio.h: New file. * parse_ante.h: New file. * parse_util.h: New file. * scan_ante.h: New file. * scan_post.h: New file. * show_parse.h: New file. * structs.h: New file. * symbols.h: New file. * token_names.h: New file. * util.h: New file. * cdf-copy.cc: New file. * lexio.cc: New file. * scan.l: New file. * parse.y: New file. * genapi.cc: New file. * genapi.h: New file. * gengen.cc: New file. * genmath.cc: New file. * genutil.cc: New file. * cdf.y: New file. * cobol1.cc: New file. * convert.cc: New file. * except.cc: New file. * gcobolspec.cc: New file. * structs.cc: New file. * symbols.cc: New file. * symfind.cc: New file. * util.cc: New file. * gcobc: New file. * gcobol.1: New file. * gcobol.3: New file. * help.gen: New file. * udf/stored-char-length.cbl: New file.
Diffstat (limited to 'gcc/cobol/util.h')
-rw-r--r--gcc/cobol/util.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/gcc/cobol/util.h b/gcc/cobol/util.h
new file mode 100644
index 0000000..eb08ed7
--- /dev/null
+++ b/gcc/cobol/util.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2021-2025 Symas Corporation
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of the Symas Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _UTIL_H_
+#define _UTIL_H_
+
+void cbl_message(int fd, const char *format_string, ...);
+void cbl_internal_error(const char *format_string, ...);
+
+void cbl_err(const char *format_string, ...);
+void cbl_errx(const char *format_string, ...);
+
+bool fisdigit(int c);
+bool fisspace(int c);
+int ftolower(int c);
+bool fisprint(int c);
+
+const char * cobol_filename_restore();
+const char * cobol_lineno_save();
+
+
+#endif