Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[windows] don't call tesh as a script as cmake fails to preserve the exec permission...
[simgrid.git] / tools / normalize-pointers.py
index e70894e9d12247a59dc5cf1c58b25b43f4f3cedc..ba78a8078cc5d5cf3517c915726d6ce52737aeee 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Copyright (c) 2013-2014. The SimGrid Team.
 # All rights reserved.
@@ -23,7 +23,7 @@ f = open(sys.argv[1])
 t = f.read()
 f.close()
 
-r = re.compile(r"0x[0-9a-f]{7}")
+r = re.compile(r"0x[0-9a-f]+")
 s = r.search(t)
 offset = 0
 pointers = {}