Mercurial > libpostproc.hg
changeset 64:1912d7e2858d libpostproc
Make filterDelimiters and optionDelimiters two static constant array of
characters, should move them to .rodata.
Patch by Diego 'Flameeyes' Petten flameeyes gmail dot com
author | benoit |
---|---|
date | Thu, 03 Jan 2008 08:39:38 +0000 |
parents | 650554bacd12 |
children | 5bef666de27d |
files | postprocess.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/postprocess.c Sat Dec 01 22:21:04 2007 +0000 +++ b/postprocess.c Thu Jan 03 08:39:38 2008 +0000 @@ -745,8 +745,8 @@ { char temp[GET_MODE_BUFFER_SIZE]; char *p= temp; - const char *filterDelimiters= ",/"; - const char *optionDelimiters= ":"; + static const char filterDelimiters[] = ",/"; + static const char optionDelimiters[] = ":"; struct PPMode *ppMode; char *filterToken;