[parrot/parrot] b6bf4d: [cage] fix PARROT_CANNOT_RETURN_NULL, add HASATTRI...

GitHub noreply at github.com
Tue Dec 30 20:52:09 UTC 2014


  Branch: refs/heads/smoke-me/attributes-gh1163
  Home:   https://github.com/parrot/parrot
  Commit: b6bf4d990fd56be603c52839e16f3c9c5f41a18b
      https://github.com/parrot/parrot/commit/b6bf4d990fd56be603c52839e16f3c9c5f41a18b
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-12-30 (Tue, 30 Dec 2014)

  Changed paths:
    M config/auto/attributes.pm
    M config/auto/attributes/test_c.in
    M include/parrot/call.h
    M include/parrot/compiler.h
    M include/parrot/gc_api.h
    M include/parrot/io.h
    M include/parrot/packfile.h
    M src/call/context.c
    M src/gc/api.c
    M src/gc/string_gc.c
    M src/io/api.c
    M src/packfile/pf_items.c

  Log Message:
  -----------
  [cage] fix PARROT_CANNOT_RETURN_NULL, add HASATTRIBUTE_FORMAT_* variants

* PARROT_CANNOT_RETURN_NULL was empty, thus never detected when used on
  wrong declarations. Implement it now,
  e.g. ./include/parrot/packfile.h:353:9:
  error: returns_nonnull attribute on a function not returning a pointer
* HASATTRIBUTE_FORMAT has multiple variants. try gun_printf, ms_printf
  or printf. Not yet used.
* bring together the definition and it's non-defined counterpart. they are
  currently seperated.  if you add one, you should not forget to add the
  other part.

See GH #1163.


  Commit: a1e9c04ca406699dc2e6c0bbc649272a653c2fe2
      https://github.com/parrot/parrot/commit/a1e9c04ca406699dc2e6c0bbc649272a653c2fe2
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-12-30 (Tue, 30 Dec 2014)

  Changed paths:
    M config/gen/config_h/config_h.in

  Log Message:
  -----------
  [cage] better whitespace alignment in generated config.h


  Commit: 494cb827fe8a66db3e140e3bdb98c5c8fcd52c65
      https://github.com/parrot/parrot/commit/494cb827fe8a66db3e140e3bdb98c5c8fcd52c65
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-12-30 (Tue, 30 Dec 2014)

  Changed paths:
    M compilers/imcc/api.c
    M compilers/imcc/imc.h
    M compilers/imcc/parser_util.c
    M include/imcc/api.h
    M include/parrot/compiler.h
    M include/parrot/string_funcs.h
    M lib/Parrot/Headerizer.pm
    M lib/Parrot/Headerizer/Functions.pm
    M src/pmc/socket.pmc
    M src/string/api.c
    M src/string/spf_render.c
    M src/string/sprintf.c

  Log Message:
  -----------
  [cage] add ARGIN_FORMAT decl

which sets  __attribute__format__(n, x) automatically.
x = n+1 when the next arg is ... or otherwise 0.

replace some wrong PARROT_CANNOT_RETURN_NULL with PARROT_WARN_UNUSED_RESULT.

add forgotten PARROT_DEPRECATED, PARROT_EXPOSED as known headerizer macros

add required return value check for the Socket.socket method and use it.

See GH #1163


  Commit: f723358c53d6669a9972a01231b629b824b562ad
      https://github.com/parrot/parrot/commit/f723358c53d6669a9972a01231b629b824b562ad
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-12-30 (Tue, 30 Dec 2014)

  Changed paths:
    M include/parrot/io.h
    M src/io/api.c
    M src/pmc/socket.pmc

  Log Message:
  -----------
  [cage] more ARGIN_FORMAT decl in io

also add a WB for Socket.destroy


Compare: https://github.com/parrot/parrot/compare/b6bf4d990fd5^...f723358c53d6


More information about the parrot-commits mailing list