Re: [sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread J Decker
Okay if this should change, I would recommand a new standard for all libraries; and since standards are so important maybe make them know about it too... do ... ORG_DOMAIN_APPLICATION_LIBRARY_MODULE_SOURCE_INCLUDED where each piece becomes unqiqe so there's no collision. I'd expect compilers

Re: [sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread dandl
> Obviously the standard is broken/incorrect or your interpretation of it is > broken/incorrect. No, and the standard was very carefully written to say this, and it's easy to find references to back up this interpretation if you care to look for them. Or ask a question on SO. > Most API headers

Re: [sqlite] Database is locked

2016-07-09 Thread Igor Korot
Simon, On Sat, Jul 9, 2016 at 7:09 PM, Simon Slavin wrote: > > On 10 Jul 2016, at 12:06am, Igor Korot wrote: > >> I'm trying to write some software in C{++}. Everything works fine except >> when I exit the program exit I get the error "Database is

Re: [sqlite] Database is locked

2016-07-09 Thread Simon Slavin
On 10 Jul 2016, at 12:06am, Igor Korot wrote: > I'm trying to write some software in C{++}. Everything works fine except > when I exit the program exit I get the error "Database is locked". > I am only trying to retrieve the information about the database (queries on >

[sqlite] Database is locked

2016-07-09 Thread Igor Korot
Hi, Here is my situation. I'm trying to write some software in C{++}. Everything works fine except when I exit the program exit I get the error "Database is locked". I am only trying to retrieve the information about the database (queries on sqlite_master). So here are my questions: 1. When the

Re: [sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread J Decker
On Fri, Jul 8, 2016 at 4:56 PM, Daniel Seither wrote: > Using clang 3.8 with -Wreserved-id-macro (enabled by -Weverything), I > just noticed that SQLite uses include guards with a leading underscore, > for example _SQLITE3_H_ in the amalgamation. According to the C > standard,

Re: [sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread Doug Currie
On Sat, Jul 9, 2016 at 12:05 PM, Keith Medcalf wrote: > > [...] Most API headers do the same thing. Even the standard library does > it, in most compilers. [...] Sure, that's why they're reserved! So user code and the C compiler's library implementation don't clash. The

Re: [sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread Keith Medcalf
Obviously the standard is broken/incorrect or your interpretation of it is broken/incorrect. Most API headers do the same thing. Even the standard library does it, in most compilers. Not all of them add the trailing _, but several do. Whether and particular one does or not seems to depend

Re: [sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread dandl
> Using clang 3.8 with -Wreserved-id-macro (enabled by -Weverything), I just > noticed that SQLite uses include guards with a leading underscore, for > example _SQLITE3_H_ in the amalgamation. According to the C standard, this is > a reserved identifier, leading to undefined behavior: > > > All

Re: [sqlite] Lemon doesn't reset `yyerrcnt` after error

2016-07-09 Thread Nick Wellnhofer
On 08/07/2016 21:54, Richard Hipp wrote: Please try again with the latest version of Lemon. Thanks. This still doesn't work for me. I created a GitHub repo to demonstrate the problem: https://github.com/nwellnhof/lemon-bug Nick ___

Re: [sqlite] Lemon doesn't reset `yyerrcnt` after error

2016-07-09 Thread Nick Wellnhofer
On 08/07/2016 21:54, Richard Hipp wrote: Please try again with the latest version of Lemon. Thanks. On 7/6/16, Nick Wellnhofer wrote: On 05/07/2016 18:12, Richard Hipp wrote: Please try https://www.sqlite.org/src/info/2683b375ad129117 and verify that the changes on

[sqlite] Bug: SQLite's include guards are reserved identifiers

2016-07-09 Thread Daniel Seither
Using clang 3.8 with -Wreserved-id-macro (enabled by -Weverything), I just noticed that SQLite uses include guards with a leading underscore, for example _SQLITE3_H_ in the amalgamation. According to the C standard, this is a reserved identifier, leading to undefined behavior: > All identifiers

Re: [sqlite] Bug Report: All database opening blocked awaiting wal index rebuild

2016-07-09 Thread Olivier Mascia
> Le 9 juil. 2016 à 12:33, Simon Slavin a écrit : > >> I'm really interested in knowing wether you use the engine in SERIALIZED or >> MULTITHREADED mode during this event reproduction? > > In other words, please read the last part of > >

Re: [sqlite] Bug Report: All database opening blocked awaiting wal index rebuild

2016-07-09 Thread Simon Slavin
On 9 Jul 2016, at 9:27am, Olivier Mascia wrote: > I'm really interested in knowing wether you use the engine in SERIALIZED or > MULTITHREADED mode during this event reproduction? In other words, please read the last part of and try

Re: [sqlite] Bug Report: All database opening blocked awaiting wal index rebuild

2016-07-09 Thread Olivier Mascia
> Le 9 juil. 2016 à 00:55, Brian Vincent a écrit : > > I've managed to reproduce a scenario where one database, database1.db is > rebuilding a large wal-index. Meanwhile, all other threads attempting to > open completely unrelated databases (e.g. database2.db) are blocked