[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH]: am_edit vs. uic images
From:       Michael Matz <matz () kde ! org>
Date:       2002-02-22 18:06:26
[Download RAW message or body]

Hi,

On Fri, 22 Feb 2002, Werner Trobin wrote:

> As the designer always generates the same names for embedded images in .ui
> files (image0, image1,...) --enable-final breaks as multiple arrays in the
> huge .all_cpp.cpp file are called the same way.
>
> The attached patch simply prefixes those image names with the filename.
>
> Comments? Suggestions?

Too simple.  Think filenames with '-' in them, would result in invalid
identifiers.  I suggest preparing $source by something like (the
untested):
my ($mangled_source = $source) =~ s/[^A-Za-z0-9_]/_/g;

and using $mangled_source then.


Ciao,
Michael.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic