From: Oliver Schmidt
Date: Thu, 6 Apr 2017 15:53:57 +0000 (+0200)
Subject: Just some white space fixes of recently contributed code.
X-Git-Tag: V2.17~150
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e43dbe1c24a14416b8a2802af17ecd237deef25d;p=cc65
Just some white space fixes of recently contributed code.
---
diff --git a/libsrc/common/strcat.s b/libsrc/common/strcat.s
index 7dce2f78a..f9cd94633 100644
--- a/libsrc/common/strcat.s
+++ b/libsrc/common/strcat.s
@@ -21,7 +21,7 @@ _strcat:
.else
lda #0
sta ptr2 ; access from page start, y contains low byte
-.endif
+.endif
stx ptr2+1
findEndOfDest:
@@ -33,7 +33,7 @@ findEndOfDest:
bne findEndOfDest
endOfDestFound:
- sty ptr2 ; advance pointer to last y position
+ sty ptr2 ; advance pointer to last y position
ldy #0 ; reset new y-offset
copyByte:
diff --git a/libsrc/common/strchr.s b/libsrc/common/strchr.s
index 15c743776..206b5160e 100644
--- a/libsrc/common/strchr.s
+++ b/libsrc/common/strchr.s
@@ -20,7 +20,7 @@ _strchr:
.else
lda #0
sta ptr1 ; access from page start, y contains low byte
-.endif
+.endif
Loop: lda (ptr1),y ; Get next char
beq EOS ; Jump on end of string
@@ -29,7 +29,7 @@ Loop: lda (ptr1),y ; Get next char
iny
bne Loop
inc ptr1+1
- bne Loop ; Branch always
+ bne Loop ; Branch always
; End of string. Check if we're searching for the terminating zero
diff --git a/libsrc/common/strcspn.s b/libsrc/common/strcspn.s
index 3f7b42ed1..c9122dc90 100644
--- a/libsrc/common/strcspn.s
+++ b/libsrc/common/strcspn.s
@@ -40,7 +40,7 @@ checkNext:
check: cpy tmp1 ; compare with length of test character string
beq endOfTestChars
cmp (ptr1),y ; found matching char?
- bne checkNext
+ bne checkNext
leave: txa ; restore position of finding
ldx tmp2 ; and return
@@ -50,5 +50,4 @@ endOfTestChars:
inx
bne loadChar
inc tmp2
- bne loadChar ; like bra...
-
+ bne loadChar ; like bra...
diff --git a/libsrc/common/strncat.s b/libsrc/common/strncat.s
index e0fa39cc0..457e39e25 100644
--- a/libsrc/common/strncat.s
+++ b/libsrc/common/strncat.s
@@ -71,5 +71,3 @@ L6: lda #0
L7: lda ptr3
ldx ptr3+1
rts
-
-
diff --git a/libsrc/common/strspn.s b/libsrc/common/strspn.s
index 3316f0dab..079b935ee 100644
--- a/libsrc/common/strspn.s
+++ b/libsrc/common/strspn.s
@@ -40,15 +40,14 @@ checkNext:
check: cpy tmp1 ; compare with length of test character string
beq leave
cmp (ptr1),y ; found matching char?
- bne checkNext
+ bne checkNext
foundTestChar:
inx
bne loadChar
inc tmp2
- bne loadChar ; like bra...
+ bne loadChar ; like bra...
leave: txa ; restore position of finding
ldx tmp2 ; and return
rts
-
\ No newline at end of file