diff --git a/scintilla/src/SciTE.properties b/scintilla/src/SciTE.properties new file mode 100644 index 000000000..1eda9fae4 --- /dev/null +++ b/scintilla/src/SciTE.properties @@ -0,0 +1,6 @@ +# SciTE.properties is the per directory local options file and can be used to override +# settings made in SciTEGlobal.properties +command.build.directory.*.cxx=..\win32 +command.build.directory.*.h=..\win32 +command.build.*.cxx=nmake -f scintilla.mak QUIET=1 +command.build.*.h=nmake -f scintilla.mak QUIET=1 diff --git a/src/Version.h b/src/Version.h index e0500800c..e1a362b2a 100644 Binary files a/src/Version.h and b/src/Version.h differ diff --git a/uthash/uthash.h b/uthash/uthash.h index 7e64cac75..13afc5d3a 100644 --- a/uthash/uthash.h +++ b/uthash/uthash.h @@ -478,11 +478,20 @@ do { /* convenience forms of HASH_FIND/HASH_ADD/HASH_DEL */ #define HASH_FIND_STR(head,findstr,out) \ - HASH_FIND(hh,head,findstr,(unsigned)uthash_strlen(findstr),out) +do { \ + unsigned _uthash_hfstr_keylen = (unsigned)uthash_strlen(findstr); \ + HASH_FIND(hh, head, findstr, _uthash_hfstr_keylen, out); \ +} while (0) #define HASH_ADD_STR(head,strfield,add) \ - HASH_ADD(hh,head,strfield[0],(unsigned)uthash_strlen(add->strfield),add) +do { \ + unsigned _uthash_hastr_keylen = (unsigned)uthash_strlen((add)->strfield); \ + HASH_ADD(hh, head, strfield[0], _uthash_hastr_keylen, add); \ +} while (0) #define HASH_REPLACE_STR(head,strfield,add,replaced) \ - HASH_REPLACE(hh,head,strfield[0],(unsigned)uthash_strlen(add->strfield),add,replaced) +do { \ + unsigned _uthash_hrstr_keylen = (unsigned)uthash_strlen((add)->strfield); \ + HASH_REPLACE(hh, head, strfield[0], _uthash_hrstr_keylen, add, replaced); \ +} while (0) #define HASH_FIND_INT(head,findint,out) \ HASH_FIND(hh,head,findint,sizeof(int),out) #define HASH_ADD_INT(head,intfield,add) \ diff --git a/uthash/utstring.h b/uthash/utstring.h index 05ee03786..bc68ac5c2 100644 --- a/uthash/utstring.h +++ b/uthash/utstring.h @@ -44,8 +44,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #endif typedef struct { - char *d; - size_t n; /* allocd size */ + char *d; /* pointer to allocated buffer */ + size_t n; /* allocated capacity */ size_t i; /* index of first unused byte */ } UT_string; @@ -81,8 +81,8 @@ do { \ #define utstring_new(s) \ do { \ - s = (UT_string*)calloc(sizeof(UT_string),1); \ - if (!s) oom(); \ + (s) = (UT_string*)malloc(sizeof(UT_string)); \ + if (!(s)) oom(); \ utstring_init(s); \ } while(0)