#ifndef _XPCLUCENE_H_ #define _XPCLUCENE_H_ #if defined(MOZ_LOGGING) #define FORCE_PR_LOG #endif #include "prlog.h" /* * On linux and mac osx, utf32_t is 4 bytes. Other platforms it is 2 bytes. */ #if defined(LINUX) || defined(XP_MACOSX) typedef unsigned long utf32_t; #else typedef wchar_t utf32_t; #endif #if defined( PR_LOGGING ) // // in order to do logging, the following environment variables need to be set: // // set NSPR_LOG_MODULES=xpclucene:4 // set NSPR_LOG_FILE=xpclucene.log // extern PRLogModuleInfo* gXpclunceneLog; #define LOG(args) PR_LOG(gXpclunceneLog, PR_LOG_DEBUG, args) #else #define LOG(args) #endif #endif /* !defined( _XPCLUCENE_H_ ) */ #define LUCENETRYCATCH_START \ try { #define LUCENETRYCATCH_END \ }\ catch(CLuceneError &e) {\ return nsLuceneFactory::TranslateError(&e);\ } #define LUCENE_FORWARD_DECLARE1(ns, klass) \ namespace lucene \ { \ namespace ns \ { \ class klass; \ } \ }