Skip to content

Commit 761e4c7

Browse files
committed
all: Remove trailing spaces, per coding conventions.
1 parent c972c60 commit 761e4c7

29 files changed

+52
-52
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*.dis
1010
*.exe
1111

12-
# Packages
12+
# Packages
1313
############
1414

1515
# Logs and Databases

CODECONVENTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ White space:
7373
keyword and the opening parenthesis.
7474
- Put 1 space after a comma, and 1 space around operators.
7575

76-
Braces:
76+
Braces:
7777
- Use braces for all blocks, even no-line and single-line pieces of
7878
code.
7979
- Put opening braces on the end of the line it belongs to, not on

bare-arm/stm32f405.ld

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ MEMORY
1111
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0x010000 /* 64 KiB */
1212
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x020000 /* 128 KiB */
1313
}
14-
14+
1515
/* top end of the stack */
1616
_estack = ORIGIN(RAM) + LENGTH(RAM);
1717

@@ -30,7 +30,7 @@ SECTIONS
3030

3131
. = ALIGN(4);
3232
} >FLASH_ISR
33-
33+
3434
/* The program code and other data goes into FLASH */
3535
.text :
3636
{
@@ -46,7 +46,7 @@ SECTIONS
4646
_etext = .; /* define a global symbol at end of code */
4747
_sidata = _etext; /* This is used by the startup in order to initialize the .data secion */
4848
} >FLASH_TEXT
49-
49+
5050
/*
5151
.ARM.extab :
5252
{
@@ -60,7 +60,7 @@ SECTIONS
6060
__exidx_end = .;
6161
} >FLASH
6262
*/
63-
63+
6464
/* This is the initialized data section
6565
The program executes knowing that the data is in the RAM
6666
but the loader puts the initial values in the FLASH (inidata).
@@ -76,7 +76,7 @@ SECTIONS
7676
. = ALIGN(4);
7777
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
7878
} >RAM
79-
79+
8080
/* Uninitialized data section */
8181
.bss :
8282
{

esp8266/hspi_register.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Modified by David Ogilvy (MetalPhreak)
44
* Based on original file included in SDK 1.0.0
55
*
6-
* Missing defines from previous SDK versions have
6+
* Missing defines from previous SDK versions have
77
* been added and are noted with comments. The
88
* names of these defines are likely to change.
99
*/

examples/embedding/Makefile.upylib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif
5656

5757
# On OSX, 'gcc' is a symlink to clang unless a real gcc is installed.
5858
# The unix port of micropython on OSX must be compiled with clang,
59-
# while cross-compile ports require gcc, so we test here for OSX and
59+
# while cross-compile ports require gcc, so we test here for OSX and
6060
# if necessary override the value of 'CC' set in py/mkenv.mk
6161
ifeq ($(UNAME_S),Darwin)
6262
CC = clang

extmod/modubinascii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mp_obj_t mod_binascii_a2b_base64(mp_obj_t data) {
118118
vstr_init_len(&vstr, 0);
119119
}
120120
else {
121-
vstr_init_len(&vstr, ((bufinfo.len / 4) * 3) - ((in[bufinfo.len-1] == '=') ? ((in[bufinfo.len-2] == '=') ? 2 : 1 ) : 0));
121+
vstr_init_len(&vstr, ((bufinfo.len / 4) * 3) - ((in[bufinfo.len-1] == '=') ? ((in[bufinfo.len-2] == '=') ? 2 : 1 ) : 0));
122122
}
123123
byte *out = (byte*)vstr.buf;
124124
for (mp_uint_t i = bufinfo.len; i; i -= 4) {

minimal/stm32f405.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MEMORY
99
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0x010000 /* 64 KiB */
1010
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x020000 /* 128 KiB */
1111
}
12-
12+
1313
/* top end of the stack */
1414
_estack = ORIGIN(RAM) + LENGTH(RAM);
1515

@@ -45,7 +45,7 @@ SECTIONS
4545
. = ALIGN(4);
4646
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
4747
} >RAM
48-
48+
4949
/* Uninitialized data section */
5050
.bss :
5151
{

mpy-cross/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ endif
4545

4646
# On OSX, 'gcc' is a symlink to clang unless a real gcc is installed.
4747
# The unix port of micropython on OSX must be compiled with clang,
48-
# while cross-compile ports require gcc, so we test here for OSX and
48+
# while cross-compile ports require gcc, so we test here for OSX and
4949
# if necessary override the value of 'CC' set in py/mkenv.mk
5050
ifeq ($(UNAME_S),Darwin)
5151
CC = clang

py/asmarm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ STATIC uint asm_arm_op_orr_reg(uint rd, uint rn, uint rm) {
135135

136136
void asm_arm_bkpt(asm_arm_t *as) {
137137
// bkpt #0
138-
emit_al(as, 0x1200070);
138+
emit_al(as, 0x1200070);
139139
}
140140

141141
// locals:

py/formatfloat.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
161161
if (fmt == 'g' && prec == 0) {
162162
prec = 1;
163163
}
164-
int e, e1;
164+
int e, e1;
165165
int dec = 0;
166166
char e_sign = '\0';
167167
int num_digits = 0;
@@ -209,7 +209,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
209209
e_sign_char = '+';
210210
}
211211
} else if (fp_isless1(f)) {
212-
e++;
212+
e++;
213213
f *= FPCONST(10.0);
214214
}
215215

@@ -232,7 +232,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
232232

233233
num_digits = prec;
234234
if (num_digits) {
235-
*s++ = '.';
235+
*s++ = '.';
236236
while (--e && num_digits) {
237237
*s++ = '0';
238238
num_digits--;
@@ -266,7 +266,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
266266
f *= FPCONST(0.1);
267267
}
268268

269-
// If the user specified fixed format (fmt == 'f') and e makes the
269+
// If the user specified fixed format (fmt == 'f') and e makes the
270270
// number too big to fit into the available buffer, then we'll
271271
// switch to the 'e' format.
272272

@@ -327,7 +327,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
327327
if (prec == 0) {
328328
prec = 1;
329329
}
330-
num_digits = prec;
330+
num_digits = prec;
331331
}
332332

333333
// Print the digits of the mantissa
@@ -365,7 +365,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
365365
if (rs == buf) {
366366
break;
367367
}
368-
rs--;
368+
rs--;
369369
}
370370
if (*rs == '0') {
371371
// We need to insert a 1
@@ -380,13 +380,13 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
380380
e_sign = '+';
381381
}
382382
} else {
383-
e++;
383+
e++;
384384
}
385385
} else {
386386
// Need at extra digit at the end to make room for the leading '1'
387387
s++;
388388
}
389-
char *ss = s;
389+
char *ss = s;
390390
while (ss > rs) {
391391
*ss = ss[-1];
392392
ss--;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy