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
3f72ad15
Kaydet (Commit)
3f72ad15
authored
May 13, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
osl_openMemoryAsFile is internal, Android-only functionality
Change-Id: I36734b0e5e1c0b15ed4f0845450b444b23579ffe
üst
a5b93782
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
40 deletions
+5
-40
file.h
include/osl/detail/file.h
+0
-3
file.cxx
sal/osl/unx/file.cxx
+5
-7
osl_File.cxx
sal/qa/osl/file/osl_File.cxx
+0
-29
sal.map
sal/util/sal.map
+0
-1
No files found.
include/osl/detail/file.h
Dosyayı görüntüle @
3f72ad15
...
...
@@ -43,9 +43,6 @@ SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFileOSHandle(
oslFileHandle
Handle
,
sal_IntPtr
*
piFileHandle
);
/* for unit testing. */
SAL_DLLPUBLIC
oslFileError
SAL_CALL
osl_openMemoryAsFile
(
void
*
address
,
size_t
size
,
oslFileHandle
*
pHandle
);
#if defined __cplusplus
}
#endif
...
...
sal/osl/unx/file.cxx
Dosyayı görüntüle @
3f72ad15
...
...
@@ -780,10 +780,12 @@ static bool osl_file_queryLocking (sal_uInt32 uFlags)
return
false
;
}
#ifdef UNX
#if defined ANDROID
namespace
{
static
oslFileError
o
sl_o
penMemoryAsFile
(
void
*
address
,
size_t
size
,
oslFileHandle
*
pHandle
,
const
char
*
path
)
openMemoryAsFile
(
void
*
address
,
size_t
size
,
oslFileHandle
*
pHandle
,
const
char
*
path
)
{
oslFileError
eRet
;
FileHandle_Impl
*
pImpl
=
new
FileHandle_Impl
(
-
1
,
FileHandle_Impl
::
KIND_MEM
,
path
);
...
...
@@ -805,10 +807,6 @@ osl_openMemoryAsFile( void *address, size_t size, oslFileHandle *pHandle, const
return
osl_File_E_None
;
}
oslFileError
SAL_CALL
osl_openMemoryAsFile
(
void
*
address
,
size_t
size
,
oslFileHandle
*
pHandle
)
{
return
osl_openMemoryAsFile
(
address
,
size
,
pHandle
,
"<anon>"
);
}
#endif
...
...
@@ -848,7 +846,7 @@ SAL_CALL osl_openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_u
errno
=
ENOENT
;
return
osl_File_E_NOENT
;
}
return
o
sl_o
penMemoryAsFile
(
address
,
size
,
pHandle
,
cpFilePath
);
return
openMemoryAsFile
(
address
,
size
,
pHandle
,
cpFilePath
);
}
#endif
...
...
sal/qa/osl/file/osl_File.cxx
Dosyayı görüntüle @
3f72ad15
...
...
@@ -2942,38 +2942,9 @@ namespace osl_File
*
pEOF
&&
(
0
==
strncmp
(
(
const
char
*
)
aSequence
.
getArray
(),
&
pBuffer_Char
[
26
],
26
)
)
);
}
#ifdef UNX
void
readLine_android
()
{
static
const
char
buffer
[]
=
"Hello
\n\r\n\a\n
"
"Fun=Badness
\n
"
"Some=Somethingelse
\n\r
"
;
sal_Int32
aHash
=
rtl_str_hashCode
(
buffer
);
for
(
size_t
i
=
0
;
i
<
sizeof
(
buffer
);
i
+=
7
)
{
oslFileHandle
pFile
(
0
);
CPPUNIT_ASSERT
(
osl_openMemoryAsFile
(
(
void
*
)
buffer
,
sizeof
(
buffer
)
-
i
,
&
pFile
)
==
osl_File_E_None
);
for
(;;)
{
sal_Sequence
*
pSequence
(
0
);
if
(
osl_readLine
(
pFile
,
&
pSequence
)
!=
osl_File_E_None
)
break
;
rtl_byte_sequence_release
(
pSequence
);
}
CPPUNIT_ASSERT
(
osl_closeFile
(
pFile
)
==
osl_File_E_None
);
}
CPPUNIT_ASSERT
(
aHash
==
rtl_str_hashCode
(
buffer
)
);
}
#endif
CPPUNIT_TEST_SUITE
(
readLine
);
CPPUNIT_TEST
(
readLine_001
);
CPPUNIT_TEST
(
readLine_002
);
#ifdef UNX
CPPUNIT_TEST
(
readLine_android
);
#endif
CPPUNIT_TEST_SUITE_END
();
};
// class readLine
...
...
sal/util/sal.map
Dosyayı görüntüle @
3f72ad15
...
...
@@ -709,7 +709,6 @@ PRIVATE_textenc.1 { # LibreOffice 3.6
PRIVATE_file.1 { # LibreOffice 3.6
global:
osl_getFileOSHandle;
osl_openMemoryAsFile;
};
# Unique libstdc++ symbols:
...
...
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