Back to index

glibc  2.9
Defines | Functions | Variables
regexp.c File Reference
#include <regexp.h>

Go to the source code of this file.

Defines

#define __DO_NOT_DEFINE_COMPILE

Functions

int __step (const char *string, const char *expbuf)
 weak_alias (__step, step)

Variables

char * loc1
char * loc2
char * locs

Define Documentation

Definition at line 21 of file regexp.c.


Function Documentation

int __step ( const char *  string,
const char *  expbuf 
)

Definition at line 38 of file regexp.c.

{
  regmatch_t match;  /* We only need info about the full match.  */

  expbuf += __alignof (regex_t *);
  expbuf -= (expbuf - ((const char *) 0)) % __alignof__ (regex_t *);

  if (__regexec ((const regex_t *) expbuf, string, 1, &match, REG_NOTEOL)
      == REG_NOMATCH)
    return 0;

  loc1 = (char *) string + match.rm_so;
  loc2 = (char *) string + match.rm_eo;
  return 1;
}

Here is the call graph for this function:

weak_alias ( __step  ,
step   
)

Definition at line 53 of file regexp.c.

{
  regmatch_t match;  /* We only need info about the full match.  */

  expbuf += __alignof__ (regex_t *);
  expbuf -= (expbuf - ((const char *) 0)) % __alignof__ (regex_t *);

  if (__regexec ((const regex_t *) expbuf, string, 1, &match, REG_NOTEOL)
      == REG_NOMATCH
      /* We have to check whether the check is at the beginning of the
        buffer.  */
      || match.rm_so != 0)
    return 0;

  loc2 = (char *) string + match.rm_eo;
  return 1;
}

Here is the call graph for this function:


Variable Documentation

char* loc1

Definition at line 25 of file regexp.c.

char* loc2

Definition at line 26 of file regexp.c.

char* locs

Definition at line 29 of file regexp.c.