Remove extra whitespace from files (#43)

* Remove multiple newlines at the end of file
* Remove the white space from the end of line
This commit is contained in:
Xiang Xiao 2020-01-31 06:13:45 -08:00 committed by Gregory Nutt
parent 3dbf8d5652
commit e0dcfa0c55
485 changed files with 42 additions and 545 deletions

1
.gitignore vendored
View File

@ -21,4 +21,3 @@ cscope.out
/boot_romfsimg.h /boot_romfsimg.h
/symtab_apps.c /symtab_apps.c
/*/*/.built /*/*/.built

View File

@ -37,4 +37,3 @@
ifeq ($(CONFIG_BUILTIN),y) ifeq ($(CONFIG_BUILTIN),y)
CONFIGURED_APPS += $(APPDIR)/builtin CONFIGURED_APPS += $(APPDIR)/builtin
endif endif

View File

@ -76,4 +76,3 @@ const int g_builtin_count = sizeof(g_builtins) / sizeof(g_builtins[0]);
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/

View File

@ -1,5 +1,3 @@
.updated .updated
*.pdat *.pdat
*.bdat *.bdat

1
canutils/.gitignore vendored
View File

@ -1,2 +1 @@
/Kconfig /Kconfig

View File

@ -81,4 +81,3 @@ int canlib_getsilent(int fd, FAR bool *silent)
return ret; return ret;
} }

1
examples/.gitignore vendored
View File

@ -1,2 +1 @@
/Kconfig /Kconfig

View File

