Leptonica  1.54
Файл 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
 

Функции

◆ captureProtoSignature()

static char * captureProtoSignature ( SARRAY sa,
l_int32  start,
l_int32  stop,
l_int32  charindex 
)
static

◆ cleanProtoSignature()

static char * cleanProtoSignature ( char *  str)
static

◆ getNextNonBlankLine()

static l_int32 getNextNonBlankLine ( SARRAY sa,
l_int32  start,
l_int32 pnext 
)
static

◆ getNextNonCommentLine()

static l_int32 getNextNonCommentLine ( SARRAY sa,
l_int32  start,
l_int32 pnext 
)
static

◆ getNextNonDoubleSlashLine()

static l_int32 getNextNonDoubleSlashLine ( SARRAY sa,
l_int32  start,
l_int32 pnext 
)
static

◆ getOffsetForCharacter()

static l_int32 getOffsetForCharacter ( SARRAY sa,
l_int32  start,
char  tchar,
l_int32 psoffset,
l_int32 pboffset,
l_int32 ptoffset 
)
static

◆ getOffsetForMatchingRP()

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

◆ parseForProtos()

char* parseForProtos ( const char *  filein,
const char *  prestring 
)

◆ searchForProtoSignature()

static l_int32 searchForProtoSignature ( SARRAY sa,
l_int32  begin,
l_int32 pstart,
l_int32 pstop,
l_int32 pcharindex,
l_int32 pfound 
)
static

◆ skipToEndOfFunction()

static l_int32 skipToEndOfFunction ( SARRAY sa,
l_int32  start,
l_int32  charindex,
l_int32 pnext 
)
static

◆ skipToMatchingBrace()

static l_int32 skipToMatchingBrace ( SARRAY sa,
l_int32  start,
l_int32  lbindex,
l_int32 prbline,
l_int32 prbindex 
)
static

◆ skipToSemicolon()

static l_int32 skipToSemicolon ( SARRAY sa,
l_int32  start,
l_int32  charindex,
l_int32 pnext 
)
static

Переменные

◆ L_BUF_SIZE

const l_int32 L_BUF_SIZE = 512
static