Skip to content

Commit 3f39d18

Browse files
committed
all: Add *FORMAT-OFF* in various places.
This string is recognised by uncrustify, to disable formatting in the region marked by these comments. This is necessary in the qstrdef*.h files to prevent modification of the strings within the Q(...). In other places it is used to prevent excessive reformatting that would make the code less readable.
1 parent b86075e commit 3f39d18

24 files changed

+43
-0
lines changed

ports/bare-arm/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// qstrs specific to this port
2+
// *FORMAT-OFF*

ports/cc3200/qstrdefsport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* THE SOFTWARE.
2626
*/
2727

28+
// *FORMAT-OFF*
29+
2830
// for machine module
2931
Q(/)
3032
// entries for sys.path

ports/esp32/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
// qstrs specific to this port, only needed if they aren't auto-generated
28+
// *FORMAT-OFF*
2829

2930
// Entries for sys.path
3031
Q(/lib)

ports/esp8266/hspi_register.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* names of these defines are likely to change.
99
*/
1010

11+
// *FORMAT-OFF*
12+
1113
#ifndef SPI_REGISTER_H_INCLUDED
1214
#define SPI_REGISTER_H_INCLUDED
1315

ports/esp8266/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
// qstrs specific to this port, only needed if they aren't auto-generated
28+
// *FORMAT-OFF*
2829

2930
// Entries for sys.path
3031
Q(/)

ports/javascript/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// qstrs specific to this port
2+
// *FORMAT-OFF*

ports/minimal/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// qstrs specific to this port
2+
// *FORMAT-OFF*

ports/nrf/qstrdefsport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
*/
2626

2727
// qstrs specific to this port
28+
// *FORMAT-OFF*
29+
2830
Q(a)
2931
Q(a#)
3032
Q(a#:1)

ports/pic16bit/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// qstrs specific to this port
2+
// *FORMAT-OFF*

ports/powerpc/qstrdefsport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// qstrs specific to this port
2+
// *FORMAT-OFF*

0 commit comments

Comments
 (0)