Skip to content

Commit

Permalink
Remove extra whitespace from files (#43)
Browse files Browse the repository at this point in the history
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
  • Loading branch information
xiaoxiang781216 authored and gregory-nutt committed Jan 31, 2020
1 parent 3dbf8d5 commit e0dcfa0
Show file tree
Hide file tree
Showing 485 changed files with 42 additions and 545 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ cscope.out
/boot_romfsimg.h
/symtab_apps.c
/*/*/.built

2 changes: 1 addition & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4453,7 +4453,7 @@
path. From Xiang Xiao (2019-10-17).
* apps/: Move the common variable definitions from other build-related files into
apps/Make.defs. From Xiang Xiao (2019-10-17).
* In all Make.defs files, append CONFIGURED_APPS with the consistent ifeq/ifneq.
* In all Make.defs files, append CONFIGURED_APPS with the consistent ifeq/ifneq.
From Xiang Xiao (2019-10-17).
* graphics/twm4nx/Makefile: Fix a recently introduced error that broke all Twm4Nx
configurations. From Gregory Nutt (2019-10-17).
Expand Down
1 change: 0 additions & 1 deletion builtin/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@
ifeq ($(CONFIG_BUILTIN),y)
CONFIGURED_APPS += $(APPDIR)/builtin
endif

1 change: 0 additions & 1 deletion builtin/builtin_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ const int g_builtin_count = sizeof(g_builtins) / sizeof(g_builtins[0]);
/****************************************************************************
* Public Functions
****************************************************************************/

2 changes: 0 additions & 2 deletions builtin/registry/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.updated
*.pdat
*.bdat


1 change: 0 additions & 1 deletion canutils/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/Kconfig

1 change: 0 additions & 1 deletion canutils/canlib/canlib_getsilent.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ int canlib_getsilent(int fd, FAR bool *silent)

return ret;
}

1 change: 0 additions & 1 deletion examples/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/Kconfig

