Skip to content

Commit

Permalink
Indent DM code using tabs instead of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed Dec 11, 2020
1 parent b9d8668 commit 17279b3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.dm]
indent_style = tab
2 changes: 1 addition & 1 deletion dmsrc/cellularnoise.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
* * height: The height of the grid.
*/
#define rustg_cnoise_generate(percentage, smoothing_iterations, birth_limit, death_limit, width, height) \
call(RUST_G, "cnoise_generate")(percentage, smoothing_iterations, birth_limit, death_limit, width, height)
call(RUST_G, "cnoise_generate")(percentage, smoothing_iterations, birth_limit, death_limit, width, height)
4 changes: 2 additions & 2 deletions dmsrc/file.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
#define rustg_file_append(text, fname) call(RUST_G, "file_append")(text, fname)

#ifdef RUSTG_OVERRIDE_BUILTINS
#define file2text(fname) rustg_file_read("[fname]")
#define text2file(text, fname) rustg_file_append(text, "[fname]")
#define file2text(fname) rustg_file_read("[fname]")
#define text2file(text, fname) rustg_file_append(text, "[fname]")
#endif
2 changes: 1 addition & 1 deletion dmsrc/hash.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
#define RUSTG_HASH_SHA512 "sha512"

#ifdef RUSTG_OVERRIDE_BUILTINS
#define md5(thing) (isfile(thing) ? rustg_hash_file(RUSTG_HASH_MD5, "[thing]") : rustg_hash_string(RUSTG_HASH_MD5, thing))
#define md5(thing) (isfile(thing) ? rustg_hash_file(RUSTG_HASH_MD5, "[thing]") : rustg_hash_string(RUSTG_HASH_MD5, thing))
#endif
4 changes: 2 additions & 2 deletions dmsrc/url.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#define rustg_url_decode(text) call(RUST_G, "url_decode")(text)

#ifdef RUSTG_OVERRIDE_BUILTINS
#define url_encode(text) rustg_url_encode(text)
#define url_decode(text) rustg_url_decode(text)
#define url_encode(text) rustg_url_encode(text)
#define url_decode(text) rustg_url_decode(text)
#endif

0 comments on commit 17279b3

Please sign in to comment.