X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/22cbe09a54192c181f902cde1b20ecb067f59a3b..f973433226af2e2e3059b62578bb0f3b215380fb:/docs/source/The_XBT_toolbox.rst diff --git a/docs/source/The_XBT_toolbox.rst b/docs/source/The_XBT_toolbox.rst index e89aa0d914..d4b26d7714 100644 --- a/docs/source/The_XBT_toolbox.rst +++ b/docs/source/The_XBT_toolbox.rst @@ -44,7 +44,7 @@ Refer to the :ref:`logging_categories` section for a list of all existing catego .. c:macro:: XBT_LOG_EXTERNAL_CATEGORY(category) - Make an external category (i.e., a category declared in another source file) visible from this source file. + Make an external category (i.e., a category declared in another source file) visible from this source file. In each source file, at most one one category can be the default one. .. c:macro:: XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(category) @@ -190,11 +190,11 @@ Dynamic arrays ************** As SimGrid used to be written in pure C, it used to rely on custom data containers such as dynamic arrays and dictionnaries. Nowadays, the standard library of -C++ is used internally, but some part of the interface still rely on the old containers, that are thus still available. +C++ is used internally, but some part of the interface still rely on the old containers, that are thus still available. -.. warning:: +.. warning:: - You should probably not start a new project using these data structures, as we will :ref:`deprecate them from SimGrid ` + You should probably not start a new project using these data structures, as we will :ref:`deprecate them from SimGrid ` as soon as possible. Better implementations exist out there anyway, in particular if you're not writting pure C code. .. doxygentypedef:: xbt_dynar_t @@ -206,11 +206,10 @@ Creation and destruction .. doxygenfunction:: xbt_dynar_new .. doxygenfunction:: xbt_dynar_free .. doxygenfunction:: xbt_dynar_free_container -.. doxygenfunction:: xbt_dynar_shrink Dynars as regular arrays ======================== - + .. doxygenfunction:: xbt_dynar_get_cpy .. doxygenfunction:: xbt_dynar_insert_at .. doxygenfunction:: xbt_dynar_remove_at @@ -223,7 +222,7 @@ Dynar size .. doxygenfunction:: xbt_dynar_is_empty .. doxygenfunction:: xbt_dynar_length .. doxygenfunction:: xbt_dynar_reset - + Perl-like interface =================== @@ -314,7 +313,7 @@ Example with pointed values xbt_dynar_t d = xbt_dynar_new(sizeof(char*), &xbt_free_ref); - /// Push/shift example + /// Push/shift example for (int i = 0; i < NB_ELEM; i++) { char * val = xbt_strdup("hello"); xbt_dynar_push(d, &val);