"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "devices/vector/gdevpdfu.c" between
ghostpdl-9.28rc1.tar.xz and ghostpdl-9.28rc2.tar.xz

About: GhostPDL is a suite of interpreters for PCL, PXL and XPS implemented using the Ghostscript graphics library (GPL release). Release candidate.

gdevpdfu.c  (ghostpdl-9.28rc1.tar.xz):gdevpdfu.c  (ghostpdl-9.28rc2.tar.xz)
skipping to change at line 404 skipping to change at line 404
/* ------ Document ------ */ /* ------ Document ------ */
/* Write out the arguments used to invoke GS as a comment in the PDF/PS /* Write out the arguments used to invoke GS as a comment in the PDF/PS
* file. We don't write out paths, passwords, or any unrecognised string * file. We don't write out paths, passwords, or any unrecognised string
* parameters (all sanitised by the arg code) for privacy/security * parameters (all sanitised by the arg code) for privacy/security
* reasons. This routine is only called by the PDF linearisation code. * reasons. This routine is only called by the PDF linearisation code.
*/ */
int int
pdfwrite_fwrite_args_comment(gx_device_pdf *pdev, gp_file *f) pdfwrite_fwrite_args_comment(gx_device_pdf *pdev, gp_file *f)
{ {
char **argv = NULL, *arg; const char * const *argv = NULL;
const char *arg;
int towrite, length, i, j, argc; int towrite, length, i, j, argc;
argc = gs_lib_ctx_get_args(pdev->memory->gs_lib_ctx, (const char ***)&argv); argc = gs_lib_ctx_get_args(pdev->memory->gs_lib_ctx, &argv);
gp_fwrite("%%Invocation:", 13, 1, f); gp_fwrite("%%Invocation:", 13, 1, f);
length = 12; length = 12;
for (i=0;i < argc; i++) { for (i=0;i < argc; i++) {
arg = argv[i]; arg = argv[i];
if ((strlen(arg) + length) > 255) { if ((strlen(arg) + length) > 255) {
gp_fwrite("\n%%+ ", 5, 1, f); gp_fwrite("\n%%+ ", 5, 1, f);
length = 5; length = 5;
} else { } else {
skipping to change at line 452 skipping to change at line 453
return 0; return 0;
} }
/* Exactly the same as pdfwrite_fwrite_args_comment() above, but uses a stream /* Exactly the same as pdfwrite_fwrite_args_comment() above, but uses a stream
* instead of a gp_file *, because of course we aren't consistent.... This * instead of a gp_file *, because of course we aren't consistent.... This
* routine is called by the regular PDF or PS file output code. * routine is called by the regular PDF or PS file output code.
*/ */
int int
pdfwrite_write_args_comment(gx_device_pdf *pdev, stream *s) pdfwrite_write_args_comment(gx_device_pdf *pdev, stream *s)
{ {
char **argv = NULL, *arg; const char * const *argv = NULL;
const char *arg;
int towrite, length, i, j, argc; int towrite, length, i, j, argc;
argc = gs_lib_ctx_get_args(pdev->memory->gs_lib_ctx, (const char ***)&argv); argc = gs_lib_ctx_get_args(pdev->memory->gs_lib_ctx, &argv);
stream_write(s, (byte *)"%%Invocation:", 13); stream_write(s, (byte *)"%%Invocation:", 13);
length = 12; length = 12;
for (i=0;i < argc; i++) { for (i=0;i < argc; i++) {
arg = argv[i]; arg = argv[i];
if ((strlen(arg) + length) > 255) { if ((strlen(arg) + length) > 255) {
stream_write(s, (byte *)"\n%%+ ", 5); stream_write(s, (byte *)"\n%%+ ", 5);
length = 5; length = 5;
} else { } else {
 End of changes. 4 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)