|
|
Choosing A Webhost: |
9728: trunk/xapian-core/ trunk/xapian-core/common/ trunk/xapian-core/includ: msg#00169search.xapian.cvs
SVN root: svn://svn.xapian.org/xapian Changes by: richard Revision: 9728 Date: 2007-11-25 16:41:42 +0000 (Sun, 25 Nov 2007) Log message (13 lines): common/stats.h,include/xapian/enquire.h,matcher/localmatch.cc, matcher/weight.cc: Undo ABI change introduced in previous commit with a nasty workaround; we can't initialise Weight::internal reliably, because applications complied with earlier versions of the library may have inlined the constructor of the Weight class. Therefore, we can't delete Weight::internal in the destructor, because we don't know if it was initialised. Instead, we add factory methods for making Weight::Internal objects to Stats, register all the Weight::Internal objects made by these factory methods in a list is the Stats object, and delete them when Stats is deleted (which conveniently happens after the match has finished). Mark all this with FIXME:1.1: so that we can easily convert it to nicer code once we branch for 1.1. Modified files: U trunk/xapian-core/ChangeLog U trunk/xapian-core/common/stats.h U trunk/xapian-core/include/xapian/enquire.h U trunk/xapian-core/matcher/localmatch.cc U trunk/xapian-core/matcher/weight.cc Links: http://xapian.org/C?9728 http://xapian.org/C?9728?trunk/xapian-core/ChangeLog http://xapian.org/C?9728?trunk/xapian-core/common/stats.h http://xapian.org/C?9728?trunk/xapian-core/include/xapian/enquire.h http://xapian.org/C?9728?trunk/xapian-core/matcher/localmatch.cc http://xapian.org/C?9728?trunk/xapian-core/matcher/weight.cc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 9727: trunk/xapian-core/ trunk/xapian-core/api/ trunk/xapian-core/common/ trunk/xapian-core/include/xapian/ trunk/xapian-core/matcher/, richard |
|---|---|
| Next by Date: | 9729: trunk/xapian-core/ trunk/xapian-core/matcher/, richard |
| Previous by Thread: | 9727: trunk/xapian-core/ trunk/xapian-core/api/ trunk/xapian-core/common/ trunk/xapian-core/include/xapian/ trunk/xapian-core/matcher/, richard |
| Next by Thread: | 9729: trunk/xapian-core/ trunk/xapian-core/matcher/, richard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |