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
c1acde7e
Kaydet (Commit)
c1acde7e
authored
Eki 10, 2016
tarafından
Jiří Techet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
read: move sInputFileInfo, sInputFile and File to read.c
üst
63fbe2f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
39 deletions
+38
-39
read.c
ctags/main/read.c
+38
-3
read.h
ctags/main/read.h
+0
-36
No files found.
ctags/main/read.c
Dosyayı görüntüle @
c1acde7e
...
...
@@ -35,12 +35,47 @@
#include <regex.h>
/*
* DATA DE
FINI
TIONS
* DATA DE
CLARA
TIONS
*/
inputFile
File
;
/* globally read through macros */
static
MIOPos
StartOfLine
;
/* holds deferred position of start of line */
/* Maintains the state of the current input file.
*/
typedef
struct
sInputFileInfo
{
vString
*
name
;
/* name to report for input file */
vString
*
tagPath
;
/* path of input file relative to tag file */
unsigned
long
lineNumber
;
/* line number in the input file */
unsigned
long
lineNumberOrigin
;
/* The value set to `lineNumber'
when `resetInputFile' is called
on the input stream.
This is needed for nested stream. */
bool
isHeader
;
/* is input file a header file? */
langType
language
;
/* language of input file */
}
inputFileInfo
;
typedef
struct
sInputFile
{
vString
*
path
;
/* path of input file (if any) */
vString
*
line
;
/* last line read from file */
const
unsigned
char
*
currentLine
;
/* current line being worked on */
MIO
*
mio
;
/* MIO stream used for reading the file */
MIOPos
filePosition
;
/* file position of current line */
unsigned
int
ungetchIdx
;
int
ungetchBuf
[
3
];
/* characters that were ungotten */
/* Contains data pertaining to the original `source' file in which the tag
* was defined. This may be different from the `input' file when #line
* directives are processed (i.e. the input file is preprocessor output).
*/
inputFileInfo
input
;
/* name, lineNumber */
inputFileInfo
source
;
}
inputFile
;
/*
* DATA DEFINITIONS
*/
static
inputFile
File
;
/* static read through functions */
static
MIOPos
StartOfLine
;
/* holds deferred position of start of line */
/*
* FUNCTION DEFINITIONS
*/
...
...
ctags/main/read.h
Dosyayı görüntüle @
c1acde7e
...
...
@@ -48,42 +48,6 @@ enum eCharacters {
CHAR_SYMBOL
=
(
'C'
+
0xff
)
};
/* Maintains the state of the current input file.
*/
typedef
struct
sInputFileInfo
{
vString
*
name
;
/* name to report for input file */
vString
*
tagPath
;
/* path of input file relative to tag file */
unsigned
long
lineNumber
;
/* line number in the input file */
unsigned
long
lineNumberOrigin
;
/* The value set to `lineNumber'
when `resetInputFile' is called
on the input stream.
This is needed for nested stream. */
bool
isHeader
;
/* is input file a header file? */
langType
language
;
/* language of input file */
}
inputFileInfo
;
typedef
struct
sInputFile
{
vString
*
path
;
/* path of input file (if any) */
vString
*
line
;
/* last line read from file */
const
unsigned
char
*
currentLine
;
/* current line being worked on */
MIO
*
mio
;
/* MIO stream used for reading the file */
MIOPos
filePosition
;
/* file position of current line */
unsigned
int
ungetchIdx
;
int
ungetchBuf
[
3
];
/* characters that were ungotten */
/* Contains data pertaining to the original source file in which the tag
* was defined. This may be different from the input file when #line
* directives are processed (i.e. the input file is preprocessor output).
*/
inputFileInfo
input
;
/* name, lineNumber */
inputFileInfo
source
;
}
inputFile
;
/*
* GLOBAL VARIABLES
*/
/* should not be modified externally */
extern
inputFile
File
;
/*
* FUNCTION PROTOTYPES
...
...
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