Skip to content

Commit

Permalink
winrm, excel/outlook, wsl nix, hw token, sandboxing syd, ebpf schedul…
Browse files Browse the repository at this point in the history
…er, Vulkan why buggy

Also remove templates/common.ps1 because antivirus bad.
  • Loading branch information
matu3ba committed Feb 7, 2025
1 parent 87847a2 commit 857548b
Show file tree
Hide file tree
Showing 16 changed files with 129 additions and 674 deletions.
4 changes: 2 additions & 2 deletions example/msvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
// parse build.log for cl.exe and retrieve flags
// adjust compile_commands.json with content
// {
// "directory": "C:/Users/hafer/SolutionDir/",
// "directory": "C:/Users/USER/SolutionDir/",
// "command": "\"C:/Program Files/LLVM/bin/clang++.exe\" -x c++ \"ABSOLUTE_PATH_TO_FILE\" -std=c++14 -Wall -fms-compatibility-version=19.10 -Wmicrosoft -Wno-invalid-token-paste -Wno-unknown-pragmas -Wno-unused-value -m32 -fsyntax-only \"-D_MT\" \"-D_DLL\"
// \"-D_USING_V110_SDK71_\" \"-DSOMEMACRO\" \"-DWIN32\" \"-D_DEBUG\" ..
// -isystem\"ABS_PATH_TO_PROJECT_DIR\"
// -isystem\"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include\"
// -isystem\"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/atlmfc/include\"
// -isystem\"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/Auxiliary/VS/include\"
// -isystem\"C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt\"
// -isystem\"C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include\" -I\"PxLibrary\" -I\"C:/Users/hafer/pix/SolutionDir/ProjectDir\"",
// -isystem\"C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include\" -I\"LibDir\" -I\"C:/Users/USER/SolutionDir/ProjectDir\"",
// "file": "ABSOLUTE_PATH_TO_FILE"
// }
// via
Expand Down
6 changes: 3 additions & 3 deletions example/utf8/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ static std::wstring ConvertAnsiToWide(std::string const &str) {

static int32_t test_utf8comparison() {

std::string Biiru1 = u8"<PixUTF8>生ビールBier"_SC;
std::string Biiru2 = u8"<PixUTF8>Bier生ビール"_SC;
std::string Biiru3 = u8"<PixUTF8>Bier生ビール"_SC;
std::string Biiru1 = u8"<MyUTF8>生ビールBier"_SC;
std::string Biiru2 = u8"<MyUTF8>Bier生ビール"_SC;
std::string Biiru3 = u8"<MyUTF8>Bier生ビール"_SC;

// TEST_EQUAL(Biiru1, Biiru2);
TEST_EQUAL(Biiru2, Biiru2);
Expand Down
2 changes: 1 addition & 1 deletion scr/bZigCmakeDevKit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# addStandaloneTests
#
# idea: parse pip show output
# $env:Path += ';C:\Users\hafer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ninja'
# $env:Path += ';C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ninja'
# (idea)
# 4. powershell scripts executable (execution in shell):
# Get-Content bZig.ps1 | PowerShell.exe -noprofile -
Expand Down
2 changes: 1 addition & 1 deletion scr/ctags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

trap 'rm -f "${PID}tags"' EXIT
#powershell: cd repo
#powershell: FILES=$(fd 'Px.*' -t d --max-depth=1 --relative-path | TODO strip last / or \ of local dirs)
#powershell: FILES=$(fd 'prefix.*' -t d --max-depth=1 --relative-path | TODO strip last / or \ of local dirs)
#powershell: ctags --recurse=yes --kinds-c++=+p --extras=+fq --sort=foldcase --c++-kinds=+p --fields=+iaS --extras=+q relativepath
ctags --recurse=yes --kinds-c++=+p -f "${PID}tags" --extras=+fq --sort=foldcase --c++-kinds=+p --fields=+iaS --extras=+q "$@"
mv "${PID}tags" "tags"
Expand Down
4 changes: 2 additions & 2 deletions templates/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1392,11 +1392,11 @@ void printGetLastError() {
// // prefer in class definition:
// static_assert( std::is_same<_Integral, int64_t>::value || std::is_same<_Integral, double>::value );
// if constexpr (std::is_same<_Integral, int64_t>::type_id) {
// std::shared_ptr<const CPxIntegerValue> out_data = ClassRef->GetTypedData();
// std::shared_ptr<const CIntVal> out_data = ClassRef->GetTypedData();
// TEST_EQUAL(out_data->ToInt64(), expected);
// }
// else if constexpr (std::is_same<_Integral, double>) {
// std::shared_ptr<const CPxIntegerValue> out_data = ClassRef->GetTypedData();
// std::shared_ptr<const CIntVal> out_data = ClassRef->GetTypedData();
// TEST_EQUAL(out_data->ToDouble(), expected);
// } else {
// static_assert(!std::is_same<_Integral, _Integral>::value); // template error
Expand Down
3 changes: 2 additions & 1 deletion templates/common.prg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

// https://infosys.beckhoff.com/english.php?content=../content/1033/tcplclib_tc2_system/3622991755.html&id=
// https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_plc_intro/2525041803.html&id=
// c:\TwinCAT\AdsApi\TcAdsDll\Include\TcAdsDef.h

PROGRAM MAIN
VAR
Expand Down Expand Up @@ -68,4 +69,4 @@ END_IF
// PLC -> CX7000PLC -> CX7000PL Project -> POUs -> MAIN (PRG)

// https://infosys.beckhoff.com/english.php?content=../content/1033/tf5200_programming_manual/208400267.html&id=6992011668082302531
// idea macros
// idea macros
Loading

0 comments on commit 857548b

Please sign in to comment.