geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

read.h
Go to the documentation of this file.
1/*
2* Copyright (c) 1998-2002, Darren Hiebert
3*
4* This source code is released for free distribution under the terms of the
5* GNU General Public License version 2 or (at your option) any later version.
6*
7* External interface to read.c
8*/
9#ifndef CTAGS_MAIN_READ_H
10#define CTAGS_MAIN_READ_H
11
12/*
13* INCLUDE FILES
14*/
15#include "general.h" /* must always come first */
16
17#include <stdio.h>
18#include <ctype.h>
19
20#include "types.h"
21#include "vstring.h"
22#include "mio.h"
23
24/*
25* MACROS
26*/
27
28/*
29* DATA DECLARATIONS
30*/
31
33 /* white space characters */
34 SPACE = ' ',
35 NEWLINE = '\n',
36 CRETURN = '\r',
37 FORMFEED = '\f',
38 TAB = '\t',
39 VTAB = '\v',
40
41 /* some hard to read characters */
44 BACKSLASH = '\\',
45
46 /* symbolic representations, above 0xFF not to conflict with any byte */
47 STRING_SYMBOL = ('S' + 0xff),
48 CHAR_SYMBOL = ('C' + 0xff)
49};
50
51
52/*
53* FUNCTION PROTOTYPES
54*/
55
56/* InputFile: reading from fp in inputFile with updating fields in input fields */
57extern unsigned long getInputLineNumber (void);
58extern unsigned long getInputLineNumberForFileOffset(long offset);
59extern int getInputLineOffset (void);
60extern const char *getInputFileName (void);
61extern MIOPos getInputFilePosition (void);
62extern MIOPos getInputFilePositionForLine (unsigned int line);
63extern langType getInputLanguage (void);
64extern bool isInputLanguage (langType lang);
65extern bool isInputHeaderFile (void);
66extern bool isInputLanguageKindEnabled (int kindIndex);
67extern bool isInputLanguageRoleEnabled (int kindIndex, int roleIndex);
68
69extern const unsigned char *getInputFileData (size_t *size);
70
71extern int getcFromInputFile (void);
72extern int getNthPrevCFromInputFile (unsigned int nth, int def);
73extern int skipToCharacterInInputFile (int c);
74extern int skipToCharacterInInputFile2 (int c0, int c1);
75extern void ungetcToInputFile (int c);
76extern const unsigned char *readLineFromInputFile (void);
77
78extern unsigned long getSourceLineNumber (void);
79
80/* Raw: reading from given a parameter, mio */
81extern char *readLineRaw (vString *const vLine, MIO *const mio);
82
83extern void pushLanguage(const langType language);
84extern langType popLanguage (void);
85
86#endif /* CTAGS_MAIN_READ_H */
vString * line
Definition: geany_cobol.c:133
bool isInputLanguageRoleEnabled(int kindIndex, int roleIndex)
Definition: read.c:226
MIOPos getInputFilePositionForLine(unsigned int line)
Definition: read.c:184
char * readLineRaw(vString *const vLine, MIO *const mio)
Definition: read.c:1016
unsigned long getSourceLineNumber(void)
Definition: read.c:262
bool isInputHeaderFile(void)
Definition: read.c:216
const unsigned char * readLineFromInputFile(void)
Definition: read.c:1000
int getInputLineOffset(void)
Definition: read.c:147
int getNthPrevCFromInputFile(unsigned int nth, int def)
Definition: read.c:961
int skipToCharacterInInputFile2(int c0, int c1)
Definition: read.c:982
unsigned long getInputLineNumber(void)
Definition: read.c:142
int getcFromInputFile(void)
Definition: read.c:923
bool isInputLanguage(langType lang)
Definition: read.c:211
langType getInputLanguage(void)
Definition: read.c:196
MIOPos getInputFilePosition(void)
Definition: read.c:161
langType popLanguage(void)
Definition: read.c:1159
const unsigned char * getInputFileData(size_t *size)
Definition: read.c:291
eCharacters
Definition: read.h:32
@ BACKSLASH
Definition: read.h:44
@ STRING_SYMBOL
Definition: read.h:47
@ NEWLINE
Definition: read.h:35
@ CHAR_SYMBOL
Definition: read.h:48
@ CRETURN
Definition: read.h:36
@ TAB
Definition: read.h:38
@ DOUBLE_QUOTE
Definition: read.h:42
@ SPACE
Definition: read.h:34
@ FORMFEED
Definition: read.h:37
@ VTAB
Definition: read.h:39
@ SINGLE_QUOTE
Definition: read.h:43
const char * getInputFileName(void)
Definition: read.c:154
unsigned long getInputLineNumberForFileOffset(long offset)
Definition: read.c:360
bool isInputLanguageKindEnabled(int kindIndex)
Definition: read.c:221
void pushLanguage(const langType language)
Definition: read.c:1154
void ungetcToInputFile(int c)
Definition: read.c:813
int skipToCharacterInInputFile(int c)
Definition: read.c:972
MIOPos:
Definition: mio.h:101
MIO:
Definition: mio.c:136
int langType
Definition: types.h:13