aboutsummaryrefslogtreecommitdiff
path: root/src/apps/emess.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-19 12:25:33 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-26 10:08:54 +0100
commite6de172371ea203f6393d745641d66c82b5b13e2 (patch)
tree791fa07f431a2d1db6f6e813ab984db982587278 /src/apps/emess.h
parentce8075076b4e4ffebd32afaba419e1d9ab27cd03 (diff)
downloadPROJ-e6de172371ea203f6393d745641d66c82b5b13e2.tar.gz
PROJ-e6de172371ea203f6393d745641d66c82b5b13e2.zip
cpp conversion: move source files in apps/ iso19111/ conversions/ projections/ transformations/ tests/ subdirectories
Diffstat (limited to 'src/apps/emess.h')
-rw-r--r--src/apps/emess.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/apps/emess.h b/src/apps/emess.h
new file mode 100644
index 00000000..4c6f6783
--- /dev/null
+++ b/src/apps/emess.h
@@ -0,0 +1,29 @@
+/* Error message processing header file */
+#ifndef EMESS_H
+#define EMESS_H
+
+struct EMESS {
+ char *File_name, /* input file name */
+ *Prog_name; /* name of program */
+ int File_line; /* approximate line read
+ where error occurred */
+};
+
+#ifdef EMESS_ROUTINE /* use type */
+/* for emess procedure */
+struct EMESS emess_dat = { nullptr, nullptr, 0 };
+
+#ifdef sun /* Archaic SunOs 4.1.1, etc. */
+extern char *sys_errlist[];
+#define strerror(n) (sys_errlist[n])
+#endif
+
+#else /* for for calling procedures */
+
+extern struct EMESS emess_dat;
+
+#endif /* use type */
+
+void emess(int, const char *, ...);
+
+#endif /* end EMESS_H */