Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
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ç
Batuhan Osman TASKAYA
geany
Commits
5bed3b58
Kaydet (Commit)
5bed3b58
authored
Nis 02, 2015
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make: Support for variable expansions in target names
üst
0d603594
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
29 deletions
+14
-29
make.c
tagmanager/ctags/make.c
+8
-29
Makefile.am
tests/ctags/Makefile.am
+1
-0
make-target-with-parentheses.mak
tests/ctags/make-target-with-parentheses.mak
+1
-0
make-target-with-parentheses.mak.tags
tests/ctags/make-target-with-parentheses.mak.tags
+3
-0
simple.mak.tags
tests/ctags/simple.mak.tags
+1
-0
No files found.
tagmanager/ctags/make.c
Dosyayı görüntüle @
5bed3b58
...
...
@@ -70,7 +70,7 @@ static int skipToNonWhite (void)
static
boolean
isIdentifier
(
int
c
)
{
return
(
boolean
)(
c
!=
'\0'
&&
(
isalnum
(
c
)
||
strchr
(
".-_/"
,
c
)
!=
NULL
));
return
(
boolean
)(
c
!=
'\0'
&&
(
isalnum
(
c
)
||
strchr
(
".-_/
$(){}
"
,
c
)
!=
NULL
));
}
static
boolean
isSpecialTarget
(
vString
*
const
name
)
...
...
@@ -118,14 +118,19 @@ static void newMacroFromDefine (vString *const name)
static
void
readIdentifier
(
const
int
first
,
vString
*
const
id
)
{
int
depth
=
0
;
int
c
=
first
;
int
c_prev
=
first
;
int
c_next
=
first
;
vStringClear
(
id
);
while
(
isIdentifier
(
c
)
||
c
==
' '
)
while
(
isIdentifier
(
c
)
||
c
==
' '
||
(
depth
>
0
&&
c
!=
EOF
&&
c
!=
'\n'
)
)
{
c_next
=
nextChar
();
if
(
c
==
' '
)
{
if
(
c
==
'('
||
c
==
'}'
)
depth
++
;
else
if
(
depth
>
0
&&
(
c
==
')'
||
c
==
'}'
))
depth
--
;
if
(
depth
<
1
&&
c
==
' '
)
{
/* add the space character only if the previous and
* next character are valid identifiers */
if
(
isIdentifier
(
c_prev
)
&&
isIdentifier
(
c_next
))
...
...
@@ -141,28 +146,6 @@ static void readIdentifier (const int first, vString *const id)
vStringTerminate
(
id
);
}
static
void
skipToMatch
(
const
char
*
const
pair
)
{
const
int
begin
=
pair
[
0
],
end
=
pair
[
1
];
const
unsigned
long
inputLineNumber
=
getInputLineNumber
();
int
matchLevel
=
1
;
int
c
=
'\0'
;
while
(
matchLevel
>
0
)
{
c
=
nextChar
();
if
(
c
==
begin
)
++
matchLevel
;
else
if
(
c
==
end
)
--
matchLevel
;
else
if
(
c
==
'\n'
||
c
==
EOF
)
break
;
}
if
(
c
==
EOF
)
verbose
(
"%s: failed to find match for '%c' at line %lu
\n
"
,
getInputFileName
(),
begin
,
inputLineNumber
);
}
static
void
findMakeTags
(
void
)
{
vString
*
name
=
vStringNew
();
...
...
@@ -195,10 +178,6 @@ static void findMakeTags (void)
continue
;
else
if
(
c
==
'#'
)
skipLine
();
else
if
(
c
==
'('
)
skipToMatch
(
"()"
);
else
if
(
c
==
'{'
)
skipToMatch
(
"{}"
);
else
if
(
c
==
':'
)
{
variable_possible
=
TRUE
;
...
...
tests/ctags/Makefile.am
Dosyayı görüntüle @
5bed3b58
...
...
@@ -200,6 +200,7 @@ test_sources = \
line_directives.c
\
local.c
\
macros.c
\
make-target-with-parentheses.mak
\
make-variable-on-cmdline.mak
\
masm.asm
\
matlab_backtracking.m
\
...
...
tests/ctags/make-target-with-parentheses.mak
0 → 100644
Dosyayı görüntüle @
5bed3b58
$(obj)/raid6int1.c: F := 6
tests/ctags/make-target-with-parentheses.mak.tags
0 → 100644
Dosyayı görüntüle @
5bed3b58
# format=tagmanager
$(obj)/raid6int1.cÌ16Ö0
FÌ65536Ö0
tests/ctags/simple.mak.tags
Dosyayı görüntüle @
5bed3b58
# format=tagmanager
$(obj)/raid6int1.c160
A655360
B655360
C655360
...
...
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