1 change: 0 additions & 1 deletion examples/abntcodi/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
/*.adb
/*.lib
/*.src

1 change: 0 additions & 1 deletion examples/abntcodi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ config EXAMPLES_ABNTCODI_STACKSIZE
default 2048

endif

1 change: 0 additions & 1 deletion examples/abntcodi/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@
ifneq ($(CONFIG_EXAMPLES_ABNTCODI),)
CONFIGURED_APPS += $(APPDIR)/examples/abntcodi
endif

1 change: 0 additions & 1 deletion examples/abntcodi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ MODULE = $(CONFIG_EXAMPLES_ABNTCODI)
MAINSRC = abntcodi_main.c

include $(APPDIR)/Application.mk

1 change: 0 additions & 1 deletion examples/ajoystick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ STACKSIZE = 2048
MODULE = $(CONFIG_EXAMPLES_AJOYSTICK)

include $(APPDIR)/Application.mk

1 change: 0 additions & 1 deletion examples/audio_rttl/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
/*.adb
/*.lib
/*.src

1 change: 0 additions & 1 deletion examples/audio_rttl/audio_rttl.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@

FAR char *g_song = (FAR char *)
"Test:d=4,o=6,b=90:c,c#,d,d#,e,f,f#,g,a,a#,b,p,b,a#,a,g,f#,f,e,d#,d,c#,c";

1 change: 0 additions & 1 deletion examples/bastest/tests/test02.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
50 print a(0)
60 print a(1)
70 print a

1 change: 0 additions & 1 deletion examples/bastest/tests/test04.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
30 print a
40 a=a+1
50 until a=10

1 change: 0 additions & 1 deletion examples/bastest/tests/test05.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
110 gosub 200
120 return
200 print "hello, world":return

1 change: 0 additions & 1 deletion examples/bastest/tests/test06.bas
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
90 =r
100 n=10
110 print fnloop

1 change: 0 additions & 1 deletion examples/bastest/tests/test07.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
20 if x=0 then r=1 else r=x*fna(x-1)
30 =r
40 print fna(7)

1 change: 0 additions & 1 deletion examples/bastest/tests/test08.bas
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
80 read j$,k$
90 print "j=";j$;" k=";k$
100 next

1 change: 0 additions & 1 deletion examples/bastest/tests/test09.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
70 print b
80 print fna(4)
90 print b

1 change: 0 additions & 1 deletion examples/bastest/tests/test10.bas
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@
280 print using "a!b";"S","T"
290 print using "a!b!c";"S"
300 print using "a!b!c";"S","T"

1 change: 0 additions & 1 deletion examples/bastest/tests/test11.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
30 line input #1,a$
40 print a$
50 wend

1 change: 0 additions & 1 deletion examples/bastest/tests/test12.bas
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
70 end proc
80 procx
90 print 1 mod 0

1 change: 0 additions & 1 deletion examples/bastest/tests/test14.bas
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
190 end select
200 next
210 next

1 change: 0 additions & 1 deletion examples/bastest/tests/test15.bas
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ get #2
print "after get b$=";b$
close #2
kill "test.dat"

1 change: 0 additions & 1 deletion examples/bastest/tests/test16.bas
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ a$(1,0)="a" : b$(0,1)="b"
print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1)
swap a$(1,0),b$(0,1)
print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1)

1 change: 0 additions & 1 deletion examples/bastest/tests/test17.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ do
if i>10 then exit do
loop
print "loop ended"

1 change: 0 additions & 1 deletion examples/bastest/tests/test18.bas
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ do while len(x$)<3
loop
loop
print "loop ended"

1 change: 0 additions & 1 deletion examples/bastest/tests/test19.bas
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ for x=1 to 3
print "2b"
elseif x=3 then print "3b"
next

1 change: 0 additions & 1 deletion examples/bastest/tests/test20.bas
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
80 def procb
90 proca
100 end proc

1 change: 0 additions & 1 deletion examples/bastest/tests/test21.bas
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ for i=0 to 3
next
print
next

1 change: 0 additions & 1 deletion examples/bastest/tests/test22.bas
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ for j=1 to 2
print
next
mat print using " ##.##";a,a

1 change: 0 additions & 1 deletion examples/bastest/tests/test23.bas
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ c$(2,1)="hi"
mat print c$
mat c$=c$+c$
mat print c$

1 change: 0 additions & 1 deletion examples/bastest/tests/test24.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
50 mat print b,c,a
60 data 1,2,3,3,2,1
70 data 1,2,2,1,3,3

1 change: 0 additions & 1 deletion examples/bastest/tests/test25.bas
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
110 mat print inch_array
120 mat cm_array=(2.54)*inch_array
130 mat print cm_array

1 change: 0 additions & 1 deletion examples/bastest/tests/test26.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ dim a(3,3)
data 5,5,5,8,8,8,3,3
mat read a(2,3)
mat print a

1 change: 0 additions & 1 deletion examples/bastest/tests/test27.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ mat b=inv(a)
mat print b
mat c=a*b
mat print c

1 change: 0 additions & 1 deletion examples/bastest/tests/test28.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ def fnfac(n)
fnend n*fnfac(n-1)

print fnfac(10)

1 change: 0 additions & 1 deletion examples/bastest/tests/test29.bas
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ print INSTR("1234512345","34");" = 3?"
print INSTR("1234512345","34",6);" = 8?"
print INSTR("1234512345","34",6,2);" = 0?"
print INSTR("1234512345","34",6,4);" = 8?"

1 change: 0 additions & 1 deletion examples/bastest/tests/test30.bas
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
print 1+"a"

1 change: 0 additions & 1 deletion examples/bastest/tests/test31.bas
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
40 for j=i to 1 step -1 : x=x*10 : y=y*10 : next
50 print x,y
60 next

1 change: 0 additions & 1 deletion examples/bastest/tests/test32.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ SUB PUTS(s$)
FOR i=1 to LEN(s$) : print mid$(s$,i,1); : NEXT
PRINT
END SUB

1 change: 0 additions & 1 deletion examples/bastest/tests/test33.bas
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ print s$
print x
print n%
kill "/tmp/test.out"

1 change: 0 additions & 1 deletion examples/bastest/tests/test34.bas
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ print a(3,3)
print a(3,5)
print b(-2,-2)
print b(-1,2)

1 change: 0 additions & 1 deletion examples/bastest/tests/test35.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ a%=-0.2
print a%
a%=-0.7
print a%

1 change: 0 additions & 1 deletion examples/bastest/tests/test36.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ print "open succeeded"
if command$<>"enough" then shell "sh ./test/runbas test.bas enough"
end
10 print "open failed"

1 change: 0 additions & 1 deletion examples/bastest/tests/test37.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
30 line input #1,a$
40 if a$="abc" then print a$; else print "def"
50 wend

1 change: 0 additions & 1 deletion examples/bastest/tests/test38.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ mat print x
mat redim x(12)
mat print x
data 1,2,3,4,5,6,7,8,9,10

1 change: 0 additions & 1 deletion examples/bastest/tests/test39.bas
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ def fn_c(b)
= b+3

proc_a(2)

1 change: 0 additions & 1 deletion examples/bastest/tests/test40.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
print using "#.#";d
print using 10;d
10 image #.##

1 change: 0 additions & 1 deletion examples/bastest/tests/test41.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ end function

print f(0)
print f(1)

1 change: 0 additions & 1 deletion examples/bastest/tests/test42.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
60 print fix(2.3)
70 print fp(-2.3)
80 print fp(2.3)

1 change: 0 additions & 1 deletion examples/bastest/tests/test43.bas
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ MAT READ a
MAT READ b
MAT c=a*b
MAT PRINT c

1 change: 0 additions & 1 deletion examples/bastest/tests/test44.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
50 print 50
60 print 60
70 print 70

1 change: 0 additions & 1 deletion examples/bastest/tests/test45.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
60 a$="0123456789"
70 let mid$(a$,6,4) = "ABCD"
80 print a$

1 change: 0 additions & 1 deletion examples/bastest/tests/test46.bas
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
for i=1 to 10:print i;:next i:end

1 change: 0 additions & 1 deletion examples/bastest/tests/test47.bas
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ for i=0 to 3
print
next
mat write a

1 change: 0 additions & 1 deletion examples/bastest/tests/test48.bas
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ a,c(a) = 2
print a,c(2),c(10)
a$,b$="test"
print a$,b$

1 change: 0 additions & 1 deletion examples/bastest/tests/test49.bas
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ data 66,72,71,38,40,27,69
mat b=inv(a)
mat print b
print det

1 change: 0 additions & 1 deletion examples/bastest/tests/test50.bas
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ print max(1,2)
print max(2,1)
print max(-0.3,0.3)
print max(-0.3,4)

1 change: 0 additions & 1 deletion examples/bastest/tests/test51.bas
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
PRINT "Line 1";TAB(78);1.23456789

1 change: 0 additions & 1 deletion examples/bastest/tests/test52.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ mat input a
mat print a
mat input a
mat print a

1 change: 0 additions & 1 deletion examples/bridge/bridge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,4 +729,3 @@ int main(int argc, FAR char *argv[])

return EXIT_SUCCESS;
}

1 change: 0 additions & 1 deletion examples/bridge/host_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,3 @@ int main(int argc, char *argv[])
close(sndsd);
return EXIT_FAILURE;
}

1 change: 0 additions & 1 deletion examples/can/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ config EXAMPLES_CAN_READWRITE
endchoice

endif

1 change: 0 additions & 1 deletion examples/cromfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
/*.lib
/*.src
/cromfs.c

1 change: 0 additions & 1 deletion examples/dhcpd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ config EXAMPLES_DHCPD_NETMASK
default 0xffffff00

endif

2 changes: 0 additions & 2 deletions examples/dhcpd/Makefile.host
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,3 @@ $(BIN): $(OBJS)

clean:
@rm -f $(BIN).* *.o1 *~


2 changes: 1 addition & 1 deletion examples/dhtxx/dhtxx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int main(int argc, FAR char *argv[])
else
{
printf("Read successful.\n");
printf("Humidity = %2.2f %%, temperature = %2.2f C\n",
printf("Humidity = %2.2f %%, temperature = %2.2f C\n",
data.hum, data.temp);
}

Expand Down
1 change: 0 additions & 1 deletion examples/discover/discover_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,3 @@ int main(int argc, FAR char *argv[])

return OK;
}

1 change: 0 additions & 1 deletion examples/elf/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,3 @@ config EXAMPLES_ELF_UCLIBCXX
example will compile the demos using it.

endif

1 change: 0 additions & 1 deletion examples/elf/tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
/dirlist.h
/symtab.c
/varlist.tmp

1 change: 0 additions & 1 deletion examples/elf/tests/errno/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
errno

1 change: 0 additions & 1 deletion examples/elf/tests/hello/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
hello

1 change: 0 additions & 1 deletion examples/elf/tests/longjmp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
longjmp

1 change: 0 additions & 1 deletion examples/elf/tests/longjmp/longjmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,3 @@ int main(int argc, char **argv)
return 0;
}
}

2 changes: 0 additions & 2 deletions examples/elf/tests/mkdirlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ echo " NULL"
echo "};"
echo ""
echo "#endif /* __EXAMPLES_ELF_TESTS_DIRLIST_H */"


1 change: 0 additions & 1 deletion examples/elf/tests/mksymtab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ done
echo "};"
echo ""
echo "const int g_elf_nexports = sizeof(g_elf_exports) / sizeof(struct symtab_s);"

1 change: 0 additions & 1 deletion examples/elf/tests/mutex/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
mutex

Loading

0 comments on commit e0dcfa0

Please sign in to comment.