alx-tools/Betty

More than 5 functions wrong detection

Mattrack opened this issue · 2 comments

This kind of declaration is detected as functions by Betty

KeyBind binded_keys[] = {
    {0x4F, RIGHT_FLAG, &turn_right},
    {0x50, LEFT_FLAG, &turn_left},
    {0x1A, W_FLAG, &move_front},
    {0x16, S_FLAG, &move_back},
    {0x04, A_FLAG, &move_left},
    {0x07, D_FLAG, &move_right},
    {0, -1, NULL}
};

Also detected with struct definitions

previous fix avoids functions counter ...