#1618 Provide complete C prototypes for C-exported functions

Bug
closed-fixed
scintilla (255)
5
2014-08-14
2014-07-04
No

A C function declaration with an empty parameter list does not declare a function taking no parameters, but simply does not declares what parameters it takes (hence, it's not a complete prototype). To denote an empty parameter list, C uses the special void value.

This avoids warnings when building C sources including Scintilla.h if using e.g. GCC's -Wstrict-prototypes option, as well as actually disallowing passing parameters to those functions.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2014-07-08
    • labels: --> scintilla
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2014-08-14
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks