Jonathan G Rennison
9176d9a284
cpp-btree: Update to match upstream
...
Add noexcept to swap-based move constructors and copy/move assignment operator
2019-09-29 12:03:12 +01:00
Jonathan G Rennison
7690fe8572
cpp-btree: Update to match upstream
...
minor optimization: minimize calls to end()
Minor optimization: increase the chances that the compiler will inline calls to end().
Has been observed to make a difference with gcc 4.9.3.
Fix build and warnings on MSVC (2017)
Uses static_assert, a C++11 feature. Also adds some explicit uses of
static_cast in order to suppress warnings about lossy type conversion.
2018-11-01 18:54:24 +00:00
Jonathan G Rennison
133ccabf42
btree: Use static_assert instead of workaround macro
2018-05-06 12:15:54 +01:00
Jonathan G Rennison
344f39196f
cpp-btree: Remove remaining uses of ssize_t
...
This is due to issues building on Windows
2017-02-28 21:23:52 +00:00
Jonathan G Rennison
418e9f4158
Remove assert.h include from btree.h, as this overrides OpenTTD's assert
2017-02-19 13:55:31 +00:00
Jonathan G Rennison
3d0ed3547b
Update source.list and project files with btree headers.
2017-02-07 19:16:20 +00:00
Jonathan G Rennison
b4cfb1adbc
Import cpp-btree library into 3rdparty section.
...
Repo: https://github.com/JGRennison/cpp-btree
Commmit: 6cabdb40fcbb7e12e6d499f92b898f6ec80ae0f1
Remove test program, build scripts, etc.
2017-02-07 19:07:11 +00:00
Jonathan G Rennison
8a2f9311a9
Include -01 in CFLAGS_BUILD when using clang.
2016-09-08 19:31:40 +01:00
Jonathan G Rennison
390a22f864
Enable FINAL, (un)linkely, __attribute__ for clang.
2016-09-08 18:38:53 +01:00
Jonathan G Rennison
f7af8b8bdc
Silence -Wunused-variable warnings in src/table/townname.h
2016-09-05 23:16:47 +01:00
Jonathan G Rennison
6e9ea59ab5
Add a simple scope guard include file.
2016-09-05 23:16:47 +01:00
Jonathan G Rennison
bb6ea150a3
Use likely/__builtin_expect for assertion macros.
...
(cherry picked from commit f82002cda2
)
2016-09-05 22:46:01 +01:00
Jonathan G Rennison
0b7d68a6d1
Add support for verbose asserts.
...
(cherry picked from commit 48e4c35fdc
)
2016-09-05 22:46:01 +01:00
Jonathan G Rennison
51099c3572
Unconditionally use static_assert.
2016-09-05 22:46:01 +01:00
Jonathan G Rennison
2fe7571034
Require C++11 support.
...
Set minimum compiler versions to:
GCC 4.7
clang 3.3
ICC 14.0
2016-09-05 22:45:57 +01:00
frosch
533cb7c156
(svn r27654) -Change: Enable C++11 for clang 3.3 (LordAro)
2016-09-05 19:11:01 +00:00
alberth
f286ba8db2
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04 16:06:50 +00:00
alberth
0b8869930f
(svn r27652) -Fix(r27650): Use the file operation being performed to set the _sl.action variable.
2016-09-04 15:10:41 +00:00
alberth
e735bbebce
(svn r27651) -Codechange: Introduce methods for setting the name and title of _file_to_saveload.
2016-09-04 12:58:04 +00:00
alberth
a959c0c965
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
2016-09-04 12:57:43 +00:00
alberth
c3bed437ee
(svn r27649) -Codechange: Introduce detailed file type enum, rebuild FiosType with it.
2016-09-04 12:57:20 +00:00
alberth
3b84827773
(svn r27648) -Codechange: Remove remaining _saveload_mode usage.
2016-09-04 12:56:56 +00:00
alberth
ec2b2fad58
(svn r27647) -Codechange: Introduce file operations, and use it to replace most of SaveLoadDialogMode
2016-09-04 12:56:23 +00:00
alberth
ac72a6b1ed
(svn r27646) -Codechange: Move _fios_items variable into the SaveLoadWindow class.
2016-09-04 12:55:54 +00:00
alberth
76cd96e709
(svn r27645) -Add: Give console commands their own file list storage.
2016-09-04 12:55:21 +00:00
alberth
8a9e9f838b
(svn r27644) -Codechange: Split GetFiosItem into BuildFileList and FindItem, and move both to FileList.
2016-09-04 12:54:52 +00:00
alberth
f618c0d0a5
(svn r27643) -Codechange: FiosGetDrives function also takes a destination file list.
2016-09-04 12:54:30 +00:00
alberth
93baf192a0
(svn r27642) -Codechange: FiosGet* file query functions take a destination file list.
2016-09-04 12:54:03 +00:00
alberth
a38cdeccc0
(svn r27641) -Codechange: Fold the _fios_items file list vector into its own class.
2016-09-04 12:50:22 +00:00
alberth
c530f89761
(svn r27640) -Codechange: Remove another use of _saveload_mode in the loading code.
2016-09-04 12:48:28 +00:00
alberth
b6c29ae4eb
(svn r27639) -Codechange: Also always set the abstract FileToSaveLoad::filetype when setting a mode.
2016-09-04 12:47:39 +00:00
alberth
e78627f2f1
(svn r27638) -Codechange: Move FiosType enum, move and rename SetFiosType function.
2016-09-04 12:47:07 +00:00
alberth
b5eb50da7b
(svn r27637) -Codechange: Don't use _saveload_mode for scenario loading detection.
2016-09-04 12:46:29 +00:00
alberth
757bc0a97b
(svn r27636) -Codechange: Rename FileType to AbstractFileType.
2016-09-04 12:46:07 +00:00
alberth
a35e970ab0
(svn r27635) -Codechange: Move FileType and FileToSaveLoad structure definitions.
2016-09-04 12:45:40 +00:00
alberth
df2221ba7e
(svn r27634) -Codechange: Improve name of the SmallFiosItem struct.
2016-09-04 12:45:11 +00:00
alberth
55c7c21c5d
(svn r27633) -Codechange: Extract _saveload_mode use from BuildFileList
2016-09-04 12:44:42 +00:00
frosch
f46996243b
(svn r27632) -Feature: When dragging vehicles in group or depot GUI, draw the complete articulated vehicle.
2016-08-15 18:34:31 +00:00
frosch
0829753fd0
(svn r27631) -Codechange: Split GetSingleVehicleWidth from GetVehicleWidth.
2016-08-15 18:34:09 +00:00
frosch
caa9bffb56
(svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor.
2016-08-15 18:33:52 +00:00
frosch
0214caaac2
(svn r27629) -Fix: When dragging multiple vehicles in the depot, make the destination gap as long as the chain instead of just considering the first vehicle.
2016-08-15 18:33:29 +00:00
frosch
0e3e4eeb53
(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites.
2016-08-15 18:33:08 +00:00
frosch
2337d169e8
(svn r27627) -Codechange: Deduplicate some cursor magic into SetMouseCursorBusy.
2016-08-15 18:32:48 +00:00
frosch
93d5995bed
(svn r27626) -Codechange: Do not use the cursor sprite as PlaceObject status in the main toolbar.
2016-08-15 18:32:25 +00:00
frosch
2257d782b0
(svn r27625) -Doc: CursorVars
2016-08-15 18:30:50 +00:00
translators
9d5ed2c469
(svn r27624) -Update from Eints:
...
spanish (mexican): 24 changes by Absay
2016-08-07 17:45:36 +00:00
frosch
a2a69c1480
(svn r27623) -Fix (r27616) [FS#6492]: Missed two version checks, and messed one up.
2016-07-24 09:13:51 +00:00
frosch
cc18df4cb7
(svn r27622) -Change: In industry map view, give visible industry types the highest tile priority, and hidden industry types a lower one. This way filtered and highlighted industries are not hidden by overlapping tiles in zoomed-out smallmap. (adf88)
2016-07-22 21:44:54 +00:00
frosch
46aeed3817
(svn r27621) -Fix (r27620): Committed too early.
2016-07-22 21:38:49 +00:00
frosch
bd6799a9f8
(svn r27620) -Codechange: Inline GetEffectiveTileType (adf88)
2016-07-22 21:29:04 +00:00