Nigel <ni...@openbsd.org> writes: > On 09/03/15 22:04, Nigel wrote: >> Update to version 2015.08.31 >> >> Minor changes >> 2015 08 31 Ljust and rjust text offset equal for single and multiple >> strings. >> 2015 08 13 Catch return value of the sh command. >> 2015 06 29 Fixed a bug in svg output. >> 2015 06 15 Undeferred error messaging. Improved readability of C code. >> 2015 04 01 Fix comment lines containing braces in macro and for bodies. >> Revised messages for some errors. >> 2015 02 13 Reworked the handling of backslashes in strings in macro >> arguments. >> 2015 02 04 PDF output. Built-in variable dpicopt and variables added for >> detecting command options. Linear objects reworked for consistent fill. >> 2014 01 26 Tweak svg string output. >> >> >> Added some testing by using make on the examples. >> (Used browser/inkscape/ghostscript etc to view generated files.) >> >> Only tested on amd64. Please test on other. >> >> Ok? >> > There is a newer version 2015.10.28 available, attached a new diff for > this version.
Looks fine ports wise, ok jca@ However, on amd64: ritchie /usr/ports/graphics/dpic$ make ===> Building for dpic-2015.10.28 cc -O2 -pipe -c dpic.c dpic.c: In function 'newstr': dpic.c:2384: warning: cast to pointer from integer of different size dpic.c: In function 'storestring': dpic.c:2408: warning: cast to pointer from integer of different size dpic.c: In function 'appendstring': dpic.c:2473: warning: cast to pointer from integer of different size dpic.c: In function 'newprim': dpic.c:2777: warning: cast to pointer from integer of different size dpic.c:2781: warning: cast to pointer from integer of different size dpic.c:2785: warning: cast to pointer from integer of different size dpic.c:2789: warning: cast to pointer from integer of different size dpic.c:2797: warning: cast to pointer from integer of different size dpic.c:2802: warning: cast to pointer from integer of different size dpic.c: In function 'resetenv': dpic.c:3348: warning: cast to pointer from integer of different size dpic.c: In function 'inheritenv': dpic.c:3465: warning: cast to pointer from integer of different size dpic.c: In function 'copyprim': dpic.c:3676: warning: cast to pointer from integer of different size dpic.c: In function 'produce': dpic.c:5361: warning: cast to pointer from integer of different size dpic.c: In function 'pdfstream': dpic.c:14154: warning: cast to pointer from integer of different size dpic.c: In function 'pdfprelude': dpic.c:14250: warning: cast to pointer from integer of different size dpic.c: In function 'newbuf': dpic.c:17364: warning: cast to pointer from integer of different size dpic.c:17365: warning: cast to pointer from integer of different size dpic.c: In function 'newarg': dpic.c:17420: warning: cast to pointer from integer of different size dpic.c: In function 'parse': dpic.c:19342: warning: cast to pointer from integer of different size dpic.c:19352: warning: cast to pointer from integer of different size dpic.c: In function 'main': dpic.c:19550: warning: cast to pointer from integer of different size cc -O2 -pipe -c p2clib.c cc -o dpic dpic.o p2clib.o -lm p2clib.o: In function `_ShowEscape': p2clib.c:(.text+0xc64): warning: warning: strcpy() is almost always misused, please use strlcpy() dpic.o: In function `produce': dpic.c:(.text+0x2844d): warning: warning: random() may return deterministic values, is that what you want? p2clib.o: In function `_ShowEscape': p2clib.c:(.text+0xc73): warning: warning: strcat() is almost always misused, please use strlcat() dpic.o: In function `pdfwstring': dpic.c:(.text+0x4987): warning: warning: sprintf() is often misused, please use snprintf() ritchie /usr/ports/graphics/dpic$ Scary. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE