Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove a level of constness for argv parameter of sg_actor_start/create.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 24 Mar 2021 21:12:47 +0000 (22:12 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 24 Mar 2021 21:30:05 +0000 (22:30 +0100)
commitc92f0544172b6f9116a118fc568dfead45b15389
treeb08682ac7e9b28c3578d8f0663c61cf54d349d0f
parent8c37e38cf6d31636517ffd33b3f6c3d0c358e375
Remove a level of constness for argv parameter of sg_actor_start/create.

Aligns with the signature of main(), and allows to write without cast:

    int main(int argc, char *argv[]) {
        sg_actor_start(NULL, NULL, argc, argv);
        ...

The main drawback is that we have to add an explicit cast in our constrained
examples.
docs/source/app_s4u.rst
examples/c/actor-create/actor-create.c
examples/c/actor-migrate/actor-migrate.c
examples/c/cloud-capping/cloud-capping.c
examples/c/cloud-migration/cloud-migration.c
examples/c/cloud-simple/cloud-simple.c
examples/c/exec-waitany/exec-waitany.c
examples/c/synchro-semaphore/synchro-semaphore.c
include/simgrid/actor.h
src/s4u/s4u_Actor.cpp