X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d8eb62b207b566949a0d9ce649a7b21e226b9168..8b1c61e4ab2768975287e5ec62ca850c79d69bdc:/README.coding diff --git a/README.coding b/README.coding index 6b3d048dde..7417d89d34 100644 --- a/README.coding +++ b/README.coding @@ -35,9 +35,11 @@ SimGrid4 will follow the these rules: - Example: src/kernel/activity/Activity.cpp include/simgrid/activity/Activity.hpp C + - Field getters are named sg_object_get_field() e.g. sg_link_get_name() + Field setters are named sg_object_set_field() e.g. sg_link_set_data() - variables and functions are in snake_case() - - typedefs do not hide the pointers, ie * must be explicit - char * sg_host_get_name(sg_host_t * host); + - typedefs do not hide the pointers, i.e. * must be explicit + char* sg_host_get_name(sg_host_t* host); This is different from the old convention (described below), that