Lichen

Change of generator.py

925:f19950e74e7f
generator.py trailing-data
     1.1 --- a/generator.py	Tue Jun 22 23:04:00 2021 +0200
     1.2 +++ b/generator.py	Wed Jun 23 01:54:36 2021 +0200
     1.3 @@ -3,7 +3,7 @@
     1.4  """
     1.5  Generate C code from object layouts and other deduced information.
     1.6  
     1.7 -Copyright (C) 2015, 2016, 2017, 2018, 2019 Paul Boddie <paul@boddie.org.uk>
     1.8 +Copyright (C) 2015, 2016, 2017, 2018, 2019, 2021 Paul Boddie <paul@boddie.org.uk>
     1.9  
    1.10  This program is free software; you can redistribute it and/or modify it under
    1.11  the terms of the GNU General Public License as published by the Free Software
    1.12 @@ -45,7 +45,7 @@
    1.13      dict_type = "__builtins__.dict.dict"
    1.14      float_type = "__builtins__.float.float"
    1.15      function_type = "__builtins__.core.function"
    1.16 -    int_type = "__builtins__.int.int"
    1.17 +    int_type = "__builtins__.int.integer"
    1.18      list_type = "__builtins__.list.list"
    1.19      none_type = "__builtins__.none.NoneType"
    1.20      string_type = "__builtins__.str.string"
    1.21 @@ -1293,9 +1293,14 @@
    1.22          """
    1.23  
    1.24          print >>f_code, """\
    1.25 +int __argc;
    1.26 +char **__argv;
    1.27 +
    1.28  int main(int argc, char *argv[])
    1.29  {
    1.30      __exc __tmp_exc;
    1.31 +    __argc = argc;
    1.32 +    __argv = argv;
    1.33  
    1.34      GC_INIT();
    1.35