Re: [sqlite] amalgamation code duplication

2008-01-07 Thread drh
Dennis Cote <[EMAIL PROTECTED]> wrote:
> I am wondering if anyone has already looked into why the SQLite 
> amalgamation source file sqlite3.c repeats the same definitions and 
> declarations so many times.
> 
> For example the line
> 
> #define SQLITE_VERSION "3.5.4"
> 
> is repeated 9 times at lines
> 
> 456
> 73835
> 77835
> 87945
> 92304
> 96930
> 101250
> 105609
> 109820
> 
> and the API function sqlite3_bind_parameter_index() appears 13 times at 
> lines
> 
> 2277
> 37674
> 56091
> 56345
> 75656
> 79656
> 89766
> 94125
> 98751
> 100867
> 103071
> 107430
> 111641
> 
> The first 4 occurrences seem reasonable, but the others seem to be very 
> repetitive.
> 
> Is there a good reason for this, or is there perhaps something wrong 
> with the amalgamation build process?
> 

I think there is something wrong with the build process.  I noticed
it earlier today, but have not yet fixed it.

--
D. Richard Hipp <[EMAIL PROTECTED]>


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] amalgamation code duplication

2008-01-07 Thread Dennis Cote
I am wondering if anyone has already looked into why the SQLite 
amalgamation source file sqlite3.c repeats the same definitions and 
declarations so many times.


For example the line

#define SQLITE_VERSION "3.5.4"

is repeated 9 times at lines

456
73835
77835
87945
92304
96930
101250
105609
109820

and the API function sqlite3_bind_parameter_index() appears 13 times at 
lines


2277
37674
56091
56345
75656
79656
89766
94125
98751
100867
103071
107430
111641

The first 4 occurrences seem reasonable, but the others seem to be very 
repetitive.


Is there a good reason for this, or is there perhaps something wrong 
with the amalgamation build process?


Dennis Cote



-
To unsubscribe, send email to [EMAIL PROTECTED]
-