[banshee] [DllMapVerifier] Fix parsing when a DllImport doesn't have double quotes
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [DllMapVerifier] Fix parsing when a DllImport doesn't have double quotes
- Date: Sat, 22 Aug 2009 17:39:24 +0000 (UTC)
commit 0440b57491e1f4f2833d72c9c9008ab05fa08567
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat Aug 8 17:21:12 2009 +0200
[DllMapVerifier] Fix parsing when a DllImport doesn't have double quotes
Parsing would break for Mono.Data.Sqlite/UnsafeNativeMethods.cs if it
contains a " somewhere else than in a DllImport
build/DllMapVerifier.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/build/DllMapVerifier.cs b/build/DllMapVerifier.cs
index 3785e71..a180e21 100644
--- a/build/DllMapVerifier.cs
+++ b/build/DllMapVerifier.cs
@@ -146,6 +146,11 @@ public static class DllMapVerifier
in_string = true;
}
break;
+ case ']':
+ in_attr = false;
+ in_dll_attr = false;
+ Read ();
+ break;
default:
if (!in_dll_attr && in_attr && ReadDllAttribute ()) {
in_dll_attr = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]