chore: bump scintilla and lexilla version

This commit is contained in:
2025-10-12 13:51:32 +08:00
parent 9fb3681e3a
commit db20417ce7
1093 changed files with 138943 additions and 128144 deletions

View File

@ -0,0 +1,36 @@
/**
* Scintilla source code edit control
* @file DictionaryForCF.h - Wrapper for CFMutableDictionary
*
* Copyright 2024 Neil Hodgson.
* This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt).
*/
#ifndef DICTIONARYFORCF_H
#define DICTIONARYFORCF_H
class DictionaryForCF {
CFMutableDictionaryRef dict;
public:
DictionaryForCF() noexcept :
dict(::CFDictionaryCreateMutable(kCFAllocatorDefault, 2,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks)) {
}
~DictionaryForCF() {
::CFRelease(dict);
}
CFMutableDictionaryRef get() const noexcept {
return dict;
}
void SetValue(const void *key, const void *value) noexcept {
::CFDictionarySetValue(dict, key, value);
}
void SetItem(const void *key, CFNumberType theType, const void *valuePtr) noexcept {
CFNumberRef number = ::CFNumberCreate(kCFAllocatorDefault, theType, valuePtr);
::CFDictionarySetValue(dict, key, number);
::CFRelease(number);
}
};
#endif