Skip to content
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

Use named function types for friend_requests callbacks. #990

Merged
merged 1 commit into from
Jul 8, 2018

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jul 8, 2018

Also:

  • #define must be scoped. If it's used outside a scope, it must be
    defined outside that scope (global #define does not need a matching
    #undef).

This change is Reviewable

@iphydf iphydf added this to the v0.2.x milestone Jul 8, 2018
Copy link

@sudden6 sudden6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r1.
Reviewable status: 0 of 1 LGTMs obtained


toxcore/friend_requests.c, line 35 at r1 (raw file):

#include "util.h"

#define MAX_RECEIVED_STORED 32

by moving this define it lost the context to the comment


toxcore/friend_requests.c, line 45 at r1 (raw file):

    filter_function_cb *filter_function;
    void *filter_function_userdata;
    /* NOTE: The following is just a temporary fix for the multiple friend requests received at the same time problem.

here

Copy link
Member Author

@iphydf iphydf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 LGTMs obtained


toxcore/friend_requests.c, line 35 at r1 (raw file):

Previously, sudden6 wrote…

by moving this define it lost the context to the comment

Done.


toxcore/friend_requests.c, line 45 at r1 (raw file):

Previously, sudden6 wrote…

here

Done.

Copy link

@sudden6 sudden6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@iphydf iphydf force-pushed the fr-cb-types branch 4 times, most recently from 4e730f1 to 00676ea Compare July 8, 2018 21:43
Also:
* `#define` must be scoped. If it's used outside a scope, it must be
  defined outside that scope (global `#define` does not need a matching
  `#undef`).
@iphydf iphydf merged commit 76e1d05 into TokTok:master Jul 8, 2018
@iphydf iphydf deleted the fr-cb-types branch July 8, 2018 22:32
@iphydf iphydf modified the milestones: v0.2.x, v0.2.4 Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants