akallabeth
ec030e8255
[winpr,stream] implement reference counting for streams
2025-02-27 20:30:25 +01:00
akallabeth
5b9a1b5b1f
[winpr,clipboard] define guard DIBv5 support
2025-02-27 08:33:39 +01:00
akallabeth
78851e929e
[winpr,wlog] simplify WLog_* macros
...
Macro nesting did expose some compiler limitations with GCC 11.4.0, so
replace the macros with static inline functions where possible.
2025-02-24 22:00:39 +01:00
akallabeth
e259eee0df
[macro] fix use of WINPR_DEPRECATED
2025-02-17 11:15:46 +01:00
akallabeth
76c2944d99
[winpr,warnings] fix -Wunused-parameter
2025-02-13 15:53:51 +01:00
Armin Novak
e89efdece9
[winpr] add WINPR_ATTR_UNUSED
2025-02-13 13:32:25 +01:00
akallabeth
0ae7c4b52d
[cmake] refactor configuration
...
* Split common stuff to reusable files
* Disable INTERPROCEDURAL_OPTIMIZATION for SDL2/3 resource targets
2025-02-11 11:33:34 +01:00
akallabeth
94554fd3ca
[winpr,input] fix japanese mapping
...
use japanese 109 layout instead of 106 layout
2025-01-19 11:16:44 +01:00
akallabeth
ea2022b76b
[clang,tidy] fix warnings
2025-01-15 09:32:52 +01:00
akallabeth
41cedbcb7c
[ci,coverity] simplify pragma
2025-01-13 13:32:35 +01:00
akallabeth
f22b4efb7c
[winpr,sysinfo] include winnt.h
...
* PF_SSE4_1_INSTRUCTIONS_AVAILABLE et al are defined in winnt.h on
windows / mingw. Include explicitly to fix a mingw build issue.
2025-01-09 23:41:37 +01:00
akallabeth
65ef3f81e2
[winpr,input] add missing WINPR_KBD_TYPE
...
add mapping for uncommon keyboard types as well.
2025-01-09 09:41:54 +01:00
akallabeth
19cc9ac670
[winpr,nt] fix argument of NtStatus2Tag
...
use NTSTATUS instead of UINT32 as argument type
2025-01-07 08:46:32 +01:00
akallabeth
1d4e9fc708
Merge pull request #10998 from akallabeth/winpr-implicit-fix
...
[warnings] fix integer casting in winpr
2025-01-04 09:58:43 +01:00
Pascal Nowack
dd75ea6a37
winpr/input: Add missing korean keyboard type
...
The keyboard types in 2.2.1.3.2 Client Core Data (TS_UD_CS_CORE)
([MS-RDPBCGR]) contain a korean keyboard type, which is not yet present
in WinPR. So, add it.
2025-01-03 13:28:44 +01:00
akallabeth
307bf48870
[warnings] fix integer casting in winpr
...
* use WINPR_ASSERTING_INT_CAST to detect overflows in sign or narrow
integer casts
* replace defines with static variables
2025-01-03 10:08:57 +01:00
akallabeth
795914e50c
[winpr,assert] always compile in assert helper
2024-12-18 14:12:10 +01:00
akallabeth
964063a369
[winpr,cast] split cast macros to header
...
* Simplify winpr/assert.h to have the least possible includes
* Move some definitions to winpr/platform.h
* Split and move cast macros to winpr/cast.h
* Add new cast macro for integer casts
2024-12-18 14:12:06 +01:00
akallabeth
43bfc74721
[cmake] install only header files
...
skip empty directories on install
2024-12-15 17:54:54 +01:00
akallabeth
a3db26c57a
[warnings] fix cast warnings
2024-12-10 17:26:37 +01:00
akallabeth
a461f7bc4b
[winpr,streampool] Add StreamPool_WaitForReturn
2024-12-10 13:10:23 +01:00
Armin Novak
35c687a0c4
[winpr,stream] add StreamPool_UsedCount
2024-12-10 11:40:01 +01:00
Martin Fleisz
2161ce2985
Merge pull request #10930 from akallabeth/endianess
...
Endianess
2024-12-10 10:30:17 +01:00
akallabeth
16f8eee229
[winpr,bcrypt] define BCRYPT WCHAR with C11 u"STR"
2024-12-09 12:10:01 +01:00
akallabeth
33a125d4a3
[winpr,winpr.h] static assert WINPR_REINTERPRET_CAST
2024-12-08 22:56:01 +01:00
akallabeth
514d300be8
[winpr,endian] Data_Write_* static functions
...
* Convert Data_Write_* macros to static inline functions
* Add winpr_Data_Get_* inline functions to read
* Use winpr_Data_Write_* functions in wStream API
* Add deprecated fallback to old names for external software
2024-12-08 22:55:45 +01:00
akallabeth
344841714c
Merge pull request #10844 from akallabeth/cmake-mulitconfig
...
Cmake multiconfig
2024-12-07 17:43:05 +01:00
Armin Novak
7643ecbf25
[winpr,debug] WINPR_ATTR_MALLOC backtrace functions
2024-12-06 09:15:54 +01:00
akallabeth
83f2f21ad3
[warnigns] fix lots of bugprone warnings
...
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +01:00
akallabeth
180a9d7d72
[cmake,flags] print all configuration flags
...
Since we do not know wich configuration will be build with
multiconfiguration generators print out all C_FLAGS_XXX and
CXX_FLAGS_XXX variables
2024-12-05 09:36:26 +01:00
akallabeth
7842891d0f
[winpr,spec] fix windows compatibility
...
define NONAMELESSUNION to have the same struct definitions under windows
as we have under linux.
2024-11-28 15:19:06 +01:00
akallabeth
17295d114b
[winpr] fix OVERLAPPED and SYSTEM_INFO definitions
...
rename them to conform to windows versions
2024-11-28 15:18:42 +01:00
akallabeth
06214fec26
[winpr,wtypes] fix LPHANDLE definition
...
PHANDLE and LPHANDLE are pointers to a HANDLE
2024-11-28 15:18:42 +01:00
akallabeth
99d6fdba9d
[winpr,wtypes] simplify by basing on stdint.h
2024-11-28 15:18:40 +01:00
akallabeth
f7e5e6507b
Merge pull request #10895 from akallabeth/cmake-format
...
Cmake format
2024-11-28 14:52:19 +01:00
Armin Novak
601249115f
[codespell] fix spelling mistakes
2024-11-28 11:52:22 +01:00
akallabeth
faae38120c
[cmake,format] reformat all cmake files
2024-11-27 20:41:48 +01:00
akallabeth
402cc34e8c
[winpr,synch] fix timer HANDLE casts
2024-11-22 11:00:30 +01:00
akallabeth
163e74844f
[pragma] clang does not support -Wdiscarded-qualifiers
2024-11-22 11:00:22 +01:00
akallabeth
136a8998c4
[winpr,stream] fix 64bit stream function
...
* Fix Stream_Write_UINT64* functions
* Add unit tests to cover that
2024-11-21 18:40:11 +01:00
stephanebill
4f2afa8c47
spell check with codespell
2024-11-20 16:53:40 -05:00
akallabeth
9b3f5cd86e
[ci,coverity] define COVERITY_BUILD
...
By defining this symbol the build will enable coverity related pragma
definitions
2024-11-14 13:53:41 +01:00
akallabeth
3c8cd7fb7e
[winpr,assert] add WINPR_ASSERT_AT
...
Add a version of assert that allows setting the location (useful for
macros or static functions wrapping something where the location of the
call is more significant than the function the macro was used in)
2024-11-14 13:26:16 +01:00
akallabeth
9e15af8850
[winpr,assert] fix coverity pragma
...
rewrite pragma according to https://community.blackduck.com/s/article/Suppressing-False-Positive-Intentional-defects
2024-11-12 16:46:13 +01:00
akallabeth
c5711f0a2e
[winpr,assert] coverity suppress CONSTANT_EXPRESSION_RESULT
2024-11-08 08:40:28 +01:00
Martin Fleisz
1520d94d33
Merge pull request #10797 from akallabeth/warn-fixes
...
Warn fixes
2024-11-07 13:50:51 +01:00
akallabeth
d070857c03
[winpr,string] add wcsndup
2024-11-07 11:46:55 +01:00
akallabeth
3a1251fa0e
[winpr,path] WINPR_ATTR_MALLOC for winpr_GetConfigFilePath
2024-11-07 11:46:53 +01:00
akallabeth
a5b64effab
[winpr,stream] add functions to write INT16_BE and INT32_BE
2024-10-30 19:18:04 +01:00
akallabeth
8bb5d598fc
[winpr,stream] fix missing comma
2024-10-30 17:10:03 +01:00