-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling as C #528
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Merged
This comment has been minimized.
This comment has been minimized.
Merged
AJenbo
pushed a commit
that referenced
this issue
Jan 12, 2019
Note, in the future, we want to figure out how the delete operator was overloaded and included while still compiling the project as C. Most likely it was overloaded in the Storm header, and being included by appfat.cpp (which is the first file being compiled in alphabetic order), it was included here. Fixes #528.
🎉 We are now closer to getting a matching Rich header :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is for tracking the status of converting the project to C in order to get things more binary exact.
General issue
storm.h
isn't loaded in a way that allows the compiler to recognize the function names.diabloui.h
isn't loaded in a way that allows the compiler to recognize the function names.static float *_cpp_init_value = INFINITY;
this was probably put here by the compiler because of crtical sections or similar and should be safe to remove for now.ddraw.h
isn't being referenced in a way that allows the compiler to recognize the structure memberse.dsound.h
isn't being referenced in a way that allows the compiler to recognize the structure memberse.init_event
, this is relatet to the_cpp_init_
structures. C init #549__ROR2__
,__ROR4__
,__OFSUB__
)DrawSpellCel
Replace __ROR4__ stdlib, make _ROR2__ C frindly #540CheckChrBtns
control_set_gold_curs
DRLG_L3River
Clean up __OFSUB__ usage #539CelDecDatLightTrans
Replace __ROR4__ stdlib, make _ROR2__ C frindly #540Cel2DecDatLightTrans
Replace __ROR4__ stdlib, make _ROR2__ C frindly #540GetItemSpace
DoLighting
Clean up __OFSUB__ usage #539M_TryH2HHit
Clean up __OFSUB__ usage #539MAI_Counselor
Clean up __OFSUB__ usage #539AddSarc
AddBarrel
Obj_FlameTrap
Obj_Trap
MonstCheckDoors
OperateL1Door
OperateL2Door
StoreSellItem
Clean up __OFSUB__ usage #539S_SRepairEnter
Clean up __OFSUB__ usage #539S_WRechargeEnter
Clean up __OFSUB__ usage #539HealerBuyItem
Clean up __OFSUB__ usage #539CheckStoreBtn
Clean up __OFSUB__ usage #539File issues
delete
is being overloadedio.h
winuser.h
char szValueName[] = "Intro";
unsigned char Dirs[16][16] = {...}
needs to be rewritten in a C friendly way.LRESULT
return type appears to not allowNULL
, use0
?mpqapi_open_archive(const char *pszArchive, ...)
first parameter gives the following errors C4028, C4090, C4024char password[16] = PASSWORD_SINGLE;
needs to be rewritten in a C friendly way.SFileReadFile(1,2,3,4,NULL)
produce an errorasm_*
the C compiler is unhappy with the inline format. Make inline statments C compatible #550asm_*
dst & src are passed by references, this isn't allowed in C.The text was updated successfully, but these errors were encountered: