From 81e95bf7aaaa4c833314508384cceff8ffb2b7e3 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Thu, 15 Mar 2018 11:50:52 +0100 Subject: [PATCH] + rpl: replace tellenc by CED in AboutBox + upd: uthash library updated to current GitHub dev --- scintilla/src/SciTE.properties | 6 ++++++ src/Version.h | Bin 25244 -> 25262 bytes uthash/uthash.h | 15 ++++++++++++--- uthash/utstring.h | 8 ++++---- 4 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 scintilla/src/SciTE.properties 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 e0500800c64305b75acc82be38c9763852971c47..e1a362b2a0ab9d28530cba775894c938890b735a 100644 GIT binary patch delta 118 zcmbPplyTir#tmHh+FlHq40#O245bX&3rL&;=) zeN)YJhI}AQXUGAH=mTZ)f$9qw5`nA|hIpVDNOe3z3PbATgZ9CbYy&3QvP@o}EwI_b HAjJp(9S$3v delta 104 zcmZ2?lyS~c#tmHhs^JW!3strfield),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)