Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use bounds checking method array::at().
[simgrid.git] / src / simix / simcalls.py
index 421ca26..ef75a13 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2014-2021. The SimGrid Team. All rights reserved.
+# Copyright (c) 2014-2022. The SimGrid Team. All rights reserved.
 
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the license (GNU LGPL) which comes with this package.
@@ -192,7 +192,7 @@ def parse(fn):
         if line.startswith('#') or not line:
             continue
         match = re.match(
-            r'^(\S+)\s+([^\)\(\s]+)\s*\(*(.*)\)\s*(\[\[.*\]\])?\s*;\s*?$', line)
+            r'^(\S+)\s+([^\)\(\s]+)\s*\(*(.*)\)\s*(\[\[.*\]\])?\s*;\s*$', line)
         if not match:
             raise AssertionError(line)
         ret, name, args, attrs = match.groups()
@@ -235,7 +235,7 @@ def header(name):
     fd.write('/*                    DO NOT EVER CHANGE THIS FILE                    */\n')
     fd.write('/*                                                                    */\n')
     fd.write('/* change simcalls specification in src/simix/simcalls.in             */\n')
-    fd.write('/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved.    */\n')
+    fd.write('/* Copyright (c) 2014-2022. The SimGrid Team. All rights reserved.    */\n')
     fd.write('/**********************************************************************/\n\n')
     fd.write('/*\n')
     fd.write(' * Note that the name comes from http://en.wikipedia.org/wiki/Popping\n')
@@ -318,7 +318,7 @@ if __name__ == '__main__':
     fd.write('#include "src/kernel/context/Context.hpp"\n')
 
     fd.write('\n')
-    fd.write('XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping);\n\n')
+    fd.write('XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);\n\n')
 
     fd.write('using simgrid::simix::Simcall;')
     fd.write('\n')