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
d7eb0ef5
Kaydet (Commit)
d7eb0ef5
authored
Mar 21, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: ignoring return value of 'fwrite'
üst
eedbe716
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pr.c
soltools/mkdepend/pr.c
+6
-4
No files found.
soltools/mkdepend/pr.c
Dosyayı görüntüle @
d7eb0ef5
...
...
@@ -29,7 +29,7 @@ in this Software without prior written authorization from the X Consortium.
#include "def.h"
#include <string.h>
void
pr
(
struct
inclist
*
ip
,
char
*
file
,
char
*
base
);
size_t
pr
(
struct
inclist
*
ip
,
char
*
file
,
char
*
base
);
extern
struct
inclist
inclist
[
MAXFILES
],
*
inclistp
;
...
...
@@ -94,10 +94,11 @@ void recursive_pr_include(head, file, base)
recursive_pr_include
(
head
->
i_list
[
i
],
file
,
base
);
}
void
pr
(
ip
,
file
,
base
)
size_t
pr
(
ip
,
file
,
base
)
register
struct
inclist
*
ip
;
char
*
file
,
*
base
;
{
size_t
ret
;
static
char
*
lastfile
;
static
int
current_len
;
register
int
len
,
i
;
...
...
@@ -116,18 +117,19 @@ void pr(ip, file, base)
strcpy
(
buf
+
1
,
ip
->
i_file
);
current_len
+=
len
;
}
fwrite
(
buf
,
len
,
1
,
stdout
);
ret
=
fwrite
(
buf
,
len
,
1
,
stdout
);
/*
* If verbose is set, then print out what this file includes.
*/
if
(
!
verbose
||
ip
->
i_list
==
NULL
||
ip
->
i_notified
)
return
;
return
ret
;
ip
->
i_notified
=
TRUE
;
lastfile
=
NULL
;
printf
(
"
\n
# %s includes:"
,
ip
->
i_file
);
for
(
i
=
0
;
i
<
ip
->
i_listlen
;
i
++
)
printf
(
"
\n
#
\t
%s"
,
ip
->
i_list
[
i
]
->
i_incstring
);
return
ret
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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