OpenVMS version needs to build on VAX, ALPHA, IA64 and X86_64 architectures, some of them strictly C89 compliant without many new C features and includes capabilities.
This pull request is an attempt to solve all the VMS related build issues on all platforms for the recent Vim version 9.2
Please review
https://github.com/vim/vim/pull/20131
(10 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@arpadffy pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@arpadffy pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra commented on this pull request.
> @@ -58,7 +58,9 @@ // Define to `int' if <sys/types.h> doesn't define. // #undef uid_t -// Define to `unsigned int' or other type that is 32 bit. +// Define some types from stdint - older VMS do not have stdint.h +#define UINT8_T unsigned char +#define UINT16_T unsigned short
Instead of defining those, would the following make more sense?
#ifndef HAVE_STDINT_H typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; #endif
Then we can get rid of the conditionals in all the other C files.
In src/os_unix.c:
> pid = fork(); +# endif
This looks suspicious. Doesn't this break this function for Vim on VMS? Is this actually working for you? echo system(['ls'])?
Perhaps we need this:
#ifndef VMS pid = fork(); #else pid = -1; #endif if (pid == -1) { UNBLOCK_SIGNALS(&curset); close(fd_out[0]); close(fd_out[1]); emsg(_("\nCannot fork\n")); return NULL; }
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@arpadffy pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@arpadffy pushed 4 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@arpadffy commented on this pull request.
In src/os_unix.c:
> pid = fork(); +# endif
VMS use system, it does not have fork()... and the shell output works as expected
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra commented on this pull request.
Okay, if you say it works for you then I guess this is fine
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@arpadffy pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()