[open-axiom-commit] SF.net SVN: open-axiom:[2754] trunk/src
A system for computer algebra and symbolic mathematics
Brought to you by:
dos-reis
From: <dos...@us...> - 2012-08-19 00:39:14
|
Revision: 2754 http://open-axiom.svn.sourceforge.net/open-axiom/?rev=2754&view=rev Author: dos-reis Date: 2012-08-19 00:39:07 +0000 (Sun, 19 Aug 2012) Log Message: ----------- * include/util.H1 (getmemWithLine): Second argument is now const char*. (saymemWithLine): First argument is now char*. * lib/util.c: Propogate change. * include/XSpadFill.h (SpadFillGC): Change last parameter type to const char*. * lib/XSpadFill.c (SpadFillGC): Likewise. Modified Paths: -------------- 1.4.x/src/ChangeLog 1.4.x/src/include/XSpadFill.h 1.4.x/src/include/util.H1 1.4.x/src/lib/XSpadFill.c 1.4.x/src/lib/util.c trunk/src/ChangeLog trunk/src/include/XSpadFill.h trunk/src/include/util.H1 trunk/src/lib/XSpadFill.c trunk/src/lib/util.c Modified: 1.4.x/src/ChangeLog =================================================================== --- 1.4.x/src/ChangeLog 2012-08-18 23:57:06 UTC (rev 2753) +++ 1.4.x/src/ChangeLog 2012-08-19 00:39:07 UTC (rev 2754) @@ -1,5 +1,14 @@ 2012-08-18 Gabriel Dos Reis <gd...@cs...> + * include/util.H1 (getmemWithLine): Second argument is now const char*. + (saymemWithLine): First argument is now char*. + * lib/util.c: Propogate change. + * include/XSpadFill.h (SpadFillGC): Change last parameter type to + const char*. + * lib/XSpadFill.c (SpadFillGC): Likewise. + +2012-08-18 Gabriel Dos Reis <gd...@cs...> + * boot/translator.boot (shoeOutParse): Fix thinko. * lib/cfuns-c.c (oa_getcwd): Tidy. (oa_spawn): Likewise. Modified: 1.4.x/src/include/XSpadFill.h =================================================================== --- 1.4.x/src/include/XSpadFill.h 2012-08-18 23:57:06 UTC (rev 2753) +++ 1.4.x/src/include/XSpadFill.h 2012-08-19 00:39:07 UTC (rev 2754) @@ -38,7 +38,7 @@ extern int XInitSpadFill(Display * , int , Colormap * , int * , int * , int * , int * ); extern void XSpadFillSetArcMode(Display * , int ); -extern GC SpadFillGC(Display * , int , int , char * ); +extern GC SpadFillGC(Display * , int , int , const char* ); extern unsigned long XSolidColor(int , int ); extern void XSpadFillRectangle(Display * , Drawable , int , int , unsigned int , unsigned int , int , int ); extern void XSpadFillRectangles(Display * , Drawable , XRectangle * , int , int , int ); Modified: 1.4.x/src/include/util.H1 =================================================================== --- 1.4.x/src/include/util.H1 2012-08-18 23:57:06 UTC (rev 2753) +++ 1.4.x/src/include/util.H1 2012-08-19 00:39:07 UTC (rev 2754) @@ -1,6 +1,6 @@ extern int checker(int , int , char * ); -extern char * getmemWithLine(int , char * , int ); -extern char * saymemWithLine(char * , int , int , int ); +extern const char* getmemWithLine(int , const char* , int ); +extern const char* saymemWithLine(const char* , int , int , int ); extern void myfree(void * , int ); extern XPoint getWindowPositionXY(Display * , Window ); extern XPoint getWindowSizeXY(Display * , Window ); Modified: 1.4.x/src/lib/XSpadFill.c =================================================================== --- 1.4.x/src/lib/XSpadFill.c 2012-08-18 23:57:06 UTC (rev 2753) +++ 1.4.x/src/lib/XSpadFill.c 2012-08-19 00:39:07 UTC (rev 2754) @@ -172,7 +172,7 @@ } GC -SpadFillGC(Display *dsply,int hue, int theshade,char * fill_routine) +SpadFillGC(Display *dsply,int hue, int theshade, const char* fill_routine) { int dither; int color; Modified: 1.4.x/src/lib/util.c =================================================================== --- 1.4.x/src/lib/util.c 2012-08-18 23:57:06 UTC (rev 2753) +++ 1.4.x/src/lib/util.c 2012-08-19 00:39:07 UTC (rev 2754) @@ -66,8 +66,8 @@ -char * -getmemWithLine(int nbytes, char *str, int lineNum) +const char* +getmemWithLine(int nbytes, const char* str, int lineNum) { char *p; @@ -80,14 +80,10 @@ } -char * -saymemWithLine(char *str, int num, int size, int lineNum) +const char * +saymemWithLine(const char *str, int num, int size, int lineNum) { - char *p; - - p = getmemWithLine(num * size, str, lineNum); - return p; - + return getmemWithLine(num * size, str, lineNum); } Modified: trunk/src/ChangeLog =================================================================== --- trunk/src/ChangeLog 2012-08-18 23:57:06 UTC (rev 2753) +++ trunk/src/ChangeLog 2012-08-19 00:39:07 UTC (rev 2754) @@ -1,5 +1,14 @@ 2012-08-18 Gabriel Dos Reis <gd...@cs...> + * include/util.H1 (getmemWithLine): Second argument is now const char*. + (saymemWithLine): First argument is now char*. + * lib/util.c: Propogate change. + * include/XSpadFill.h (SpadFillGC): Change last parameter type to + const char*. + * lib/XSpadFill.c (SpadFillGC): Likewise. + +2012-08-18 Gabriel Dos Reis <gd...@cs...> + * boot/translator.boot (shoeOutParse): Fix thinko. * lib/cfuns-c.c (oa_getcwd): Tidy. (oa_spawn): Likewise. Modified: trunk/src/include/XSpadFill.h =================================================================== --- trunk/src/include/XSpadFill.h 2012-08-18 23:57:06 UTC (rev 2753) +++ trunk/src/include/XSpadFill.h 2012-08-19 00:39:07 UTC (rev 2754) @@ -38,7 +38,7 @@ extern int XInitSpadFill(Display * , int , Colormap * , int * , int * , int * , int * ); extern void XSpadFillSetArcMode(Display * , int ); -extern GC SpadFillGC(Display * , int , int , char * ); +extern GC SpadFillGC(Display * , int , int , const char* ); extern unsigned long XSolidColor(int , int ); extern void XSpadFillRectangle(Display * , Drawable , int , int , unsigned int , unsigned int , int , int ); extern void XSpadFillRectangles(Display * , Drawable , XRectangle * , int , int , int ); Modified: trunk/src/include/util.H1 =================================================================== --- trunk/src/include/util.H1 2012-08-18 23:57:06 UTC (rev 2753) +++ trunk/src/include/util.H1 2012-08-19 00:39:07 UTC (rev 2754) @@ -1,6 +1,6 @@ extern int checker(int , int , char * ); -extern char * getmemWithLine(int , char * , int ); -extern char * saymemWithLine(char * , int , int , int ); +extern const char* getmemWithLine(int , const char* , int ); +extern const char* saymemWithLine(const char* , int , int , int ); extern void myfree(void * , int ); extern XPoint getWindowPositionXY(Display * , Window ); extern XPoint getWindowSizeXY(Display * , Window ); Modified: trunk/src/lib/XSpadFill.c =================================================================== --- trunk/src/lib/XSpadFill.c 2012-08-18 23:57:06 UTC (rev 2753) +++ trunk/src/lib/XSpadFill.c 2012-08-19 00:39:07 UTC (rev 2754) @@ -172,7 +172,7 @@ } GC -SpadFillGC(Display *dsply,int hue, int theshade,char * fill_routine) +SpadFillGC(Display *dsply,int hue, int theshade, const char* fill_routine) { int dither; int color; Modified: trunk/src/lib/util.c =================================================================== --- trunk/src/lib/util.c 2012-08-18 23:57:06 UTC (rev 2753) +++ trunk/src/lib/util.c 2012-08-19 00:39:07 UTC (rev 2754) @@ -66,8 +66,8 @@ -char * -getmemWithLine(int nbytes, char *str, int lineNum) +const char* +getmemWithLine(int nbytes, const char* str, int lineNum) { char *p; @@ -80,14 +80,10 @@ } -char * -saymemWithLine(char *str, int num, int size, int lineNum) +const char * +saymemWithLine(const char *str, int num, int size, int lineNum) { - char *p; - - p = getmemWithLine(num * size, str, lineNum); - return p; - + return getmemWithLine(num * size, str, lineNum); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |