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
74500c21
Kaydet (Commit)
74500c21
authored
Kas 13, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
ca48cd4c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
lex.hxx
idl/inc/lex.hxx
+3
-3
lex.cxx
idl/source/cmptools/lex.cxx
+3
-3
command.cxx
idl/source/prj/command.cxx
+4
-4
cppdep.cxx
tools/bootstrp/cppdep.cxx
+7
-5
No files found.
idl/inc/lex.hxx
Dosyayı görüntüle @
74500c21
...
@@ -146,11 +146,11 @@ class SvTokenStream
...
@@ -146,11 +146,11 @@ class SvTokenStream
void
InitCtor
();
void
InitCtor
();
ByteString
aBufStr
;
rtl
::
OString
aBufStr
;
int
GetNextChar
();
int
GetNextChar
();
int
GetFastNextChar
()
int
GetFastNextChar
()
{
{
return
aBufStr
.
GetChar
((
sal_uInt16
)
nBufPos
++
)
;
return
aBufStr
[
nBufPos
++
]
;
}
}
void
FillTokenList
();
void
FillTokenList
();
...
@@ -171,7 +171,7 @@ class SvTokenStream
...
@@ -171,7 +171,7 @@ class SvTokenStream
sal_uInt16
n
=
0
;
sal_uInt16
n
=
0
;
nColumn
=
0
;
nColumn
=
0
;
while
(
n
<
nBufPos
)
while
(
n
<
nBufPos
)
nColumn
+=
aBufStr
.
GetChar
(
n
++
)
==
'\t'
?
nTabSize
:
1
;
nColumn
+=
aBufStr
[
n
++
]
==
'\t'
?
nTabSize
:
1
;
}
}
}
}
public
:
public
:
...
...
idl/source/cmptools/lex.cxx
Dosyayı görüntüle @
74500c21
...
@@ -165,7 +165,7 @@ void SvTokenStream::FillTokenList()
...
@@ -165,7 +165,7 @@ void SvTokenStream::FillTokenList()
int
SvTokenStream
::
GetNextChar
()
int
SvTokenStream
::
GetNextChar
()
{
{
int
nChar
;
int
nChar
;
if
(
(
int
)
aBufStr
.
Len
()
<
nBufPos
)
if
(
aBufStr
.
getLength
()
<
nBufPos
)
{
{
if
(
rInStream
.
ReadLine
(
aBufStr
)
)
if
(
rInStream
.
ReadLine
(
aBufStr
)
)
{
{
...
@@ -175,13 +175,13 @@ int SvTokenStream::GetNextChar()
...
@@ -175,13 +175,13 @@ int SvTokenStream::GetNextChar()
}
}
else
else
{
{
aBufStr
.
Erase
();
aBufStr
=
rtl
::
OString
();
nColumn
=
0
;
nColumn
=
0
;
nBufPos
=
0
;
nBufPos
=
0
;
return
'\0'
;
return
'\0'
;
}
}
}
}
nChar
=
aBufStr
.
GetChar
(
(
sal_uInt16
)
nBufPos
++
)
;
nChar
=
aBufStr
[
nBufPos
++
]
;
nColumn
+=
nChar
==
'\t'
?
nTabSize
:
1
;
nColumn
+=
nChar
==
'\t'
?
nTabSize
:
1
;
return
nChar
;
return
nChar
;
}
}
...
...
idl/source/prj/command.cxx
Dosyayı görüntüle @
74500c21
...
@@ -196,20 +196,20 @@ static sal_Bool ResponseFile( StringList * pList, int argc, char ** argv )
...
@@ -196,20 +196,20 @@ static sal_Bool ResponseFile( StringList * pList, int argc, char ** argv )
if
(
aStm
.
GetError
()
!=
SVSTREAM_OK
)
if
(
aStm
.
GetError
()
!=
SVSTREAM_OK
)
return
sal_False
;
return
sal_False
;
Byte
String
aStr
;
rtl
::
O
String
aStr
;
while
(
aStm
.
ReadLine
(
aStr
)
)
while
(
aStm
.
ReadLine
(
aStr
)
)
{
{
sal_uInt16
n
=
0
;
sal_uInt16
n
=
0
;
sal_uInt16
nPos
=
1
;
sal_uInt16
nPos
=
1
;
while
(
n
!=
nPos
)
while
(
n
!=
nPos
)
{
{
while
(
aStr
.
GetChar
(
n
)
&&
isspace
(
aStr
.
GetChar
(
n
)
)
)
while
(
aStr
[
n
]
&&
isspace
(
aStr
[
n
]
)
)
n
++
;
n
++
;
nPos
=
n
;
nPos
=
n
;
while
(
aStr
.
GetChar
(
n
)
&&
!
isspace
(
aStr
.
GetChar
(
n
)
)
)
while
(
aStr
[
n
]
&&
!
isspace
(
aStr
[
n
]
)
)
n
++
;
n
++
;
if
(
n
!=
nPos
)
if
(
n
!=
nPos
)
pList
->
push_back
(
new
String
(
String
::
CreateFromAscii
(
aStr
.
Copy
(
nPos
,
n
-
nPos
).
GetBuffer
()
)
)
);
pList
->
push_back
(
new
String
(
rtl
::
OStringToOUString
(
aStr
.
copy
(
nPos
,
n
-
nPos
),
RTL_TEXTENCODING_ASCII_US
)
)
);
}
}
}
}
}
}
...
...
tools/bootstrp/cppdep.cxx
Dosyayı görüntüle @
74500c21
...
@@ -96,18 +96,20 @@ sal_Bool CppDep::Search( ByteString aFileName )
...
@@ -96,18 +96,20 @@ sal_Bool CppDep::Search( ByteString aFileName )
sal_Bool
bRet
=
sal_False
;
sal_Bool
bRet
=
sal_False
;
SvFileStream
aFile
;
SvFileStream
aFile
;
Byte
String
aReadLine
;
rtl
::
O
String
aReadLine
;
UniString
suFileName
(
aFileName
,
osl_getThreadTextEncoding
());
UniString
suFileName
(
aFileName
,
osl_getThreadTextEncoding
());
aFile
.
Open
(
suFileName
,
STREAM_READ
);
aFile
.
Open
(
suFileName
,
STREAM_READ
);
while
(
aFile
.
ReadLine
(
aReadLine
))
while
(
aFile
.
ReadLine
(
aReadLine
))
{
{
sal_uInt16
nPos
=
aReadLine
.
Search
(
"include"
);
using
comphelper
::
string
::
indexOfL
;
if
(
nPos
!=
STRING_NOTFOUND
)
sal_Int32
nPos
=
indexOfL
(
aReadLine
,
RTL_CONSTASCII_STRINGPARAM
(
"include"
));
if
(
nPos
!=
-
1
)
{
{
#ifdef DEBUG_VERBOSE
#ifdef DEBUG_VERBOSE
fprintf
(
stderr
,
"found : %d %s
\n
"
,
nPos
,
aReadLine
.
GetBuffe
r
()
);
fprintf
(
stderr
,
"found : %d %s
\n
"
,
nPos
,
aReadLine
.
getSt
r
()
);
#endif
#endif
ByteString
aResult
=
IsIncludeStatement
(
aReadLine
);
ByteString
aResult
=
IsIncludeStatement
(
aReadLine
);
#ifdef DEBUG_VERBOSE
#ifdef DEBUG_VERBOSE
...
@@ -127,7 +129,7 @@ sal_Bool CppDep::Search( ByteString aFileName )
...
@@ -127,7 +129,7 @@ sal_Bool CppDep::Search( ByteString aFileName )
bFound
=
sal_True
;
bFound
=
sal_True
;
}
}
#ifdef DEBUG_VERBOSE
#ifdef DEBUG_VERBOSE
fprintf
(
stderr
,
"not in list : %d %s
\n
"
,
nPos
,
aReadLine
.
GetBuffe
r
()
);
fprintf
(
stderr
,
"not in list : %d %s
\n
"
,
nPos
,
aReadLine
.
getSt
r
()
);
#endif
#endif
if
(
!
bFound
)
if
(
!
bFound
)
{
{
...
...
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