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
384d9e41
Kaydet (Commit)
384d9e41
authored
Eki 28, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
preserve and renumber duplicate values
Change-Id: I5c805fb7d60d8bae7109e3910f7bb0b5dd142909
üst
882a0ad9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
number-defines-consecutively.awk
sc/util/number-defines-consecutively.awk
+8
-1
No files found.
sc/util/number-defines-consecutively.awk
Dosyayı görüntüle @
384d9e41
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
#
#
# Consecutively number a series of defines, for example sc/inc/globstr.hrc
# Consecutively number a series of defines, for example sc/inc/globstr.hrc
# Duplicated values are renumbered but preserved, i.e. for ...START and ...END
# definitions, and commented with "XXX was duplicate".
# To insert and renumber use a higher value for the inserted definition than
# any other used, for example 9999.
# WARNING: this does not expect other defines in between and would mess around
# WARNING: this does not expect other defines in between and would mess around
# with them.
# with them.
...
@@ -25,13 +29,16 @@ BEGIN {
...
@@ -25,13 +29,16 @@ BEGIN {
if
(
dup
[
a
[
3
]])
if
(
dup
[
a
[
3
]])
{
{
dupmsg
=
" // XXX was duplicate "
a
[
3
]
" of "
dup
[
a
[
3
]];
dupmsg
=
" // XXX was duplicate "
a
[
3
]
" of "
dup
[
a
[
3
]];
a
[
3
]
=
map
[
a
[
3
]];
}
}
else
else
{
{
dup
[
a
[
3
]]
=
a
[
2
];
dup
[
a
[
3
]]
=
a
[
2
];
dupmsg
=
""
;
dupmsg
=
""
;
++
id
;
map
[
a
[
3
]]
=
id
;
a
[
3
]
=
id
;
}
}
a
[
3
]
=
++
id
;
lastline
=
s
[
0
];
lastline
=
s
[
0
];
for
(
i
=
1
;
i
<=
n
;
++
i
)
for
(
i
=
1
;
i
<=
n
;
++
i
)
{
{
...
...
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