Changeset c40d11a
- Timestamp:
- Jul 23, 2011, 7:22:12 PM (13 years ago)
- Children:
- c36f4d0
- Parents:
- 83e023e
- git-author:
- David Benjamin <davidben@mit.edu> (07/23/11 19:05:47)
- git-committer:
- David Benjamin <davidben@mit.edu> (07/23/11 19:22:12)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.h
re9a939b rc40d11a 205 205 #define OWL_META(key) ((key)|010000) 206 206 /* OWL_CTRL is definied in kepress.c */ 207 208 #define LINE 2048209 207 210 208 #ifdef HAVE_LIBZEPHYR -
regex.c
rd427f08 rc40d11a 11 11 { 12 12 int ret; 13 char buff1[LINE]; 13 size_t errbuf_size; 14 char *errbuf; 14 15 const char *ptr; 15 16 … … 26 27 ret=regcomp(&(re->re), ptr, REG_EXTENDED|REG_ICASE); 27 28 if (ret) { 28 regerror(ret, NULL, buff1, LINE); 29 owl_function_makemsg("Error in regular expression: %s", buff1); 29 errbuf_size = regerror(ret, NULL, NULL, 0); 30 errbuf = g_new(char, errbuf_size); 31 regerror(ret, NULL, errbuf, errbuf_size); 32 owl_function_error("Error in regular expression: %s", errbuf); 33 g_free(errbuf); 30 34 g_free(re->string); 31 35 re->string=NULL;
Note: See TracChangeset
for help on using the changeset viewer.