aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-07-23 10:17:14 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-07-23 10:17:14 +0300
commit93881c26428a4d07ee348c34b59f3b9586853535 (patch)
tree2c94687fe244a9ec97935262d842fc0ed1d0eea4 /awk.h
parentf056f0a42953c9297f60335421ccd7609cba698e (diff)
downloadegawk-93881c26428a4d07ee348c34b59f3b9586853535.tar.gz
egawk-93881c26428a4d07ee348c34b59f3b9586853535.tar.bz2
egawk-93881c26428a4d07ee348c34b59f3b9586853535.zip
Fixes for Vax/VMS C.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/awk.h b/awk.h
index 2ab25bfd..cb7c4990 100644
--- a/awk.h
+++ b/awk.h
@@ -750,6 +750,16 @@ enum redirval {
struct break_point;
+#if __DECC && __VAX
+typedef unsigned long exec_count_t; // for exec_count
+#define EXEC_COUNT_FMT "%lu"
+#define EXEC_COUNT_PROFILE_FMT "%6lu"
+#else
+typedef unsigned long long exec_count_t; // for exec_count
+#define EXEC_COUNT_FMT "%llu"
+#define EXEC_COUNT_PROFILE_FMT "%6llu"
+#endif
+
typedef struct exp_instruction {
struct exp_instruction *nexti;
union {
@@ -760,7 +770,7 @@ typedef struct exp_instruction {
awk_value_t *result,
struct awk_ext_func *finfo);
long dl;
- unsigned long long ldl; // for exec_count
+ exec_count_t ldl; // for exec_count
char *name;
} d;