add missing header
add missing header
After rebasing I learnt you already had cherry-picked my commits during February after the discussion in https://sourceforge.net/p/mcj/fig2dev/merge-requests/1/. So this merge request if effectively empty. Sorry for the noise.
Fix prototypes for modern C
Sorry, no intention to threat anyone. How far did you proceed? I should add that I also had done some work on function casts, yet unpublished. Unpublished, because it clutters development history, and I wanted to insert such stuff at the end of a release cycle. If you did not yet advance too far, I should bring that code into a decent shape and publish it as a separate branch. Otherwise, I am happy to merge your work. I pushed my current work under https://sourceforge.net/u/hamarituc/xfig/ci/prototypes/tree/...
Fix miscellaneous prototypes
Fix X callback prototypes
Fix prototypes for manipulation callbacks
Fix prototypes for moving callbacks
Remove obsolete declarations
Fix old style definitions
Fix prototypes for keyboard callbacks
Fix prototypes for mouse button callbacks
Good to know; In the development version, especially in xfig, there are plenty of incomplete prototypes. Until now, gcc and clang only warn. I am already working on this issue and was naive enough to think it is just a quick fix, ... A question, with respect to warnings: Especially in xfig, functions types are often cast to different types, from something. e.g., XtCallbackProc (*)(Widget w, XtPointer client_data, XtPointer call_data) to XtEventHandler (*)(Widget w, XtPointer client_data, XEvent *event,...
Specify argument types in function prototypes
Specify argument types in function prototypes