@ -9,4 +9,3 @@
/*.adb /*.adb
/*.lib /*.lib
/*.src /*.src

View File

@ -28,4 +28,3 @@ config EXAMPLES_ABNTCODI_STACKSIZE
default 2048 default 2048
endif endif

View File

@ -37,4 +37,3 @@
ifneq ($(CONFIG_EXAMPLES_ABNTCODI),) ifneq ($(CONFIG_EXAMPLES_ABNTCODI),)
CONFIGURED_APPS += $(APPDIR)/examples/abntcodi CONFIGURED_APPS += $(APPDIR)/examples/abntcodi
endif endif

View File

@ -47,4 +47,3 @@ MODULE = $(CONFIG_EXAMPLES_ABNTCODI)
MAINSRC = abntcodi_main.c MAINSRC = abntcodi_main.c
include $(APPDIR)/Application.mk include $(APPDIR)/Application.mk

View File

@ -47,4 +47,3 @@ STACKSIZE = 2048
MODULE = $(CONFIG_EXAMPLES_AJOYSTICK) MODULE = $(CONFIG_EXAMPLES_AJOYSTICK)
include $(APPDIR)/Application.mk include $(APPDIR)/Application.mk

View File

@ -9,4 +9,3 @@
/*.adb /*.adb
/*.lib /*.lib
/*.src /*.src

View File

@ -35,4 +35,3 @@
FAR char *g_song = (FAR char *) 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"; "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";

View File

@ -5,4 +5,3 @@
50 print a(0) 50 print a(0)
60 print a(1) 60 print a(1)
70 print a 70 print a

View File

@ -3,4 +3,3 @@
30 print a 30 print a
40 a=a+1 40 a=a+1
50 until a=10 50 until a=10

View File

@ -5,4 +5,3 @@
110 gosub 200 110 gosub 200
120 return 120 return
200 print "hello, world":return 200 print "hello, world":return

View File

@ -9,4 +9,3 @@
90 =r 90 =r
100 n=10 100 n=10
110 print fnloop 110 print fnloop

View File

@ -2,4 +2,3 @@
20 if x=0 then r=1 else r=x*fna(x-1) 20 if x=0 then r=1 else r=x*fna(x-1)
30 =r 30 =r
40 print fna(7) 40 print fna(7)

View File

@ -7,4 +7,3 @@
80 read j$,k$ 80 read j$,k$
90 print "j=";j$;" k=";k$ 90 print "j=";j$;" k=";k$
100 next 100 next

View File

@ -6,4 +6,3 @@
70 print b 70 print b
80 print fna(4) 80 print fna(4)
90 print b 90 print b

View File

@ -28,4 +28,3 @@
280 print using "a!b";"S","T" 280 print using "a!b";"S","T"
290 print using "a!b!c";"S" 290 print using "a!b!c";"S"
300 print using "a!b!c";"S","T" 300 print using "a!b!c";"S","T"

View File

@ -3,4 +3,3 @@
30 line input #1,a$ 30 line input #1,a$
40 print a$ 40 print a$
50 wend 50 wend

View File

@ -7,4 +7,3 @@
70 end proc 70 end proc
80 procx 80 procx
90 print 1 mod 0 90 print 1 mod 0

View File

@ -19,4 +19,3 @@
190 end select 190 end select
200 next 200 next
210 next 210 next

View File

@ -15,4 +15,3 @@ get #2
print "after get b$=";b$ print "after get b$=";b$
close #2 close #2
kill "test.dat" kill "test.dat"

View File

@ -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) print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1)
swap a$(1,0),b$(0,1) swap a$(1,0),b$(0,1)
print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1) print "a$(1,0)=";a$(1,0);"b$(0,1)=";b$(0,1)

View File

@ -6,4 +6,3 @@ do
if i>10 then exit do if i>10 then exit do
loop loop
print "loop ended" print "loop ended"

View File

@ -10,4 +10,3 @@ do while len(x$)<3
loop loop
loop loop
print "loop ended" print "loop ended"

View File

@ -17,4 +17,3 @@ for x=1 to 3
print "2b" print "2b"
elseif x=3 then print "3b" elseif x=3 then print "3b"
next next

View File

@ -8,4 +8,3 @@
80 def procb 80 def procb
90 proca 90 proca
100 end proc 100 end proc

View File

@ -13,4 +13,3 @@ for i=0 to 3
next next
print print
next next

View File

@ -11,4 +11,3 @@ for j=1 to 2
print print
next next
mat print using " ##.##";a,a mat print using " ##.##";a,a

View File

@ -10,4 +10,3 @@ c$(2,1)="hi"
mat print c$ mat print c$
mat c$=c$+c$ mat c$=c$+c$
mat print c$ mat print c$

View File

@ -5,4 +5,3 @@
50 mat print b,c,a 50 mat print b,c,a
60 data 1,2,3,3,2,1 60 data 1,2,3,3,2,1
70 data 1,2,2,1,3,3 70 data 1,2,2,1,3,3

View File

@ -11,4 +11,3 @@
110 mat print inch_array 110 mat print inch_array
120 mat cm_array=(2.54)*inch_array 120 mat cm_array=(2.54)*inch_array
130 mat print cm_array 130 mat print cm_array

View File

@ -2,4 +2,3 @@ dim a(3,3)
data 5,5,5,8,8,8,3,3 data 5,5,5,8,8,8,3,3
mat read a(2,3) mat read a(2,3)
mat print a mat print a

View File

@ -5,4 +5,3 @@ mat b=inv(a)
mat print b mat print b
mat c=a*b mat c=a*b
mat print c mat print c

View File

@ -3,4 +3,3 @@ def fnfac(n)
fnend n*fnfac(n-1) fnend n*fnfac(n-1)
print fnfac(10) print fnfac(10)

View File

@ -4,4 +4,3 @@ print INSTR("1234512345","34");" = 3?"
print INSTR("1234512345","34",6);" = 8?" print INSTR("1234512345","34",6);" = 8?"
print INSTR("1234512345","34",6,2);" = 0?" print INSTR("1234512345","34",6,2);" = 0?"
print INSTR("1234512345","34",6,4);" = 8?" print INSTR("1234512345","34",6,4);" = 8?"

View File

@ -1,2 +1 @@
print 1+"a" print 1+"a"

View File

@ -4,4 +4,3 @@
40 for j=i to 1 step -1 : x=x*10 : y=y*10 : next 40 for j=i to 1 step -1 : x=x*10 : y=y*10 : next
50 print x,y 50 print x,y
60 next 60 next

View File

@ -5,4 +5,3 @@ SUB PUTS(s$)
FOR i=1 to LEN(s$) : print mid$(s$,i,1); : NEXT FOR i=1 to LEN(s$) : print mid$(s$,i,1); : NEXT
PRINT PRINT
END SUB END SUB

View File

@ -14,4 +14,3 @@ print s$
print x print x
print n% print n%
kill "/tmp/test.out" kill "/tmp/test.out"

View File

@ -15,4 +15,3 @@ print a(3,3)
print a(3,5) print a(3,5)
print b(-2,-2) print b(-2,-2)
print b(-1,2) print b(-1,2)

View File

@ -6,4 +6,3 @@ a%=-0.2
print a% print a%
a%=-0.7 a%=-0.7
print a% print a%

View File

@ -5,4 +5,3 @@ print "open succeeded"
if command$<>"enough" then shell "sh ./test/runbas test.bas enough" if command$<>"enough" then shell "sh ./test/runbas test.bas enough"
end end
10 print "open failed" 10 print "open failed"

View File

@ -3,4 +3,3 @@
30 line input #1,a$ 30 line input #1,a$
40 if a$="abc" then print a$; else print "def" 40 if a$="abc" then print a$; else print "def"
50 wend 50 wend

View File

@ -6,4 +6,3 @@ mat print x
mat redim x(12) mat redim x(12)
mat print x mat print x
data 1,2,3,4,5,6,7,8,9,10 data 1,2,3,4,5,6,7,8,9,10

View File

@ -9,4 +9,3 @@ def fn_c(b)
= b+3 = b+3
proc_a(2) proc_a(2)

View File

@ -2,4 +2,3 @@
print using "#.#";d print using "#.#";d
print using 10;d print using 10;d
10 image #.## 10 image #.##

View File

@ -6,4 +6,3 @@ end function
print f(0) print f(0)
print f(1) print f(1)

View File

@ -6,4 +6,3 @@
60 print fix(2.3) 60 print fix(2.3)
70 print fp(-2.3) 70 print fp(-2.3)
80 print fp(2.3) 80 print fp(2.3)

View File

@ -13,4 +13,3 @@ MAT READ a
MAT READ b MAT READ b
MAT c=a*b MAT c=a*b
MAT PRINT c MAT PRINT c

View File

@ -5,4 +5,3 @@
50 print 50 50 print 50
60 print 60 60 print 60
70 print 70 70 print 70

View File

@ -6,4 +6,3 @@
60 a$="0123456789" 60 a$="0123456789"
70 let mid$(a$,6,4) = "ABCD" 70 let mid$(a$,6,4) = "ABCD"
80 print a$ 80 print a$

View File

@ -1,2 +1 @@
for i=1 to 10:print i;:next i:end for i=1 to 10:print i;:next i:end

View File

@ -7,4 +7,3 @@ for i=0 to 3
print print
next next
mat write a mat write a

View File

@ -5,4 +5,3 @@ a,c(a) = 2
print a,c(2),c(10) print a,c(2),c(10)
a$,b$="test" a$,b$="test"
print a$,b$ print a$,b$

View File

@ -13,4 +13,3 @@ data 66,72,71,38,40,27,69
mat b=inv(a) mat b=inv(a)
mat print b mat print b
print det print det

View File

@ -6,4 +6,3 @@ print max(1,2)
print max(2,1) print max(2,1)
print max(-0.3,0.3) print max(-0.3,0.3)
print max(-0.3,4) print max(-0.3,4)

View File

@ -1,2 +1 @@
PRINT "Line 1";TAB(78);1.23456789 PRINT "Line 1";TAB(78);1.23456789

View File

@ -3,4 +3,3 @@ mat input a
mat print a mat print a
mat input a mat input a
mat print a mat print a

View File

@ -729,4 +729,3 @@ int main(int argc, FAR char *argv[])
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -255,4 +255,3 @@ errout_with_sendsd:
close(sndsd); close(sndsd);
return EXIT_FAILURE; return EXIT_FAILURE;
} }

View File

@ -48,4 +48,3 @@ config EXAMPLES_CAN_READWRITE
endchoice endchoice
endif endif

View File

@ -10,4 +10,3 @@
/*.lib /*.lib
/*.src /*.src
/cromfs.c /cromfs.c

View File

@ -28,4 +28,3 @@ config EXAMPLES_DHCPD_NETMASK
default 0xffffff00 default 0xffffff00
endif endif

View File

@ -57,5 +57,3 @@ $(BIN): $(OBJS)
clean: clean:
@rm -f $(BIN).* *.o1 *~ @rm -f $(BIN).* *.o1 *~

View File

@ -186,4 +186,3 @@ int main(int argc, FAR char *argv[])
return OK; return OK;
} }

View File

@ -151,4 +151,3 @@ config EXAMPLES_ELF_UCLIBCXX
example will compile the demos using it. example will compile the demos using it.
endif endif

View File

@ -6,4 +6,3 @@
/dirlist.h /dirlist.h
/symtab.c /symtab.c
/varlist.tmp /varlist.tmp

View File

@ -1,2 +1 @@
errno errno

View File

@ -1,2 +1 @@
hello hello

View File

@ -1,2 +1 @@
longjmp longjmp

View File

@ -129,4 +129,3 @@ int main(int argc, char **argv)
return 0; return 0;
} }
} }

View File

@ -31,5 +31,3 @@ echo " NULL"
echo "};" echo "};"
echo "" echo ""
echo "#endif /* __EXAMPLES_ELF_TESTS_DIRLIST_H */" echo "#endif /* __EXAMPLES_ELF_TESTS_DIRLIST_H */"

View File

@ -48,4 +48,3 @@ done
echo "};" echo "};"
echo "" echo ""
echo "const int g_elf_nexports = sizeof(g_elf_exports) / sizeof(struct symtab_s);" echo "const int g_elf_nexports = sizeof(g_elf_exports) / sizeof(struct symtab_s);"

View File

@ -1,2 +1 @@
mutex mutex

View File

@ -1,2 +1 @@
pthread pthread

View File

@ -1,2 +1 @@
signal signal

View File

@ -1,2 +1 @@
struct struct

View File

@ -85,5 +85,3 @@ extern void dummyfunc(void);
extern const struct struct_s *getstruct(void); extern const struct struct_s *getstruct(void);
#endif /* __EXAMPLES_ELF_TESTS_STRUCT_STRUCT_H */ #endif /* __EXAMPLES_ELF_TESTS_STRUCT_STRUCT_H */

View File

@ -62,4 +62,3 @@ const struct struct_s *getstruct(void)
{ {
return &dummy; return &dummy;
} }

View File

@ -105,5 +105,3 @@ void dummyfunc(void)
{ {
printf("In dummyfunc() -- PASS\n"); printf("In dummyfunc() -- PASS\n");
} }

View File

@ -1,2 +1 @@
task task

View File

@ -140,4 +140,3 @@ int main(int argc, char **argv)
sem_destroy(&g_sem); sem_destroy(&g_sem);
return 0; return 0;
} }

