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
/symtab_apps.c
/*/*/.built

View File

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

View File

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

View File

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

1
canutils/.gitignore vendored
View File

@ -1,2 +1 @@
/Kconfig

View File

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

1
examples/.gitignore vendored
View File

@ -1,2 +1 @@
/Kconfig

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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"

View File

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

View File

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

View File

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

View File

@ -15,4 +15,3 @@ get #2
print "after get b$=";b$
close #2
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)
swap a$(1,0),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
loop
print "loop ended"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

@ -11,4 +11,3 @@
110 mat print inch_array
120 mat cm_array=(2.54)*inch_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
mat read a(2,3)
mat print a

View File

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

View File

@ -3,4 +3,3 @@ def fnfac(n)
fnend n*fnfac(n-1)
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,2);" = 0?"
print INSTR("1234512345","34",6,4);" = 8?"

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,2 +1 @@
errno

View File

@ -1,2 +1 @@
hello

View File

@ -1,2 +1 @@
longjmp

View File

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

View File

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

View File

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

View File

@ -1,2 +1 @@
mutex

View File

@ -1,2 +1 @@
pthread

View File

@ -1,2 +1 @@
signal

View File

@ -1,2 +1 @@
struct

View File

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

View File

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

View File

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

View File

@ -1,2 +1 @@
task

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,2 +1 @@
/chardev

View File

@ -48,4 +48,3 @@ done
echo "};"
echo ""
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);
return 0;
}

View File

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

View File

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

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