Lines Matching defs:re

19 import re
94 if re.match ("(Manifest|Makefile\.am|ac\.c|cipher\.c|hash-common\.c|hmac-tests\.c|md\.c|pubkey\.c)$", cipher_file):
98 if re.match ("Makefile\.in$", cipher_file):
101 if re.match (".*\.[ch]$", cipher_file):
102 isc = re.match (".*\.c$", cipher_file)
137 if re.match (".*-glue$", modname):
144 if not re.search (";", line) is None:
152 if not re.search (" *};", line) is None:
156 s = re.search (" *\"([A-Z0-9_a-z]*)\"", line)
162 if not re.search (" *};", line) is None:
177 iscomma = not re.search (",$", line) is None
179 m = re.match ("(static byte|static unsigned char) (weak_keys_chksum)\[[0-9]*\] =", line)
192 # We're optimising for size.
193 if not re.match ("(run_selftests|selftest|_gcry_aes_c.._..c|_gcry_[a-z0-9]*_hash_buffer|tripledes_set2keys|do_tripledes_set_extra_info|_gcry_rmd160_mixblock|serpent_test)", line) is None:
195 if not re.match ("serpent_test", line) is None:
197 fname = re.match ("[a-zA-Z0-9_]*", line).group ()
207 m = re.match ("# *include <(.*)>", line)
216 m = re.match ("gcry_cipher_spec_t", line)
222 ciphername = re.match("[a-zA-Z0-9_]*",ciphername).group ()
226 m = re.match ("gcry_md_spec_t", line)
232 mdname = re.match("[a-zA-Z0-9_]*",mdname).group ()
236 m = re.match ("static const char \*selftest.*;$", line)
239 fname = re.match ("[a-zA-Z0-9_]*", fname).group ()
247 m = re.match ("(static const char( |)\*|static gpg_err_code_t|void|static int|static gcry_err_code_t)$", line)
252 m = re.match ("static int tripledes_set2keys \(.*\);", line)
255 m = re.match ("static int tripledes_set2keys \(", line)
259 m = re.match ("cipher_extra_spec_t", line)
263 fname = re.match ("[a-zA-Z0-9_]*", fname).group ()
271 m = re.match ("md_extra_spec_t", line)
275 fname = re.match ("[a-zA-Z0-9_]*", fname).group ()