LLVM: lib/Support/regfree.c Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38#include <sys/types.h>

39#include <stdio.h>

40#include <stdlib.h>

42

45

46

47

48

49void

51{

53

55 return;

56

58 if (g == NULL || g->magic != MAGIC2)

59 return;

60 preg->re_magic = 0;

61 g->magic = 0;

62

63 if (g->strip != NULL)

64 free((char *)g->strip);

65 if (g->sets != NULL)

66 free((char *)g->sets);

67 if (g->setbits != NULL)

68 free((char *)g->setbits);

69 if (g->must != NULL)

70 free(g->must);

71 free((char *)g);

72}

INLINE void g(uint32_t *state, size_t a, size_t b, size_t c, size_t d, uint32_t x, uint32_t y)

struct llvm_regex llvm_regex_t

void llvm_regfree(llvm_regex_t *preg)

Definition regfree.c:50