Re: [sqlite] fts2 in the amalgamation source?

2007-07-27 Thread Marco Bambini

I have modified the Makefile, so I have added:

SRC += \
  $(TOP)/ext/fts2/fts2.c \
  $(TOP)/ext/fts2/fts2.h \
  $(TOP)/ext/fts2/fts2_hash.c \
  $(TOP)/ext/fts2/fts2_hash.h \
  $(TOP)/ext/fts2/fts2_porter.c \
  $(TOP)/ext/fts2/fts2_tokenizer.h \
  $(TOP)/ext/fts2/fts2_tokenizer1.c

make sqlite3.c works fine
and I was able to compile it.

Hope this help.
---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/
http://www.sqlabs.net/realsqlserver/



On Jul 26, 2007, at 4:41 PM, [EMAIL PROTECTED] wrote:


"David Crawshaw" <[EMAIL PROTECTED]> wrote:

Hello all,

I was wondering if it would be possible to include fts2 in the
amalgamated version of the source code. It looks like all that needs
to be done is add

tclsh $(TOP)/ext/fts2/mkfts2amal.tcl

to the end of the target_source target in Makefile.in and then add

fts2amal.c

to the end of the "foreach file" loop in tool/mksqlite3c.tcl. I
hesitate because with the scripts effectively written for this, there
is probably a reason why fts2 has been omitted.



The reason fts2 is omitted is that there are name collisions
between internal symbols of fts2 and the SQLite core.  So the
two entities cannot exist in the same translation unit.  I've
been meaning to go in and resolve the conflicts, but have not
gotten around to that yet.

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


-- 
---

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





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



Re: [sqlite] fts2 in the amalgamation source?

2007-07-26 Thread drh
"David Crawshaw" <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> I was wondering if it would be possible to include fts2 in the
> amalgamated version of the source code. It looks like all that needs
> to be done is add
> 
> tclsh $(TOP)/ext/fts2/mkfts2amal.tcl
> 
> to the end of the target_source target in Makefile.in and then add
> 
> fts2amal.c
> 
> to the end of the "foreach file" loop in tool/mksqlite3c.tcl. I
> hesitate because with the scripts effectively written for this, there
> is probably a reason why fts2 has been omitted.
> 

The reason fts2 is omitted is that there are name collisions
between internal symbols of fts2 and the SQLite core.  So the
two entities cannot exist in the same translation unit.  I've
been meaning to go in and resolve the conflicts, but have not
gotten around to that yet.

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


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



Re: [sqlite] fts2 in the amalgamation source?

2007-07-26 Thread Joe Wilson
I guess that the sqlite authors only want to include the core library
in the amalgamation and rely on loadable extension modules for the rest. 

Perhaps fts1 and fts2 could be statically added to the amalgomation, but 
ifdef'd out by default.

--- David Crawshaw <[EMAIL PROTECTED]> wrote:
> I was wondering if it would be possible to include fts2 in the
> amalgamated version of the source code. It looks like all that needs
> to be done is add
> 
> tclsh $(TOP)/ext/fts2/mkfts2amal.tcl
> 
> to the end of the target_source target in Makefile.in and then add
> 
> fts2amal.c
> 
> to the end of the "foreach file" loop in tool/mksqlite3c.tcl. I
> hesitate because with the scripts effectively written for this, there
> is probably a reason why fts2 has been omitted.



   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

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



RE: [sqlite] fts2 in the amalgamation source?

2007-07-26 Thread Samuel R. Neff

Unless something changed recently that I missed, fts2 is not a standard part
of sqlite so including it in the standard amalgamation would be a big
change.  Having two distributions, one with and one without, might make
sense though.

Or including it with an OMIT flag would work too (default to omit).

Sam


---
We're Hiring! Seeking a passionate developer to join our team building
products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: David Crawshaw [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 26, 2007 3:39 AM
To: sqlite-users@sqlite.org
Subject: [sqlite] fts2 in the amalgamation source?

Hello all,

I was wondering if it would be possible to include fts2 in the
amalgamated version of the source code. It looks like all that needs
to be done is add

tclsh $(TOP)/ext/fts2/mkfts2amal.tcl

to the end of the target_source target in Makefile.in and then add

fts2amal.c

to the end of the "foreach file" loop in tool/mksqlite3c.tcl. I
hesitate because with the scripts effectively written for this, there
is probably a reason why fts2 has been omitted.

Thank you,

David


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