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
146c2e00
Kaydet (Commit)
146c2e00
authored
Tem 15, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
crashrep: loplugin:unreffun
Change-Id: I83d4c3ee02e59d40e793288d705c3fd06ebe3219
üst
9bb70e18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
68 deletions
+0
-68
main.cxx
crashrep/source/unx/main.cxx
+0
-68
No files found.
crashrep/source/unx/main.cxx
Dosyayı görüntüle @
146c2e00
...
...
@@ -258,35 +258,6 @@ static void printSettings( const boost::unordered_map<string,string>& rSettings
}
#endif
bool
save_crash_report
(
const
string
&
rFileName
,
const
boost
::
unordered_map
<
string
,
string
>&
/*rSettings*/
)
{
bool
bSuccess
=
false
;
FILE
*
fpout
=
fopen
(
rFileName
.
c_str
(),
"w"
);
if
(
fpout
)
{
FILE
*
fpin
=
fopen
(
g_szStackFile
,
"r"
);
if
(
fpin
)
{
char
buf
[
1024
];
while
(
fgets
(
buf
,
sizeof
(
buf
),
fpin
)
!=
NULL
)
{
fputs
(
buf
,
fpout
);
}
bSuccess
=
true
;
fclose
(
fpin
);
}
fclose
(
fpout
);
}
return
bSuccess
;
}
bool
SendHTTPRequest
(
FILE
*
fp
,
const
char
*
pszServer
,
...
...
@@ -516,45 +487,6 @@ bool send_crash_report( const boost::unordered_map< string, string >& rSettings
}
static
bool
append_file
(
const
char
*
filename
,
string
&
rString
)
{
FILE
*
fp
=
fopen
(
filename
,
"r"
);
if
(
fp
)
{
char
buf
[
1024
];
while
(
fgets
(
buf
,
sizeof
(
buf
),
fp
)
!=
NULL
)
{
rString
.
append
(
buf
);
}
fclose
(
fp
);
return
true
;
}
return
false
;
}
string
crash_get_details
(
const
boost
::
unordered_map
<
string
,
string
>&
rSettings
)
{
string
aRet
;
write_description
(
rSettings
);
write_report
(
rSettings
);
aRet
.
append
(
rSettings
.
find
(
"TITLE"
)
->
second
.
c_str
()
);
aRet
.
append
(
"
\n\n
"
);
append_file
(
g_szDescriptionFile
,
aRet
);
aRet
.
append
(
"
\n\n
-------
\n\n
"
);
append_file
(
g_szReportFile
,
aRet
);
aRet
.
append
(
"
\n\n
-------
\n\n
"
);
append_file
(
g_szStackFile
,
aRet
);
unlink
(
g_szDescriptionFile
);
unlink
(
g_szReportFile
);
return
aRet
;
}
// ensure validity of program relative paths
static
void
setup_program_dir
(
const
char
*
progname
)
{
...
...
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