Home
last modified time | relevance | path

Searched refs:preg (Results 1 – 25 of 42) sorted by relevance

12

/openbsd/gnu/llvm/llvm/lib/Support/
H A DRegex.cpp31 preg = new llvm_regex(); in Regex()
32 preg->re_endp = regex.end(); in Regex()
46 preg = regex.preg; in Regex()
48 regex.preg = nullptr; in Regex()
53 if (preg) { in ~Regex()
54 llvm_regfree(preg); in ~Regex()
55 delete preg; in ~Regex()
67 llvm_regerror(error, preg, &Error[0], len); in RegexErrorToString()
76 RegexErrorToString(error, preg, Error); in isValid()
83 return preg->re_nsub; in getNumMatches()
[all …]
H A Dregfree.c50 llvm_regfree(llvm_regex_t *preg) in llvm_regfree() argument
54 if (preg->re_magic != MAGIC1) /* oops */ in llvm_regfree()
57 g = preg->re_g; in llvm_regfree()
60 preg->re_magic = 0; /* mark it invalid */ in llvm_regfree()
H A Dregerror.c84 llvm_regerror(int errcode, const llvm_regex_t *preg, char *errbuf, size_t errbuf_size) in llvm_regerror() argument
93 s = regatoi(preg, convbuf, sizeof convbuf); in llvm_regerror()
123 regatoi(const llvm_regex_t *preg, char *localbuf, int localbufsize) in regatoi() argument
128 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
H A Dregexec.c141 llvm_regexec(const llvm_regex_t *preg, const char *string, size_t nmatch, in llvm_regexec() argument
144 struct re_guts *g = preg->re_g; in llvm_regexec()
151 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) in llvm_regexec()
/openbsd/lib/libform/
H A Dfty_regex.c152 RegExp_Arg *preg = (RegExp_Arg *)0; in Generic_RegularExpression_Type() local
156 preg = typeCalloc(RegExp_Arg, 1); in Generic_RegularExpression_Type()
158 if (preg) in Generic_RegularExpression_Type()
160 T((T_CREATE("RegExp_Arg %p"), (void *)preg)); in Generic_RegularExpression_Type()
162 && !regcomp(preg->pRegExp, rx, in Generic_RegularExpression_Type()
167 *(preg->refCount) = 1; in Generic_RegularExpression_Type()
171 if (preg->pRegExp) in Generic_RegularExpression_Type()
172 free(preg->pRegExp); in Generic_RegularExpression_Type()
173 free(preg); in Generic_RegularExpression_Type()
174 preg = (RegExp_Arg *)0; in Generic_RegularExpression_Type()
[all …]
/openbsd/sys/arch/armv7/omap/
H A Damdisplay.c127 preg(uint32_t reg, char *rn, struct amdisplay_softc *sc) in preg() function
138 preg(LCD_PID, str(AMDISPLAY_PID), sc); in dumpregs()
139 preg(LCD_CTRL, str(AMDISPLAY_CTRL), sc); in dumpregs()
140 preg(LCD_RASTER_CTRL, str(AMDISPLAY_RASTER_CTRL), sc); in dumpregs()
146 preg(LCD_LCDDMA_CTRL, str(AMDISPLAY_LCDDMA_CTRL), sc); in dumpregs()
156 preg(LCD_SYSCONFIG, str(AMDISPLAY_SYSCONFIG), sc); in dumpregs()
157 preg(LCD_IRQSTATUS_RAW, str(AMDISPLAY_IRQSTATUS_RAW), sc); in dumpregs()
158 preg(LCD_IRQSTATUS, str(AMDISPLAY_IRQSTATUS), sc); in dumpregs()
159 preg(LCD_IRQENABLE_SET, str(AMDISPLAY_IRQENABLE_SET), sc); in dumpregs()
161 preg(LCD_CLKC_ENABLE, str(AMDISPLAY_CLKC_ENABLE), sc); in dumpregs()
[all …]
/openbsd/lib/libc/regex/
H A Dregfree.c50 regfree(regex_t *preg) in regfree() argument
54 if (preg->re_magic != MAGIC1) /* oops */ in regfree()
57 g = preg->re_g; in regfree()
60 preg->re_magic = 0; /* mark it invalid */ in regfree()
H A Dregerror.c78 regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) in regerror() argument
87 s = regatoi(preg, convbuf, sizeof convbuf); in regerror()
117 regatoi(const regex_t *preg, char *localbuf, int localbufsize) in regatoi() argument
122 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
H A Dregexec.c140 regexec(const regex_t *preg, const char *string, size_t nmatch, in regexec() argument
143 struct re_guts *g = preg->re_g; in regexec()
151 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) in regexec()
H A Dregcomp.c141 regcomp(regex_t *preg, const char *pattern, int cflags) in regcomp() argument
159 if (preg->re_endp < pattern) in regcomp()
161 len = preg->re_endp - pattern; in regcomp()
217 preg->re_nsub = g->nsub; in regcomp()
218 preg->re_g = g; in regcomp()
219 preg->re_magic = MAGIC1; in regcomp()
228 regfree(preg); in regcomp()
/openbsd/sys/dev/pci/drm/i915/gvt/
H A Ddebugfs.c38 u32 preg; member
63 u32 preg, vreg; in mmio_diff_handler() local
65 preg = intel_uncore_read_notrace(gvt->gt->uncore, _MMIO(offset)); in mmio_diff_handler()
68 if (preg != vreg) { in mmio_diff_handler()
74 node->preg = preg; in mmio_diff_handler()
113 u32 diff = node->preg ^ node->vreg; in vgpu_mmio_diff_show()
116 node->offset, node->preg, node->vreg, in vgpu_mmio_diff_show()
/openbsd/usr.bin/lex/
H A Dregex.c52 void flex_regcomp(regex_t *preg, const char *regex, int cflags) in flex_regcomp() argument
56 memset (preg, 0, sizeof (regex_t)); in flex_regcomp()
58 if ((err = regcomp (preg, regex, cflags)) != 0) { in flex_regcomp()
68 regerror (err, preg, rxerr, errbuf_sz); in flex_regcomp()
/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A DRegex.h57 std::swap(preg, regex.preg);
108 struct llvm_regex *preg; variable
/openbsd/usr.bin/sed/
H A Dmisc.c89 strregerror(int errcode, regex_t *preg) in strregerror() argument
95 s = regerror(errcode, preg, "", 0); in strregerror()
97 (void)regerror(errcode, preg, oe, s); in strregerror()
/openbsd/lib/libkeynote/
H A Dkeynote.y493 regex_t preg; variable
506 if (regcomp(&preg, $3, REG_EXTENDED))
518 i = regexec(&preg, $1, 32, pmatch, 0);
523 (unsigned long)preg.re_nsub);
528 regfree(&preg);
539 regfree(&preg);
552 regfree(&preg);
561 regfree(&preg);
/openbsd/gnu/usr.bin/cvs/lib/
H A Dregex.h493 extern int regcomp _RE_ARGS ((regex_t *preg, const char *pattern, int cflags));
495 _RE_ARGS ((const regex_t *preg, const char *string, size_t nmatch,
498 _RE_ARGS ((int errcode, const regex_t *preg, char *errbuf,
500 extern void regfree _RE_ARGS ((regex_t *preg));
H A Dregex.c6177 regex_t *preg; in regcomp()
6187 preg->buffer = 0;
6188 preg->allocated = 0;
6189 preg->used = 0;
6195 preg->fastmap = 0;
6201 preg->translate
6358 regfree (preg) in regfree() argument
6359 regex_t *preg; in regfree()
6363 preg->buffer = NULL;
6365 preg->allocated = 0;
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/noncompile/
H A D990416-1.c7 …word_type *preg = get_reg_addr (reg, udata, 0); /* { dg-error "undeclared|function|without a cast"… in copy_reg() local
10 memcpy (ptreg, preg, __builtin_dwarf_reg_size (reg)); in copy_reg()
/openbsd/gnu/usr.bin/gcc/gcc/fixinc/
H A Dgnu-regex.c5537 regex_t *preg; in regcomp()
5547 preg->buffer = 0;
5548 preg->allocated = 0;
5549 preg->used = 0;
5558 preg->translate
5703 (void)preg;
5743 regfree (preg)
5744 regex_t *preg;
5748 preg->buffer = NULL;
5750 preg->allocated = 0;
[all …]
/openbsd/sys/arch/octeon/dev/
H A Doctuctl.c204 uint64_t preg; in octuctl_attach() local
243 preg = UCTL_UPHY_PORTX_STATUS + (port * 8); in octuctl_attach()
244 port_ctl = bus_space_read_8(sc->sc_iot, sc->sc_ioh, preg); in octuctl_attach()
249 bus_space_write_8(sc->sc_iot, sc->sc_ioh, preg, port_ctl); in octuctl_attach()
H A Dcn30xxsmi.c152 int *preg) in cn30xxsmi_get_phy() argument
219 *preg = reg; in cn30xxsmi_get_phy()
/openbsd/gnu/lib/libiberty/src/
H A Dregex.c66 # define regfree(preg) __regfree (preg) argument
68 # define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags) argument
7917 preg->buffer = 0;
7918 preg->allocated = 0;
7919 preg->used = 0;
7928 preg->translate
8011 private_preg = *preg;
8109 regfree (regex_t *preg)
8113 preg->buffer = NULL;
8115 preg->allocated = 0;
[all …]
/openbsd/usr.bin/cvs/
H A Dtrigger.c380 regex_t preg; in cvs_trigger_getlines() local
447 if (regcomp(&preg, regex, REG_NOSUB|REG_EXTENDED)) in cvs_trigger_getlines()
450 if (regexec(&preg, repo, 0, NULL, 0) != REG_NOMATCH) { in cvs_trigger_getlines()
457 regfree(&preg); in cvs_trigger_getlines()
/openbsd/usr.sbin/smtpd/
H A Dtable.c486 regex_t preg; in table_regex_match() local
495 if (regcomp(&preg, pattern, cflags) != 0) in table_regex_match()
498 ret = regexec(&preg, string, 0, NULL, 0); in table_regex_match()
500 regfree(&preg); in table_regex_match()
/openbsd/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcFrameLowering.cpp350 unsigned preg = (reg - SP::I0) / 2 + SP::I0_I1; in remapRegsForLeafProc() local
351 unsigned mapped_preg = preg - SP::I0_I1 + SP::O0_O1; in remapRegsForLeafProc()
352 MRI.replaceRegWith(preg, mapped_preg); in remapRegsForLeafProc()

12