diff options
author | Miguel de Icaza <miguel@gnu.org> | 1999-09-02 02:09:57 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-09-02 02:09:57 +0800 |
commit | 523a46f844ab6855b6888984c3f7a40a13900d74 (patch) | |
tree | f14799480820b6ca3ccb7eb5a663e81bfc3d6c5b | |
parent | 4ed34315759b8bb3b701133bcb704b5a4891100c (diff) | |
download | gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar.gz gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar.bz2 gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar.lz gsoc2013-evolution-523a46f844ab6855b6888984c3f7a40a13900d74.tar.xz 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
-rw-r--r-- | calendar/Makefile.am | 2 | ||||
-rw-r--r-- | calendar/gui/Makefile.am | 2 | ||||
-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 |
9 files changed, 28 insertions, 32 deletions
diff --git a/calendar/Makefile.am b/calendar/Makefile.am index 0796c6b142..5d2aba31b3 100644 --- a/calendar/Makefile.am +++ b/calendar/Makefile.am @@ -8,8 +8,6 @@ gnorba_DATA = gnomecal.gnorba help_base = $(datadir)/gnome/help/cal -CFLAGS += -Wall -Wunused -Wpointer-arith -Wmissing-declarations - INCLUDES = \ -I$(includedir) \ $(GNOME_INCLUDEDIR) \ diff --git a/calendar/gui/Makefile.am b/calendar/gui/Makefile.am index 0796c6b142..5d2aba31b3 100644 --- a/calendar/gui/Makefile.am +++ b/calendar/gui/Makefile.am @@ -8,8 +8,6 @@ gnorba_DATA = gnomecal.gnorba help_base = $(datadir)/gnome/help/cal -CFLAGS += -Wall -Wunused -Wpointer-arith -Wmissing-declarations - INCLUDES = \ -I$(includedir) \ $(GNOME_INCLUDEDIR) \ 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 */ |