Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b0200601
Kaydet (Commit)
b0200601
authored
Nis 04, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up unreferenced functions
Change-Id: Id9cb4dbeb6b3313974b881efd6a7c43cb5e314ce
üst
883844f2
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
143 additions
and
54 deletions
+143
-54
getexecutablefile.hxx
sal/inc/getexecutablefile.hxx
+44
-0
file.cxx
sal/osl/unx/file.cxx
+2
-4
file_path_helper.cxx
sal/osl/unx/file_path_helper.cxx
+2
-19
nlsupport.c
sal/osl/unx/nlsupport.c
+2
-2
nlsupport.h
sal/osl/unx/nlsupport.h
+44
-0
osxlocale.cxx
sal/osl/unx/osxlocale.cxx
+2
-2
process_impl.cxx
sal/osl/unx/process_impl.cxx
+2
-16
salinit.cxx
sal/osl/unx/salinit.cxx
+2
-3
saltime.h
sal/osl/unx/saltime.h
+37
-0
socket.c
sal/osl/unx/socket.c
+0
-5
time.c
sal/osl/unx/time.c
+3
-0
process.cxx
sal/osl/w32/process.cxx
+1
-0
bootstrap.cxx
sal/rtl/bootstrap.cxx
+2
-3
No files found.
sal/inc/getexecutablefile.hxx
0 → 100644
Dosyayı görüntüle @
b0200601
/* -*- 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 INCLUDED_SAL_INC_GETEXECUTABLEFILE_HXX
#define INCLUDED_SAL_INC_GETEXECUTABLEFILE_HXX
#include <sal/config.h>
#include <osl/process.h>
#include <rtl/ustring.h>
#include <sal/types.h>
/***************************************
osl_bootstrap_getExecutableFile_Impl().
@internal
@see rtl_bootstrap
@see #i37371#
**************************************/
extern
"C"
oslProcessError
SAL_CALL
osl_bootstrap_getExecutableFile_Impl
(
rtl_uString
**
ppFileURL
)
SAL_THROW_EXTERN_C
();
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal/osl/unx/file.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -19,6 +19,7 @@
#include <config_features.h>
#include "boost/noncopyable.hpp"
#include "osl/file.hxx"
#include "osl/detail/file.h"
...
...
@@ -147,14 +148,11 @@ struct FileHandle_Impl
/** Buffer cache / allocator.
*/
class
Allocator
class
Allocator
:
private
boost
::
noncopyable
{
rtl_cache_type
*
m_cache
;
size_t
m_bufsiz
;
Allocator
(
Allocator
const
&
);
Allocator
&
operator
=
(
Allocator
const
&
);
public
:
static
Allocator
&
get
();
...
...
sal/osl/unx/file_path_helper.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -21,6 +21,7 @@
#include "file_path_helper.hxx"
#include "uunxapi.hxx"
#include <boost/noncopyable.hpp>
#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
...
...
@@ -154,7 +155,7 @@ sal_Bool SAL_CALL osl_systemPathIsLocalOrParentDirectoryEntry(
the specified character
**********************************************/
class
path_list_iterator
class
path_list_iterator
:
private
boost
::
noncopyable
{
public
:
...
...
@@ -214,24 +215,6 @@ private:
const
sal_Unicode
m_separator
;
const
sal_Unicode
*
m_path_segment_begin
;
const
sal_Unicode
*
m_path_segment_end
;
// prevent copy and assignment
private
:
/******************************************
copy constructor
remember: do not simply copy m_path_begin
and m_path_end because they point to
the memory of other.m_path_list!
*****************************************/
path_list_iterator
(
const
path_list_iterator
&
other
);
/******************************************
assignment operator
remember: do not simply copy m_path_begin
and m_path_end because they point to
the memory of other.m_path_list!
*****************************************/
path_list_iterator
&
operator
=
(
const
path_list_iterator
&
other
);
};
sal_Bool
SAL_CALL
osl_searchPath
(
...
...
sal/osl/unx/nlsupport.c
Dosyayı görüntüle @
b0200601
...
...
@@ -21,6 +21,8 @@
#include <osl/diagnose.h>
#include <osl/process.h>
#include "nlsupport.h"
#if defined(LINUX) || defined(SOLARIS) || defined(NETBSD) || \
defined(FREEBSD) || defined(MACOSX) || defined(IOS) || defined(OPENBSD) || \
defined(DRAGONFLY)
...
...
@@ -840,8 +842,6 @@ rtl_TextEncoding osl_getTextEncodingFromLocale( rtl_Locale * pLocale )
return the current process locale
*****************************************************************************/
int
macosx_getLocale
(
char
*
locale
,
sal_uInt32
bufferLen
);
void
_imp_getProcessLocale
(
rtl_Locale
**
ppLocale
)
{
static
char
*
locale
=
NULL
;
...
...
sal/osl/unx/nlsupport.h
0 → 100644
Dosyayı görüntüle @
b0200601
/* -*- 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 INCLUDED_SAL_OSL_UNX_NLSUPPORT_H
#define INCLUDED_SAL_OSL_UNX_NLSUPPORT_H
#include <sal/config.h>
#include <rtl/locale.h>
#if defined __cplusplus
extern
"C"
{
#endif
void
_imp_getProcessLocale
(
rtl_Locale
**
);
int
_imp_setProcessLocale
(
rtl_Locale
*
);
#if defined IOS || defined MACOSX
int
macosx_getLocale
(
char
*
locale
,
sal_uInt32
bufferLen
);
#endif
#if defined __cplusplus
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal/osl/unx/osxlocale.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -27,6 +27,8 @@
#include <CoreFoundation/CoreFoundation.h>
#include <postmac.h>
#include <nlsupport.h>
namespace
{
template
<
typename
T
>
...
...
@@ -61,7 +63,6 @@ namespace
/** Grab current locale from system.
*/
extern
"C"
{
int
macosx_getLocale
(
char
*
locale
,
sal_uInt32
bufferLen
)
{
CFStringRef
sref
=
getProcessLocale
();
...
...
@@ -93,6 +94,5 @@ int macosx_getLocale(char *locale, sal_uInt32 bufferLen)
return
noErr
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal/osl/unx/process_impl.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -34,24 +34,13 @@
#include "file_path_helper.h"
#include "uunxapi.h"
#include "getexecutablefile.hxx"
#include "nlsupport.h"
#ifdef ANDROID
#include <osl/detail/android-bootstrap.h>
#endif
/***************************************
osl_bootstrap_getExecutableFile_Impl().
@internal
@see rtl_bootstrap
@see #i37371#
**************************************/
extern
"C"
oslProcessError
SAL_CALL
osl_bootstrap_getExecutableFile_Impl
(
rtl_uString
**
ppFileURL
)
SAL_THROW_EXTERN_C
();
#if defined(MACOSX) || defined(IOS)
#include <mach-o/dyld.h>
...
...
@@ -458,9 +447,6 @@ static struct ProcessLocale_Impl g_process_locale =
0
};
extern
"C"
void
_imp_getProcessLocale
(
rtl_Locale
**
);
extern
"C"
int
_imp_setProcessLocale
(
rtl_Locale
*
);
/**********************************************
osl_getProcessLocale().
*********************************************/
...
...
sal/osl/unx/salinit.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -32,6 +32,8 @@
#include "sal/main.h"
#include "sal/types.h"
#include <saltime.h>
#if HAVE_SYSLOG_H
#include <string.h>
#include <syslog.h>
...
...
@@ -41,9 +43,6 @@ extern bool sal_use_syslog;
extern
"C"
{
//From time.c
void
sal_initGlobalTimer
();
void
sal_detail_initialize
(
int
argc
,
char
**
argv
)
{
#if defined MACOSX && !HAVE_FEATURE_MACOSX_SANDBOX
// On OS X when not sandboxed, soffice can restart itself via exec (see
...
...
sal/osl/unx/saltime.h
0 → 100644
Dosyayı görüntüle @
b0200601
/* -*- 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 INCLUDED_SAL_OSL_UNX_SALTIME_H
#define INCLUDED_SAL_OSL_UNX_SALTIME_H
#include <sal/config.h>
#if defined __cplusplus
extern
"C"
{
#endif
void
sal_initGlobalTimer
();
#if defined __cplusplus
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal/osl/unx/socket.c
Dosyayı görüntüle @
b0200601
...
...
@@ -402,11 +402,6 @@ static oslSocketError osl_SocketErrorFromNative(int nativeType)
oslSocketAddr
SAL_CALL
osl_psz_createInetSocketAddr
(
const
sal_Char
*
pszDottedAddr
,
sal_Int32
Port
);
oslSocketAddr
SAL_CALL
osl_psz_createIpxSocketAddr
(
const
sal_Char
NetNumber
[
4
],
const
sal_Char
NodeNumber
[
6
],
sal_uInt32
SocketNumber
);
oslHostAddr
SAL_CALL
osl_psz_createHostAddr
(
const
sal_Char
*
pszHostname
,
const
oslSocketAddr
Addr
);
...
...
sal/osl/unx/time.c
Dosyayı görüntüle @
b0200601
...
...
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include "saltime.h"
#include "system.h"
#include <osl/diagnose.h>
...
...
sal/osl/w32/process.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -34,6 +34,7 @@
#include <osl/mutex.h>
#include <osl/thread.h>
#include "getexecutablefile.hxx"
#include "procimpl.h"
#include "sockimpl.h"
#include "file_url.h"
...
...
sal/rtl/bootstrap.cxx
Dosyayı görüntüle @
b0200601
...
...
@@ -43,6 +43,8 @@
#include <boost/unordered_map.hpp>
#include <list>
#include "getexecutablefile.hxx"
#ifdef ANDROID
#include <osl/detail/android-bootstrap.h>
#endif
...
...
@@ -215,9 +217,6 @@ static bool getFromCommandLineArgs(
return
found
;
}
extern
"C"
oslProcessError
SAL_CALL
osl_bootstrap_getExecutableFile_Impl
(
rtl_uString
**
ppFileURL
)
SAL_THROW_EXTERN_C
();
inline
void
getExecutableFile_Impl
(
rtl_uString
**
ppFileURL
)
{
osl_bootstrap_getExecutableFile_Impl
(
ppFileURL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment