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
Function types behaviour #251
Conversation
Altered many function types from int to bool(C99) and added meaningful return values. Altered many function types from int to void as they didn't have any meaningful return value. Replaced chrif_char_offline with a macro as this function did exactly the same as chrif_char_offline_nsd.
Hi.
I'd ask you to revert that for the sake of the remainder of your pull request, so we can merge it as soon as possible to avoid any conflicts future commits may cause to it (and we can see about the recvtype stuff afterwards). |
… changemapserverack.
Sorry about those mistakes in those interface members, there wasn't any errors or warnings when I built and usually when there were any mismatches between members and their functions there were, so I didn't even recheck them. I already changed those errors and sent a patch. https://github.com/panikon/Hercules/commit/761d3eb8291c997a627dc42da39913eb52abfce3 |
@@ -239,8 +238,8 @@ int chrif_isconnected(void) { | |||
* Flag = 1: Character is quitting | |||
* Flag = 2: Character is changing map-servers | |||
*------------------------------------------*/ | |||
int chrif_save(struct map_session_data *sd, int flag) { | |||
nullpo_retr(-1, sd); | |||
bool chrif_save(struct map_session_data *sd, int flag) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Careful here, there's still a chrif_check(-1)
(line 254) that returns -1
Hello! Thanks for your contribution. There are a few more little things I pointed out, if you could fix those, I believe we can merge it |
Thank you for pointing out those mistakes, I corrected them and already pushed https://github.com/panikon/Hercules/commit/0267cad28133b4c245f1cf100a24ab8a14cf2a73 |
Function types behaviour
Merged. Thank you again! |
Updated return values of some atcommands.
Altered many function types from int to bool(C99) and added meaningful return values.
Altered many function types from int to void as they didn't have any meaningful return value.
Replaced chrif_char_offline with a macro as this function did exactly the same as chrif_char_offline_nsd.