~ubuntu-branches/ubuntu/raring/clucene-core/raring-proposed

« back to all changes in this revision

Viewing changes to src/shared/CLucene/SharedHeader.cpp

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2012-08-11 09:33:38 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120811093338-fgrx41ftqew3qt6a
Tags: 2.3.3.4-1
* New upstream release (Closes: #661703).
* Convert package to multiarch.
* Drop obsolete patches:
  - 01_add_missing_include_bug505667.diff
  - 02_posixness_fix_bug530308.diff
* Add patches:
  - Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
  - Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
  - Install-contribs-lib.patch
  - multiarch.patch
* Update debian/compat: bump to 8.
* Update debian/control:
  - update build dependencies (add cmake, libboost-dev and libz-dev).
  - bump Standards-Version to 3.9.3.
  - rename packages due to ABI bump: libclucene0ldbl -> libclucene-core1.
  - add libclucene-contribs1 package.
* Update debian/rules:
  - rewrite to use CMake.
  - add multiarch support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*------------------------------------------------------------------------------
 
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
 
3
*
 
4
* Distributable under the terms of either the Apache License (Version 2.0) or
 
5
* the GNU Lesser General Public License, as specified in the COPYING file.
 
6
------------------------------------------------------------------------------*/
 
7
 
 
8
#include "CLucene/_SharedHeader.h"
 
9
 
 
10
 
 
11
#ifdef _CL_HAVE_SYS_STAT_H
 
12
        #include <sys/stat.h>
 
13
#endif
 
14
 
 
15
 
 
16
const TCHAR* _LUCENE_BLANK_STRING=_T("");
 
17
const char* _LUCENE_BLANK_ASTRING="";
 
18
 
 
19
 
 
20
#if defined(_ASCII)
 
21
  #if defined(_LUCENE_PRAGMA_WARNINGS)
 
22
         #pragma message ("==================Using ascii mode!!!==================")
 
23
        #else
 
24
         #warning "==================Using ascii mode!!!=================="
 
25
        #endif
 
26
#endif
 
27
 
 
28
wchar_t* lucene_wcsdup( const wchar_t* str ){
 
29
        size_t len = wcslen(str);
 
30
        wchar_t* ret = (wchar_t*)malloc( (len + 1) * sizeof(wchar_t) );
 
31
        wcscpy(ret, str);
 
32
        return ret;
 
33
}