17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 12:09:19 +02:00
Commit Graph

20 Commits

Author SHA1 Message Date
maj00r
3daf984a64 put audit --fix includes in the fragment, not the purview
The inserter aimed at the spot before the first import, which in a module
unit is past the module declaration - so the includes landed in the
purview, attaching those declarations to the module, and re-running piled
up duplicates. It now targets the global module fragment for module units
and keeps the before-first-import rule only for ordinary units.
2026-09-10 14:37:03 +02:00
maj00r
9ea57e0525 fix the Windows-only sources and the resource encoding
LPT.cpp and PoKeys55.cpp never imported the modules holding WriteLog,
ToLower and contains. Neither file is compiled on Linux, so nothing had
caught it; Console.cpp, which is built the same way, already had its
imports.

eu07.rc.in was stored in CP1250 - the o-acute in "pojazdow" is a single
0xF3 byte. rc.exe guessed a codepage, llvm-rc refuses to. Re-encoded as
UTF-8 with a BOM, which both recognise.
2026-09-10 14:35:10 +02:00
maj00r
96161dcacb include the platform header where Win32 types are used
windows.cpp and piped_proc.cpp reached windows.h through an imported
module's global module fragment, which does not cross the boundary.
LPT.cpp and zmq_input.cpp never had it at all - the first was in an
MSBuild batch that aborted before reaching it, the second is behind
WITH_ZMQ and has not been compiled by either CI job.

The earlier sweep only looked inside #ifdef _WIN32 blocks, but these
files are gated by CMake instead, so they have no such block.
2026-09-10 02:40:50 +02:00
maj00r
ce5ee288ff fix the clang CI build
Every module unit now includes the standard headers it uses. Declarations
reaching a unit only through an imported module's global module fragment
are reachable but not visible, so ADL misses the free operators older
libstdc++ declares beside a type - reproduced on ubuntu 24.04 (libstdc++
13), where gl/vao.cpp could not compare vector iterators.

Also drops a stale editor/editorSettings.hpp from the MSVC source list,
which broke the Windows configure step, silences the deliberate
include-in-purview warning in the glm wrapper, and removes GCC support:
clang or MSVC only.
2026-09-09 22:52:28 +02:00
maj00r
3f7960aad5 pch migration to modules [wip] 2026-09-09 20:35:26 +02:00
copilot-swe-agent[bot]
7e49aa8740 Rewrite #includes to use explicit subdirectory paths
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:16:48 +00:00
milek7
29f8f91ad8 Merge remote-tracking branch 'tmj/master' into sim 2020-10-18 23:35:14 +02:00
tmj-fstate
10dabd66c3 lpt diagnostics, tempomat configuration enhancements, ai cargo train driving logic tweaks, partial ai support for universal controller in diesel-electric vehicles 2020-05-23 23:14:54 +02:00
milek7
61836eb2e4 Merge branch 'tmj-dev' 2018-02-16 15:33:11 +01:00
milek7
c631f4beed verbose lpt logging 2018-01-26 20:48:25 +01:00
VB
92f39cd9b9 tymczasowe przywrócenie tekstu, porządek, wywalenie starych plików, warningi, cmake, itp. 2017-02-14 19:13:48 +01:00
firleju
79302d6677 Konwersja na UTF-8
Konwersja na UTF-8

Dodany nowy warunek dla formatera aby nie sortował includów.
2017-01-23 15:31:40 +01:00
tmj-fstate
15cf3d73a8 removed dependencies on the old parser. The code can now be compiled outside of Borland C++ 2017-01-15 15:27:53 +01:00
Firleju
731102c10f LCD Screens in python
Merge with python branch
2015-06-05 21:00:49 +02:00
Firleju
cd571c71ea Change clang format
Add AlignTrailingComments: false
Add AllowShortFunctionsOnASingleLine: Empty
2015-04-29 12:55:45 +02:00
Firleju
4873d8431c Added license notes to all source code files. 2015-04-16 11:50:14 +02:00
Firleju
a11d21673e Cleaning up after __fastcall remove.
Cleaning up project after remove _fastcall. Project now buildable.
2015-04-15 23:49:51 +02:00
Zbigniew Mandziejewicz
9eb087b96e Remove __fastcall calling convention 2015-04-03 22:10:22 +08:00
Zbigniew Mandziejewicz
cb19354db4 Format source code using clang-format 2015-04-03 22:01:10 +08:00
ShaXbee
45f4c0d98a Set dp branch as trunk 2015-04-03 13:34:06 +00:00