View File

@ -40,4 +40,3 @@ config EXAMPLES_EMBEDLOG_STACKSIZE
endif #EXAMPLES_EMBEDLOG endif #EXAMPLES_EMBEDLOG
endif #SYSTEM_EMBEDLOG endif #SYSTEM_EMBEDLOG

View File

@ -9,4 +9,3 @@
/*.adb /*.adb
/*.lib /*.lib
/*.src /*.src

View File

@ -28,4 +28,3 @@ config EXAMPLES_GPS_STACKSIZE
default 2048 default 2048
endif endif

View File

@ -37,4 +37,3 @@
ifneq ($(CONFIG_EXAMPLES_GPS),) ifneq ($(CONFIG_EXAMPLES_GPS),)
CONFIGURED_APPS += $(APPDIR)/examples/gps CONFIGURED_APPS += $(APPDIR)/examples/gps
endif endif

View File

@ -47,4 +47,3 @@ MODULE = $(CONFIG_EXAMPLES_GPS)
MAINSRC = gps_main.c MAINSRC = gps_main.c
include $(APPDIR)/Application.mk include $(APPDIR)/Application.mk

View File

@ -150,4 +150,3 @@ int main(int argc, FAR char *argv[])
return 0; return 0;
} }

View File

@ -30,4 +30,3 @@ config EXAMPLES_INI_DUMPER_STACKSIZE
endif #EXAMPLES_INI_DUMPER endif #EXAMPLES_INI_DUMPER
endif #SYSTEM_INI_DUMPER endif #SYSTEM_INI_DUMPER

View File

@ -3,4 +3,3 @@
/cromfs.h /cromfs.h
/romfs.img /romfs.img
/mod_symtab.c /mod_symtab.c

View File

@ -1,2 +1 @@
/chardev /chardev

View File

@ -48,4 +48,3 @@ done
echo "};" echo "};"
echo "" echo ""
echo "const int g_mod_nexports = sizeof(g_mod_exports) / sizeof(struct symtab_s);" echo "const int g_mod_nexports = sizeof(g_mod_exports) / sizeof(struct symtab_s);"

View File

@ -550,4 +550,3 @@ int main(int argc, FAR char *argv[])
fflush(stdout); fflush(stdout);
return 0; return 0;
} }

View File

@ -189,4 +189,3 @@ void nettest_initialize(void)
} }
#endif /* CONFIG_EXAMPLES_NETTEST_INIT */ #endif /* CONFIG_EXAMPLES_NETTEST_INIT */

View File

@ -47,4 +47,3 @@ STACKSIZE = 2048
MODULE = $(CONFIG_EXAMPLES_NUNCHUCK) MODULE = $(CONFIG_EXAMPLES_NUNCHUCK)
include $(APPDIR)/Application.mk include $(APPDIR)/Application.mk

Some files were not shown because too many files have changed in this diff Show More