diff options
Diffstat (limited to 'libversit')
-rw-r--r-- | libversit/Makefile.am | 2 | ||||
-rw-r--r-- | libversit/port.h | 18 | ||||
-rw-r--r-- | libversit/vcaltmp.c | 2 | ||||
-rw-r--r-- | libversit/vcc.c | 10 | ||||
-rw-r--r-- | libversit/vcc.y | 10 | ||||
-rw-r--r-- | libversit/vctest.c | 2 | ||||
-rw-r--r-- | libversit/vobject.c | 12 |
7 files changed, 28 insertions, 28 deletions
diff --git a/libversit/Makefile.am b/libversit/Makefile.am index 05de8da370..60aadedbdd 100644 --- a/libversit/Makefile.am +++ b/libversit/Makefile.am @@ -1,5 +1,5 @@ -lib_LIBRARIES = libversit.a +noinst_LIBRARIES = libversit.a libversit_a_SOURCES = \ vcc.y \ diff --git a/libversit/port.h b/libversit/port.h index 6dba3567fe..1768beebd8 100644 --- a/libversit/port.h +++ b/libversit/port.h @@ -44,15 +44,15 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. extern "C" { #endif -// some of these #defines are commented out because -// Visual C++ sets them on the compiler command line instead +/* some of these #defines are commented out because */ +/* Visual C++ sets them on the compiler command line instead */ -//#define _DEBUG -//#define WIN32 -//#define WIN16 -//#define _WINDOWS -//#define __MWERKS__ -//#define INCLUDEMFC +/* #define _DEBUG */ +/* #define WIN32 */ +/* #define WIN16 */ +/* #define _WINDOWS */ +/* #define __MWERKS__ */ +/* #define INCLUDEMFC */ #define vCardClipboardFormat "+//ISBN 1-887687-00-9::versit::PDI//vCard" #define vCalendarClipboardFormat "+//ISBN 1-887687-00-9::versit::PDI//vCalendar" @@ -85,4 +85,4 @@ For example: } #endif -#endif // __PORT_H__ +#endif /* __PORT_H__ */ diff --git a/libversit/vcaltmp.c b/libversit/vcaltmp.c index bd79e27975..ccb21a649a 100644 --- a/libversit/vcaltmp.c +++ b/libversit/vcaltmp.c @@ -334,4 +334,4 @@ void main() { #endif -// end of source file vcaltmp.c +/* end of source file vcaltmp.c */ diff --git a/libversit/vcc.c b/libversit/vcc.c index 49cbdf417a..1caadc3cb4 100644 --- a/libversit/vcc.c +++ b/libversit/vcc.c @@ -146,7 +146,7 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. #define YYDEBUG 0 /* 1 to compile in some debugging code */ #define MAXTOKEN 256 /* maximum token (line) length */ -#define YYSTACKSIZE 50 // ~unref ? +#define YYSTACKSIZE 50 /* ~unref ? */ #define MAXLEVEL 10 /* max # of nested objects parseable */ /* (includes outermost) */ @@ -1523,7 +1523,7 @@ static char* lexLookaheadWord() { int curgetptr = 0; lexSkipWhite(); lexClearToken(); - curgetptr = (int)lexBuf.getPtr; // remember! + curgetptr = (int)lexBuf.getPtr; /* remember! */ while (len < (MAX_LEX_LOOKAHEAD_0)) { c = lexGetc(); len++; @@ -1645,10 +1645,10 @@ void initLex(const char *inputstring, unsigned long inputlen, CFile *inputfile) void initLex(const char *inputstring, unsigned long inputlen, FILE *inputfile) #endif { - // initialize lex mode stack + /* initialize lex mode stack */ lexBuf.lexModeStack[lexBuf.lexModeStackTop=0] = L_NORMAL; - // iniatialize lex buffer. + /* iniatialize lex buffer. */ lexBuf.inputString = (char*) inputstring; lexBuf.inputLen = inputlen; lexBuf.curPos = 0; @@ -1712,7 +1712,7 @@ static char * lexGetDataFromBase64() } else { /* error condition */ if (bytes) free(bytes); else if (oldBytes) free(oldBytes); - // error recovery: skip until 2 adjacent newlines. + /* error recovery: skip until 2 adjacent newlines. */ DBG_(("db: invalid character 0x%x '%c'\n", c,c)); if (c != EOF) { c = lexGetc(); diff --git a/libversit/vcc.y b/libversit/vcc.y index 5c9a751913..7dde971f35 100644 --- a/libversit/vcc.y +++ b/libversit/vcc.y @@ -119,7 +119,7 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. #define YYDEBUG 0 /* 1 to compile in some debugging code */ #define MAXTOKEN 256 /* maximum token (line) length */ -#define YYSTACKSIZE 50 // ~unref ? +#define YYSTACKSIZE 50 /* ~unref ? */ #define MAXLEVEL 10 /* max # of nested objects parseable */ /* (includes outermost) */ @@ -669,7 +669,7 @@ static char* lexLookaheadWord() { int curgetptr = 0; lexSkipWhite(); lexClearToken(); - curgetptr = (int)lexBuf.getPtr; // remember! + curgetptr = (int)lexBuf.getPtr; /* remember! */ while (len < (MAX_LEX_LOOKAHEAD_0)) { c = lexGetc(); len++; @@ -791,10 +791,10 @@ void initLex(const char *inputstring, unsigned long inputlen, CFile *inputfile) void initLex(const char *inputstring, unsigned long inputlen, FILE *inputfile) #endif { - // initialize lex mode stack + /* initialize lex mode stack */ lexBuf.lexModeStack[lexBuf.lexModeStackTop=0] = L_NORMAL; - // iniatialize lex buffer. + /* iniatialize lex buffer. */ lexBuf.inputString = (char*) inputstring; lexBuf.inputLen = inputlen; lexBuf.curPos = 0; @@ -858,7 +858,7 @@ static char * lexGetDataFromBase64() } else { /* error condition */ if (bytes) free(bytes); else if (oldBytes) free(oldBytes); - // error recovery: skip until 2 adjacent newlines. + /* error recovery: skip until 2 adjacent newlines. */ DBG_(("db: invalid character 0x%x '%c'\n", c,c)); if (c != EOF) { c = lexGetc(); diff --git a/libversit/vctest.c b/libversit/vctest.c index b14e6c1b4e..7975d1e200 100644 --- a/libversit/vctest.c +++ b/libversit/vctest.c @@ -49,7 +49,7 @@ argv = foo; if (p) *p = 0; strcat(buf,".out"); fprintf(cfp,"reading text input from '%s'...\n", *argv); - //v = Parse_MIME_FromFile(fp); + /*v = Parse_MIME_FromFile(fp); */ v = Parse_MIME_FromFileName(*argv); writeVObjectToFile(buf,v); cleanVObject(v); 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 */ |