From 523a46f844ab6855b6888984c3f7a40a13900d74 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 1 Sep 1999 18:09:57 +0000 Subject: Added call to GNOME_COMPILE_WARNINGS. 1999-09-01 Miguel de Icaza * configure.in: Added call to GNOME_COMPILE_WARNINGS. * libversit: Removed all the rest of the C++ comments from C sources (per David's suggestion). 1999-09-01 David Kaelbling * card.c (strtoCardRev): Off by one error fix. svn path=/trunk/; revision=1153 --- libversit/vobject.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libversit/vobject.c') diff --git a/libversit/vobject.c b/libversit/vobject.c index 74ac4fadfb..cd223dcce8 100644 --- a/libversit/vobject.c +++ b/libversit/vobject.c @@ -590,7 +590,7 @@ DLLEXPORT(void) cleanVObject(VObject *o) case VCVT_USTRINGZ: case VCVT_STRINGZ: case VCVT_RAW: - // assume they are all allocated by malloc. + /* assume they are all allocated by malloc. */ free((char*)STRINGZ_VALUE_OF(o)); break; case VCVT_VOBJECT: @@ -1119,26 +1119,26 @@ static int writeBase64(OFile *fp, unsigned char *s, long len) quad[4] = 0; while (cur < len) { - // collect the triplet of bytes into 'trip' + /* collect the triplet of bytes into 'trip' */ trip = 0; for (i = 0; i < 3; i++) { b = (cur < len) ? *(s + cur) : 0; cur++; trip = trip << 8 | b; } - // fill in 'quad' with the appropriate four characters + /* fill in 'quad' with the appropriate four characters */ for (i = 3; i >= 0; i--) { b = (unsigned char)(trip & 0x3F); trip = trip >> 6; if ((3 - i) < (cur - len)) - quad[i] = '='; // pad char + quad[i] = '='; /* pad char */ else if (b < 26) quad[i] = (char)b + 'A'; else if (b < 52) quad[i] = (char)(b - 26) + 'a'; else if (b < 62) quad[i] = (char)(b - 52) + '0'; else if (b == 62) quad[i] = '+'; else quad[i] = '/'; } - // now output 'quad' with appropriate whitespace and line ending + /* now output 'quad' with appropriate whitespace and line ending */ appendsOFile(fp, (numQuads == 0 ? " " : "")); appendsOFile(fp, quad); appendsOFile(fp, ((cur >= len)?"\n" :(numQuads==MAXQUADS-1?"\n" : ""))); @@ -1425,4 +1425,4 @@ DLLEXPORT(char*) fakeCString(const wchar_t *u) return s; } -// end of source file vobject.c +/* end of source file vobject.c */ -- cgit v1.2.3