SIM_ETHER: restore ability to compile on Visual Studio 2013 and below#498
SIM_ETHER: restore ability to compile on Visual Studio 2013 and below#498cmgauger wants to merge 1 commit intoopen-simh:masterfrom
Conversation
|
You could have used |
|
Looks like I need to figure out what's going on with the current GH CI/CD images too. |
Well if I had known of the existence of |
|
Done, I have reverted |
|
Your changes should be squashed into a single commit. One way to do this might be: |
Replaced the naked `inline` specifier with the SIM_INLINE macro call, allowing for pre-ANSI C99 compilers to continue compiling SIMH, as the `inline` keyword is unsupported in ANSI C89/ISO C90.
8433091 to
d9652c5
Compare
I've gone and done that. |
|
@cmgauger (Christian/Chris): Thanks for resubmitting with Off-topic: Does VS 2013 allow for named structure members in initialization, e.g.,: |
|
Is it really a priority to support a 12 year old compiler, when a current compiler is freely available? Use old code with old compilers is what I always recommend. |
Priority? Maybe not. But a simple change to enable it to work seems like a reasonable thing to do. |
This PR regularizes the As far as supporting a twelve year old compiler goes: well, SIMH still supports builds on Compaq C v6.4 on OpenVMS v7.3 on the VAX, and that's twenty-one years old. |
A quick look says that designated initializers was added in VS 2013 (it's not in VS 2010 though). Although admittedly I never use them (since my style of C is mostly C89-but-I-use- |
Move the
eth_copy_mac()andeth_mac_cmp()functions created in commitc20b391into thesim_ether.cfile as actual functions, as Visual Studio 2013 and below do not support theinlinekeyword for C. This change also allows for pre-ANSI C99 compilers to continue compiling SIMH (asinlinewas not added until C99).