Skip to content

Commit

Permalink
added .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
WizzardMaker committed Jan 16, 2025
1 parent 24ccf73 commit d8c5059
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 3 deletions.
57 changes: 57 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
root = true

# All files
[*]
indent_style = space

# Xml files
[*.xml]
indent_size = 2

# Applies to C++ files
[*.{cpp,h,hpp,cxx,hxx}]
indent_style = space
indent_size = 4
tab_width = 8
max_line_length = 160
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Formatting specifics
csharp_space_before_open_square_brackets = false
dotnet_sort_system_directives_first = true

# Alignments
align_after_open_bracket = align
align_trailing_comments = true
allow_short_blocks_on_a_single_line = false
allow_short_if_statements_on_a_single_line = false
allow_short_functions_on_a_single_line = true

# Line breaks and indentation
always_break_after_return_type = false
always_break_before_multiline_strings = false
brace_style = attach
break_before_ternary_operators = true
constructor_initializer_indent_width = 4
continuation_indent_width = 4
namespace_indentation = none

# Include statements
sort_includes = false
include_blocks = preserve

# Spaces and alignment
space_before_assignment_operators = true
space_before_square_brackets = false
spaces_in_parentheses = false
spaces_in_square_brackets = false
spaces_in_angles = false
space_before_range_based_for_loop_colon = true

# Pointer and reference alignment
pointer_alignment = right

# Other
use_tab = false
8 changes: 8 additions & 0 deletions AirlineTycoon.sln
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dependencies", "Dependencie
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jansson", "libs\jansson\jansson.vcxproj", "{001DB139-21CE-3DF6-AC7F-012126DBE563}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CE8F01C5-56C2-4CFB-86A9-F0D7676BEBFD}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
BUILDING.md = BUILDING.md
README.md = README.md
BuildTargets.targets = BuildTargets.targets
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand Down
7 changes: 4 additions & 3 deletions src/Takeoff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ char *UCharToReadableAnsi(const unsigned char *pData, unsigned uLen);
unsigned char *ReadableAnsiToUChar(const char *pData, unsigned uLen);

#ifdef __cplusplus
extern "C"
#define EXTERN extern "C"
#else
#define EXTERN
#endif

int main(int argc, char *argv[]) {
EXTERN int main(int argc, char *argv[]) {
#ifdef TEST
if (!run_regression()) {
hprintf("Regression test failed!");
Expand Down Expand Up @@ -312,7 +314,6 @@ void CTakeOffApp::ReadOptions(int argc, char *argv[]) {
//#define LANGUAGE_9 18 //U-noch frei
//#define LANGUAGE_10 19 //V-noch frei


// gUpdatingPools = TRUE; //Zum testen; für Release auskommentieren
CRegistryAccess reg(chRegKey);

Expand Down

0 comments on commit d8c5059

Please sign in to comment.