swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] const diff


From: Vic Bancroft
Subject: [Swftools-common] const diff
Date: Sun, 8 Nov 2009 15:46:36 -0500

You may already have this in the trunk, however,  I needed to make some diff for compiling under a recent ubuntu 9.10, e.g.,

  $ g++ --version
  g++ (Ubuntu 4.4.1-4ubuntu8) 4.4.1
  Copyright (C) 2009 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

In any case, here you go . . .

  diff swftools-0.9.0/lib/pdf/GFXOutputDev.cc swftools-0.9.0-const-fix/lib/pdf/GFXOutputDev.cc
  2507,2508c2507,2508
  <     char*r1 = strrchr(filename, '/');
  <     char*r2 = strrchr(filename, '\\');
  ---
  >     const char*r1 = strrchr(filename, '/');
  >     const char*r2 = strrchr(filename, '\\');
  diff swftools-0.9.0/lib/pdf/pdf.cc swftools-0.9.0-const-fix/lib/pdf/pdf.cc
  448a449,450
  >     // create new space to use destructive assignment
  >     char*nc_filename = strdup(filename);
  450c452
  <     if((x = strchr(filename, '|'))) {
  ---
  >     if((x = strchr(nc_filename, '|'))) {
  463a466,469
  >
  >     // free temporary space
  >     free(x);
  >


more,
l8r,
v

--
Support mutation not extinction

reply via email to

[Prev in Thread] Current Thread [Next in Thread]