1 . (panel->flags & SHOW) == SHOW; or is(panel, SHOW); // Macro defined in gs
2. Don't worry, it is the right way to do it (define your functions headers before you main function and implement them later). You can separate function headers and implementations in many files