aboutsummaryrefslogtreecommitdiffstats
path: root/libversit/vobject.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-09-02 02:09:57 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-09-02 02:09:57 +0800
commit523a46f844ab6855b6888984c3f7a40a13900d74 (patch)
treef14799480820b6ca3ccb7eb5a663e81bfc3d6c5b /libversit/vobject.c
parent4ed34315759b8bb3b701133bcb704b5a4891100c (diff)
downloadgsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar.gz
gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar.zst
gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.zip
Added call to GNOME_COMPILE_WARNINGS.
1999-09-01 Miguel de Icaza <miguel@gnu.org> * 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 <drk@sgi.com> * card.c (strtoCardRev): Off by one error fix. svn path=/trunk/; revision=1153
Diffstat (limited to 'libversit/vobject.c')
-rw-r--r--libversit/vobject.c12
1 files changed, 6 insertions, 6 deletions
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 */