xub_StrLen and tools/string.hxx final straw

Thre is still some 0xffff limit left and possibly some
less than gracefully handled overflow/error cases

Change-Id: I00957ee3a30b02f73918ea49d7353056263dc638
Reviewed-on: https://gerrit.libreoffice.org/7787
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
This commit is contained in:
Norbert Thiebaud
2014-02-02 22:16:48 -06:00
parent 5c39b6b997
commit 3cbfcee36d
114 changed files with 1292 additions and 1344 deletions

View File

@@ -115,8 +115,6 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((sal_uInt8*)&n)[7
#pragma warning(error : 4002 4003)
#endif
#define xub_StrLen sal_uInt16
#if defined WNT
#define SVLIBRARY( Base ) Base "lo.dll"
#elif defined MACOSX

View File

@@ -1,31 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _STRING_HXX
#define _STRING_HXX
/*******************************************************************************
* THIS CODE IS DEPRECATED. DO NOT USE IT IN ANY NEW CODE.
******************************************************************************/
#define STRING_MAXLEN ((xub_StrLen)0xFFFF)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */