Oneliner that adds the capability to deal with defines that set string
values - " needs to be quoted in XML.

//Magnus
Index: src/tools/msvc/Project.pm
===================================================================
RCS file: c:/prog/cvsrepo/pgsql/pgsql/src/tools/msvc/Project.pm,v
retrieving revision 1.4
diff -c -r1.4 Project.pm
*** src/tools/msvc/Project.pm   20 Nov 2006 19:18:02 -0000      1.4
--- src/tools/msvc/Project.pm   29 Dec 2006 18:15:23 -0000
***************
*** 107,112 ****
--- 107,113 ----
  sub AddDefine {
        my ($self, $def) = @_;

+    $def =~ s/"/""/g;
        $self->{defines} .= $def . ';';
  }
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to