Re: [pcre-dev] pcre_compile.c: error_texts

2013-01-01 Thread Kevin Connor Arpe
Philip, Zoltán, Thanks for you feedback. Comments inline below. I wouldn't worry about the thread safety of your static array. If you write the same values to the memory from different threads, that is safe. Therefore, if for some reasons the array would be initialized multiple times, that

Re: [pcre-dev] pcre_compile.c: error_texts

2013-01-01 Thread Philip Hazel
On Mon, 31 Dec 2012, Kevin Connor Arpe wrote: Apologies, I should be clearer. By first I do not mean multiple errors in the same pattern. I mean multiple, sequential calls to pcre_compile(). Imagine the scenario above where user is entering regex in a GUI. This causes continuous recompile

Re: [pcre-dev] pcre_compile.c: error_texts

2013-01-01 Thread Giuseppe D'Angelo
On 1 January 2013 14:12, Philip Hazel p...@hermes.cam.ac.uk wrote: On Mon, 31 Dec 2012, Kevin Connor Arpe wrote: Apologies, I should be clearer. By first I do not mean multiple errors in the same pattern. I mean multiple, sequential calls to pcre_compile(). Imagine the scenario above where

Re: [pcre-dev] pcre_compile.c: error_texts

2013-01-01 Thread Zoltán Herczeg
Each user gets its own writable data section; read-only data sections are instead shared between the users. I don''t think anything would work without a private .data and .bss section. As far as I remember the point of static libraries is that they use position independent code, so they can

[pcre-dev] [Bug 1326] pcre-8.33-RC1 build on x86 fails @ error: PIC register clobbered by '%ebx' in 'asm'

2013-01-01 Thread Zoltan Herczeg
--- You are receiving this mail because: --- You are on the CC list for the bug. http://bugs.exim.org/show_bug.cgi?id=1326 --- Comment #2 from Zoltan Herczeg hzmes...@freemail.hu 2013-01-01 21:43:43 --- I think the code is safe, and hopefully works on Intel C and SUNPRO C compilers,