X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cf108868b4eeed4d0d9d343bc68557d7814e18c0..c0b9703e09d564d61f806d27bad1e85f05f8cbab:/tools/sg_unit_extractor.pl diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index 9cbc2f5aa5..8b2083fffc 100755 --- a/tools/sg_unit_extractor.pl +++ b/tools/sg_unit_extractor.pl @@ -1,14 +1,10 @@ #! /usr/bin/env perl -# Copyright (c) 2005-2012, 2014. The SimGrid Team. All rights reserved. +# Copyright (c) 2005-2012, 2014-2017. 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. - - -use strict; - use strict; use Getopt::Long qw(GetOptions); @@ -130,6 +126,7 @@ sub process_one($) { print OUT "#include \n\n"; print OUT "#include \"xbt.h\"\n\n"; print OUT "extern xbt_test_unit_t _xbt_current_unit;\n\n"; + print OUT "#define STRLEN 1024\n"; print OUT "/* SGU: BEGIN PROTOTYPES */\n"; print OUT "/* SGU: END PROTOTYPES */\n\n"; print OUT $GENERATED; @@ -137,7 +134,7 @@ sub process_one($) { print OUT <