[sqlite] Name the arguments in the prototypes.

2015-12-06 Thread gwenn
Maybe because I am lazy.
I can read all the documentation attached to the function prototype.
But I can quickly glean what a function does from its prototype.
And it helps autocompletion.

Thanks.

On Sun, Dec 6, 2015 at 12:16 PM, Richard Hipp  wrote:
> On 12/6/15, gwenn  wrote:
>> Hello,
>> Would you mind adding argument names in function prototypes ?
>
> Would you mind explaining why this might be helpful?
>
> --
> D. Richard Hipp
> drh at sqlite.org
> ___
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Name the arguments in the prototypes.

2015-12-06 Thread gwenn
Hello,
Would you mind adding argument names in function prototypes ?
http://www.sqlite.org/cgi/src/artifact/1248a78548024bdc

SQLITE_API int SQLITE_STDCALL sqlite3_busy_handler(sqlite3*,
int(*)(void*,int), void*);
versus
SQLITE_API int SQLITE_STDCALL sqlite3_busy_handler(sqlite3 *db,
int(*xBusy)(void *pArg, int count), void *pArg);
...
SQLITE_API SQLITE_EXPERIMENTAL void *SQLITE_STDCALL sqlite3_profile(sqlite3*,
   void(*xProfile)(void*,const char*,sqlite3_uint64), void*);
versus
SQLITE_API SQLITE_EXPERIMENTAL void *SQLITE_STDCALL sqlite3_profile(sqlite3 *db,
   void(*xProfile)(void *pArg, const char *sql, sqlite3_uint64
nanoseconds), void *pArg);
...
SQLITE_API int SQLITE_STDCALL sqlite3_errcode(sqlite3 *db);
SQLITE_API int SQLITE_STDCALL sqlite3_extended_errcode(sqlite3 *db);
SQLITE_API const char *SQLITE_STDCALL sqlite3_errmsg(sqlite3*);
versus
SQLITE_API const char *SQLITE_STDCALL sqlite3_errmsg(sqlite3 *db);
...

I can give it a try and send you a patch if you want.
Regards.


[sqlite] Name the arguments in the prototypes.

2015-12-06 Thread Richard Hipp
On 12/6/15, gwenn  wrote:
> Hello,
> Would you mind adding argument names in function prototypes ?

Would you mind explaining why this might be helpful?

-- 
D. Richard Hipp
drh at sqlite.org