diff options
| author | stijn | 2020-04-16 09:13:57 +0200 |
|---|---|---|
| committer | Damien George | 2020-04-23 11:24:25 +1000 |
| commit | 84fa3312cfa7d2237d4b56952f2cd6e3591210c4 (patch) | |
| tree | dc2b3e67bad9969fc5792ca0822798d58addf174 /ports/windows | |
| parent | d6243568a05d423b58522435c3779975acbf56dd (diff) | |
all: Format code to add space after C++-style comment start.
Note: the uncrustify configuration is explicitly set to 'add' instead of
'force' in order not to alter the comments which use extra spaces after //
as a means of indenting text for clarity.
Diffstat (limited to 'ports/windows')
| -rw-r--r-- | ports/windows/mpconfigport.h | 8 | ||||
| -rw-r--r-- | ports/windows/windows_mphal.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ports/windows/mpconfigport.h b/ports/windows/mpconfigport.h index 057061a5b..84c196e11 100644 --- a/ports/windows/mpconfigport.h +++ b/ports/windows/mpconfigport.h @@ -31,7 +31,7 @@ #define MICROPY_USE_READLINE (1) #endif -#define MICROPY_ALLOC_PATH_MAX (260) //see minwindef.h for msvc or limits.h for mingw +#define MICROPY_ALLOC_PATH_MAX (260) // see minwindef.h for msvc or limits.h for mingw #define MICROPY_PERSISTENT_CODE_LOAD (1) #define MICROPY_EMIT_X64 (0) #define MICROPY_EMIT_THUMB (0) @@ -220,7 +220,7 @@ extern const struct _mp_obj_module_t mp_module_time; #define MP_NOINLINE __declspec(noinline) #define MP_LIKELY(x) (x) #define MP_UNLIKELY(x) (x) -#define MICROPY_PORT_CONSTANTS { "dummy", 0 } //can't have zero-sized array +#define MICROPY_PORT_CONSTANTS { "dummy", 0 } // can't have zero-sized array #ifdef _WIN64 #define MP_SSIZE_MAX _I64_MAX #else @@ -259,7 +259,7 @@ typedef mp_off_t off_t; // System headers (needed e.g. for nlr.h) -#include <stddef.h> //for NULL -#include <assert.h> //for assert +#include <stddef.h> // for NULL +#include <assert.h> // for assert #endif diff --git a/ports/windows/windows_mphal.c b/ports/windows/windows_mphal.c index e805e2ca8..8ed087358 100644 --- a/ports/windows/windows_mphal.c +++ b/ports/windows/windows_mphal.c @@ -150,7 +150,7 @@ STATIC item_t keyCodeMap[] = { {VK_HOME, "[H"}, {VK_END, "[F"}, {VK_DELETE, "[3~"}, - {0, ""} //sentinel + {0, ""} // sentinel }; // likewise, but with Ctrl key down @@ -159,7 +159,7 @@ STATIC item_t ctrlKeyCodeMap[] = { {VK_RIGHT, "f"}, {VK_DELETE, "d"}, {VK_BACK, "\x7F"}, - {0, ""} //sentinel + {0, ""} // sentinel }; STATIC const char *cur_esc_seq = NULL; |
