Not a choice for a few reasons. I am using IBM C/C++ compiler for better or worse.
ZA
Type: Posts; User: zatlas1
Not a choice for a few reasons. I am using IBM C/C++ compiler for better or worse.
ZA
Did I say an archaic OS...
classic z/OS on IBM z Series.
ZA
But in linkage time, especially doing static link, this causes the link to fail and I need to run a two ass link
ZA
I am porting some modern, usually Linux based, libraries to an archaic OS that does not have Autotools or Cmake. I've noticed a tendency to tolerate circular dependency that is detrimental to my...
Perfect, Thank you so much
ZA
I see a struct in ip.h:
struct ip_timestamp {
u_char ipt_code; /* IPOPT_TS */
u_char ipt_len; ...
Thank you for the explanation.
That means that the C compiler/macro processor should understand @xxx@ as an externally supplied value and I assume that gcc works that way. I have no sign that my...
I am porting an open source library to a system without make or cmake.
I have encountered this construct in one of the headers
#define HAVE_STDINT_H @HAVE_STDINT_H@
#if HAVE_STDINT_H ...
...
Thank you all
Indeed I've left a space which was wrong
I will take the advice and will not use macro function as I realized that this could lead to errors as stated.
ZA
Hi all
I came from a different language where you could have a macro like this:
mac_func1 macro &a, &b
some definitions...
which when you do
rc = mac_func1 parm1, parm2
will translate to
Will do. Thank you again
ZA
Thank you... you actually guided me to the right direction. I trusted the documentation rather than looking at the actual function definition... my bad.
ZA
Hi All
I am using IBM C compiler on the mainframe to compile some code that would be published as open source. I have in my program many (over 40)simple function definitions with the purpose of...
Thank you so much
I will try that
And yes, certainly I need to brush up on function pointers :redface:
ZA
I ported the PCRE2 open source library to the mainframe (works like a charm.) Now my task is to provide an API for old style languages that are used in that environment. One thing that I have to do...
Thank you
I think I've found the issue with the allocation
ZA
Hi all
I have this code that appears to be simple enough
#define TEST_LIMIT 100
.
.
.
Apparently, one may not name a file lpt1.txt. Once I changed to lpt1a.txt it worked fine.
ZA
Hi Salem
It is my own home machine, I have all users (sans the guest) as administrators and I may write, delete or otherwise modify anything and everything on that machine.
I compile the thing...
Quzah: Yes and Yes
Bayint: I tried it and it did not work either
Thank you
ZA
My old (worked in older versions of OS and compiler) program has these global definitions and code:
// file name hard coded for test purpose only
char printerfile[64] =...
Hello all
I have an old module that uses _dos_findfirst and _dos_findnext which I need to revive into the Windows 7 era.
I downloaded DIRPORT.C and DIRPORT.H and used FIND_FIRST and FIND_NEXT...
It did the trick...
Thanks
ZA
It's moot now since I've decided to adhere with ANSI C anyway, but thanks for the advice. I changed it as per the advice since the code is strictly C.
ZA
Hi all
I have this in a .C file, the last line of this declaration is line 19:
EXTERN struct
{
int len;
int pitch;