Enlightenment CVS committal Author : doursse Project : e17 Module : libs/embryo
Dir : e17/libs/embryo/src/bin Modified Files: embryo_cc_sc.h embryo_cc_sc1.c embryo_cc_sc4.c embryo_cc_sc6.c Log Message: fix gettimeofday on windows and add __UNUSED__ for unused parameters =================================================================== RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sc.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- embryo_cc_sc.h 13 Apr 2005 20:27:02 -0000 1.14 +++ embryo_cc_sc.h 11 Apr 2008 05:59:42 -0000 1.15 @@ -9,7 +9,7 @@ * Copyright J.E. Hendrix, 1982, 1983 * Copyright T. Riemersma, 1997-2003 * - * Version: $Id: embryo_cc_sc.h,v 1.14 2005/04/13 20:27:02 tsauerbeck Exp $ + * Version: $Id: embryo_cc_sc.h,v 1.15 2008/04/11 05:59:42 doursse Exp $ * * This software is provided "as-is", without any express or implied warranty. * In no event will the authors be held liable for any damages arising from @@ -29,12 +29,19 @@ */ #ifndef EMBRYO_CC_SC_H #define EMBRYO_CC_SC_H + #include <limits.h> #include <stdarg.h> #include <stdio.h> #include <setjmp.h> #include "embryo_cc_osdefs.h" #include "embryo_cc_amx.h" + +#if HAVE___ATTRIBUTE__ +#define __UNUSED__ __attribute__((unused)) +#else +#define __UNUSED__ +#endif /* Note: the "cell" and "ucell" types are defined in AMX.H */ =================================================================== RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sc1.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- embryo_cc_sc1.c 11 Apr 2008 05:29:33 -0000 1.39 +++ embryo_cc_sc1.c 11 Apr 2008 05:59:42 -0000 1.40 @@ -21,7 +21,7 @@ * must not be misrepresented as being the original software. * 3. This notice may not be removed or altered from any source * distribution. - * Version: $Id: embryo_cc_sc1.c,v 1.39 2008/04/11 05:29:33 doursse Exp $ + * Version: $Id: embryo_cc_sc1.c,v 1.40 2008/04/11 05:59:42 doursse Exp $ */ #ifdef HAVE_CONFIG_H @@ -116,7 +116,7 @@ static char binfname[_MAX_PATH]; /* binary file name */ int -main(int argc, char *argv[], char *env[]) +main(int argc, char *argv[], char *env[] __UNUSED__) { char argv0[_MAX_PATH]; int i; @@ -597,7 +597,7 @@ static void parseoptions(int argc, char **argv, char *iname, char *oname, - char *pname, char *rname) + char *pname __UNUSED__, char *rname __UNUSED__) { char str[PATH_MAX]; int i, stack_size; =================================================================== RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sc4.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- embryo_cc_sc4.c 13 Apr 2005 20:01:21 -0000 1.6 +++ embryo_cc_sc4.c 11 Apr 2008 05:59:42 -0000 1.7 @@ -18,7 +18,7 @@ * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * - * Version: $Id: embryo_cc_sc4.c,v 1.6 2005/04/13 20:01:21 tsauerbeck Exp $ + * Version: $Id: embryo_cc_sc4.c,v 1.7 2008/04/11 05:59:42 doursse Exp $ */ #ifdef HAVE_CONFIG_H @@ -215,7 +215,7 @@ * Global references: funcstatus (referred to only) */ void -startfunc(char *fname) +startfunc(char *fname __UNUSED__) { stgwrite("\tproc"); stgwrite("\n"); =================================================================== RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sc6.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- embryo_cc_sc6.c 4 Nov 2005 08:16:24 -0000 1.11 +++ embryo_cc_sc6.c 11 Apr 2008 05:59:42 -0000 1.12 @@ -18,7 +18,7 @@ * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * - * Version: $Id: embryo_cc_sc6.c,v 1.11 2005/11/04 08:16:24 sebastid Exp $ + * Version: $Id: embryo_cc_sc6.c,v 1.12 2008/04/11 05:59:42 doursse Exp $ */ #ifdef HAVE_CONFIG_H @@ -209,8 +209,9 @@ #if defined __BORLANDC__ || defined __WATCOMC__ #pragma argsused #endif + static cell -noop(FILE * fbin, char *params, cell opcode) +noop(FILE * fbin __UNUSED__, char *params __UNUSED__, cell opcode __UNUSED__) { return 0; } @@ -218,8 +219,9 @@ #if defined __BORLANDC__ || defined __WATCOMC__ #pragma argsused #endif + static cell -parm0(FILE * fbin, char *params, cell opcode) +parm0(FILE * fbin, char *params __UNUSED__, cell opcode) { if (fbin != NULL) write_encoded(fbin, (ucell *) & opcode, 1); @@ -257,8 +259,9 @@ #if defined __BORLANDC__ || defined __WATCOMC__ #pragma argsused #endif + static cell -do_dump(FILE * fbin, char *params, cell opcode) +do_dump(FILE * fbin, char *params, cell opcode __UNUSED__) { ucell p; int num = 0; @@ -422,8 +425,9 @@ #if defined __BORLANDC__ || defined __WATCOMC__ #pragma argsused #endif + static cell -do_case(FILE * fbin, char *params, cell opcode) +do_case(FILE * fbin, char *params, cell opcode __UNUSED__) { int i; ucell p, v; @@ -445,8 +449,9 @@ #if defined __BORLANDC__ || defined __WATCOMC__ #pragma argsused #endif + static cell -curfile(FILE * fbin, char *params, cell opcode) +curfile(FILE * fbin __UNUSED__, char *params, cell opcode __UNUSED__) { fcurrent = (int)hex2long(params, NULL); return 0; ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs