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
6ce628da
Kaydet (Commit)
6ce628da
authored
Eki 09, 2016
tarafından
Jiří Techet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
entry: Some more or less formal changes
üst
3f52bfb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
entry.c
ctags/main/entry.c
+16
-15
entry.h
ctags/main/entry.h
+0
-2
No files found.
ctags/main/entry.c
Dosyayı görüntüle @
6ce628da
...
...
@@ -239,7 +239,8 @@ static void updateSortedFlag (
d
!=
(
int
)
Option
.
sorted
)
{
mio_setpos
(
mio
,
&
flagLocation
);
mio_putc
(
mio
,
Option
.
sorted
?
'1'
:
'0'
);
mio_putc
(
mio
,
Option
.
sorted
==
SO_FOLDSORTED
?
'2'
:
(
Option
.
sorted
==
SO_SORTED
?
'1'
:
'0'
));
}
mio_setpos
(
mio
,
&
nextLine
);
}
...
...
@@ -252,27 +253,27 @@ static void updateSortedFlag (
*/
static
long
unsigned
int
updatePseudoTags
(
MIO
*
const
mio
)
{
enum
{
max
Class
Length
=
20
};
char
class
[
maxClass
Length
+
1
];
enum
{
max
Entry
Length
=
20
};
char
entry
[
maxEntry
Length
+
1
];
unsigned
long
linesRead
=
0
;
MIOPos
startOfLine
;
size_t
class
Length
;
size_t
entry
Length
;
const
char
*
line
;
sprintf
(
class
,
"%sTAG_FILE"
,
PSEUDO_TAG_PREFIX
);
classLength
=
strlen
(
class
);
Assert
(
classLength
<
maxClass
Length
);
sprintf
(
entry
,
"%sTAG_FILE"
,
PSEUDO_TAG_PREFIX
);
entryLength
=
strlen
(
entry
);
Assert
(
entryLength
<
maxEntry
Length
);
mio_getpos
(
mio
,
&
startOfLine
);
line
=
readLineRaw
(
TagFile
.
vLine
,
mio
);
while
(
line
!=
NULL
&&
line
[
0
]
==
class
[
0
])
while
(
line
!=
NULL
&&
line
[
0
]
==
entry
[
0
])
{
++
linesRead
;
if
(
strncmp
(
line
,
class
,
class
Length
)
==
0
)
if
(
strncmp
(
line
,
entry
,
entry
Length
)
==
0
)
{
char
tab
,
classType
[
16
];
if
(
sscanf
(
line
+
class
Length
,
"%15s%c"
,
classType
,
&
tab
)
==
2
&&
if
(
sscanf
(
line
+
entry
Length
,
"%15s%c"
,
classType
,
&
tab
)
==
2
&&
tab
==
'\t'
)
{
if
(
strcmp
(
classType
,
"_SORTED"
)
==
0
)
...
...
@@ -298,7 +299,7 @@ static long unsigned int updatePseudoTags (MIO *const mio)
static
bool
isTagFile
(
const
char
*
const
filename
)
{
bool
ok
=
false
;
/* we assume not unless confirmed */
bool
ok
=
false
;
/* we assume not unless confirmed */
MIO
*
const
mio
=
mio_new_file
(
filename
,
"rb"
);
if
(
mio
==
NULL
&&
errno
==
ENOENT
)
...
...
@@ -380,7 +381,7 @@ extern void openTagFile (void)
#ifdef USE_REPLACEMENT_TRUNCATE
extern
void
copyBytes
(
MIO
*
const
fromMio
,
MIO
*
const
toMio
,
const
long
size
)
static
void
copyBytes
(
MIO
*
const
fromMio
,
MIO
*
const
toMio
,
const
long
size
)
{
enum
{
BufferSize
=
1000
};
long
toRead
,
numRead
;
...
...
@@ -389,7 +390,7 @@ extern void copyBytes (MIO* const fromMio, MIO* const toMio, const long size)
do
{
toRead
=
(
0
<
remaining
&&
remaining
<
BufferSize
)
?
remaining
:
BufferSize
;
remaining
:
(
long
)
BufferSize
;
numRead
=
mio_read
(
fromMio
,
buffer
,
(
size_t
)
1
,
(
size_t
)
toRead
);
if
(
mio_write
(
toMio
,
buffer
,
(
size_t
)
1
,
(
size_t
)
numRead
)
<
(
size_t
)
numRead
)
error
(
FATAL
|
PERROR
,
"cannot complete write"
);
...
...
@@ -399,7 +400,7 @@ extern void copyBytes (MIO* const fromMio, MIO* const toMio, const long size)
eFree
(
buffer
);
}
extern
void
copyFile
(
const
char
*
const
from
,
const
char
*
const
to
,
const
long
size
)
static
void
copyFile
(
const
char
*
const
from
,
const
char
*
const
to
,
const
long
size
)
{
MIO
*
const
fromMio
=
mio_new_file
(
from
,
"rb"
);
if
(
fromMio
==
NULL
)
...
...
@@ -516,7 +517,7 @@ extern void setMaxTagsLine (unsigned long max)
extern
void
invalidatePatternCache
(
void
)
{
/* TagFile.patternCacheValid = false; */
TagFile
.
patternCacheValid
=
false
;
}
extern
void
tagFilePosition
(
MIOPos
*
p
)
...
...
ctags/main/entry.h
Dosyayı görüntüle @
6ce628da
...
...
@@ -111,8 +111,6 @@ struct sTagEntryInfo {
*/
extern
void
freeTagFileResources
(
void
);
extern
const
char
*
tagFileName
(
void
);
extern
void
copyBytes
(
MIO
*
const
fromMio
,
MIO
*
const
toMio
,
const
long
size
);
extern
void
copyFile
(
const
char
*
const
from
,
const
char
*
const
to
,
const
long
size
);
extern
void
openTagFile
(
void
);
extern
void
closeTagFile
(
const
bool
resize
);
extern
void
makeTagEntry
(
const
tagEntryInfo
*
const
tag
);
...
...
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