• Nils Goroll's avatar
    vcurses: add return value assertions using a semantic patch · 77d7786a
    Nils Goroll authored
    The only relevant change in this patch is the curses.cocci file. All other
    changes are just the result of applying that patch, with additional manual
    polishing where coccinelle caused unwanted cstyle changes.
    
    We explicitly ignore the return value of some curses functions through the IC()
    macro:
    
    * curs_set is known to be ok to fail for terminals which do have no capability
      to make the cursor invisible and
    
    * all print-related functions, which have the unpleasent bug to return ERR when
      the cursor ends up outside the screen/window _after_ completing the print
      function.
    
    For most other curses functions, we add AC() to check that they do not return
    ERR.
    77d7786a
Name
Last commit
Last update
..
Makefile.am Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
varnishhist.c Loading commit data...
varnishhist_options.h Loading commit data...
varnishhist_profiles.h Loading commit data...