Search:

Type: Posts; User: zatlas1

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    5,052

    Not a choice for a few reasons. I am using IBM...

    Not a choice for a few reasons. I am using IBM C/C++ compiler for better or worse.
    ZA
  2. Replies
    9
    Views
    5,052

    Did I say an archaic OS... classic z/OS on IBM...

    Did I say an archaic OS...

    classic z/OS on IBM z Series.

    ZA
  3. Replies
    9
    Views
    5,052

    But in linkage time, especially doing static...

    But in linkage time, especially doing static link, this causes the link to fail and I need to run a two ass link
    ZA
  4. Replies
    9
    Views
    5,052

    Is Circular Dependency a bug or a feature?

    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...
  5. Replies
    2
    Views
    2,609

    Perfect, Thank you so much ZA

    Perfect, Thank you so much
    ZA
  6. Replies
    2
    Views
    2,609

    where and how is n_long defined

    I see a struct in ip.h:


    struct ip_timestamp {
    u_char ipt_code; /* IPOPT_TS */
    u_char ipt_len; ...
  7. Replies
    3
    Views
    3,356

    Thank you for the explanation. That means that...

    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...
  8. Replies
    3
    Views
    3,356

    @have_stdint_h@

    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 ...
    ...
  9. Replies
    3
    Views
    2,039

    Thank you all Indeed I've left a space which was...

    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
  10. Replies
    3
    Views
    2,039

    defining a macro to replace a function

    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
  11. Replies
    4
    Views
    1,617

    Will do. Thank you again ZA

    Will do. Thank you again
    ZA
  12. Replies
    4
    Views
    1,617

    Thank you... you actually guided me to the right...

    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
  13. Replies
    4
    Views
    1,617

    Strange error messages

    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...
  14. Replies
    3
    Views
    2,939

    Thank you so much I will try that And yes,...

    Thank you so much
    I will try that
    And yes, certainly I need to brush up on function pointers :redface:

    ZA
  15. Replies
    3
    Views
    2,939

    How do I wrap this?

    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...
  16. Thank you I think I've found the issue with the...

    Thank you
    I think I've found the issue with the allocation
    ZA
  17. Access violation writing location 0x00000004.

    Hi all
    I have this code that appears to be simple enough



    #define TEST_LIMIT 100
    .
    .
    .
  18. Replies
    8
    Views
    9,502

    Apparently, one may not name a file lpt1.txt. ...

    Apparently, one may not name a file lpt1.txt. Once I changed to lpt1a.txt it worked fine.
    ZA
  19. Replies
    8
    Views
    9,502

    Hi Salem It is my own home machine, I have all...

    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...
  20. Replies
    8
    Views
    9,502

    Quzah: Yes and Yes Bayint: I tried it and it...

    Quzah: Yes and Yes

    Bayint: I tried it and it did not work either

    Thank you
    ZA
  21. Replies
    8
    Views
    9,502

    fopen "w" return errno ENOENT

    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] =...
  22. Replies
    1
    Views
    956

    Issue with DIRPORT.C/DIRPORT.H

    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...
  23. Separation of declarations

    It did the trick...
    Thanks
    ZA
  24. Replies
    13
    Views
    1,258

    It's moot now since I've decided to adhere with...

    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
  25. IntelliSense: declaration is incompatible with

    Hi all

    I have this in a .C file, the last line of this declaration is line 19:



    EXTERN struct
    {
    int len;
    int pitch;
Results 1 to 25 of 29
Page 1 of 2 1 2