mirror of
https://github.com/cc65/cc65.git
synced 2025-02-05 20:31:53 +00:00
Fixed some sloopy StrBuf coding.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4347 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b19a29f80b
commit
58e8826da2
@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2002 Ullrich von Bassewitz */
|
/* (C) 2002-2009, Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@ -55,7 +55,7 @@
|
|||||||
static int ParseChar (StrBuf* B)
|
static int ParseChar (StrBuf* B)
|
||||||
/* Parse a character. Converts \n into EOL, etc. */
|
/* Parse a character. Converts \n into EOL, etc. */
|
||||||
{
|
{
|
||||||
unsigned I;
|
unsigned I;
|
||||||
unsigned Val;
|
unsigned Val;
|
||||||
int C;
|
int C;
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ int SB_GetString (StrBuf* B, StrBuf* S)
|
|||||||
char C;
|
char C;
|
||||||
|
|
||||||
/* Initialize S */
|
/* Initialize S */
|
||||||
*S = AUTO_STRBUF_INITIALIZER;
|
SB_Init (S);
|
||||||
if (SB_Peek (B) == '\"') {
|
if (SB_Peek (B) == '\"') {
|
||||||
|
|
||||||
/* String follows, be sure to concatenate strings */
|
/* String follows, be sure to concatenate strings */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user