[gnoduino] fix error in commit "Bug 690383 - Extracted prototypes..."
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino] fix error in commit "Bug 690383 - Extracted prototypes..."
- Date: Thu, 3 Jan 2013 00:40:35 +0000 (UTC)
commit ae00f7c6478d98208bea19a5846b673c59c1e9db
Author: Lucian Langa <lucilanga gnome org>
Date: Thu Jan 3 01:32:54 2013 +0100
fix error in commit "Bug 690383 - Extracted prototypes..."
src/preproc.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/preproc.py b/src/preproc.py
index 02d45f2..989808e 100644
--- a/src/preproc.py
+++ b/src/preproc.py
@@ -39,6 +39,11 @@ def firstStatement(instr):
def lastInclude(instr):
m = re.finditer(r"^#include\s+[\w+\".<>\-]+", instr, re.M)
return max(enumerate(m))[1].end()
+ try:
+ return max(enumerate(m))[1].end()
+ except:
+ return 0
+
def findPrototype(instr):
pro = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]