Leptonica  1.54
Файл src/parseprotos.c
#include <string.h>
#include "allheaders.h"

Функции

static l_int32 getNextNonCommentLine (SARRAY *sa, l_int32 start, l_int32 *pnext)
static l_int32 getNextNonBlankLine (SARRAY *sa, l_int32 start, l_int32 *pnext)
static l_int32 getNextNonDoubleSlashLine (SARRAY *sa, l_int32 start, l_int32 *pnext)
static l_int32 searchForProtoSignature (SARRAY *sa, l_int32 begin, l_int32 *pstart, l_int32 *pstop, l_int32 *pcharindex, l_int32 *pfound)
static char * captureProtoSignature (SARRAY *sa, l_int32 start, l_int32 stop, l_int32 charindex)
static char * cleanProtoSignature (char *str)
static l_int32 skipToEndOfFunction (SARRAY *sa, l_int32 start, l_int32 charindex, l_int32 *pnext)
static l_int32 skipToMatchingBrace (SARRAY *sa, l_int32 start, l_int32 lbindex, l_int32 *prbline, l_int32 *prbindex)
static l_int32 skipToSemicolon (SARRAY *sa, l_int32 start, l_int32 charindex, l_int32 *pnext)
static l_int32 getOffsetForCharacter (SARRAY *sa, l_int32 start, char tchar, l_int32 *psoffset, l_int32 *pboffset, l_int32 *ptoffset)
static l_int32 getOffsetForMatchingRP (SARRAY *sa, l_int32 start, l_int32 soffsetlp, l_int32 boffsetlp, l_int32 toffsetlp, l_int32 *psoffset, l_int32 *pboffset, l_int32 *ptoffset)
char * parseForProtos (const char *filein, const char *prestring)

Переменные

static const l_int32 L_BUF_SIZE = 512

Функции

static char * captureProtoSignature ( SARRAY sa,
l_int32  start,
l_int32  stop,
l_int32  charindex 
) [static]
static char * cleanProtoSignature ( char *  str) [static]
static l_int32 getNextNonBlankLine ( SARRAY sa,
l_int32  start,
l_int32 pnext 
) [static]
static l_int32 getNextNonCommentLine ( SARRAY sa,
l_int32  start,
l_int32 pnext 
) [static]
static l_int32 getNextNonDoubleSlashLine ( SARRAY sa,
l_int32  start,
l_int32 pnext 
) [static]
static l_int32 getOffsetForCharacter ( SARRAY sa,
l_int32  start,
char  tchar,
l_int32 psoffset,
l_int32 pboffset,
l_int32 ptoffset 
) [static]
static l_int32 getOffsetForMatchingRP ( SARRAY sa,
l_int32  start,
l_int32  soffsetlp,
l_int32  boffsetlp,
l_int32  toffsetlp,
l_int32 psoffset,
l_int32 pboffset,
l_int32 ptoffset 
) [static]
char* parseForProtos ( const char *  filein,
const char *  prestring 
)
static l_int32 searchForProtoSignature ( SARRAY sa,
l_int32  begin,
l_int32 pstart,
l_int32 pstop,
l_int32 pcharindex,
l_int32 pfound 
) [static]
static l_int32 skipToEndOfFunction ( SARRAY sa,
l_int32  start,
l_int32  charindex,
l_int32 pnext 
) [static]
static l_int32 skipToMatchingBrace ( SARRAY sa,
l_int32  start,
l_int32  lbindex,
l_int32 prbline,
l_int32 prbindex 
) [static]
static l_int32 skipToSemicolon ( SARRAY sa,
l_int32  start,
l_int32  charindex,
l_int32 pnext 
) [static]

Переменные

const l_int32 L_BUF_SIZE = 512 [static]