git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2317
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
* - char (both signed and unsigned)
* - int (short, regular, long and long long, both signed and unsigned)
* - float and double
* - char (both signed and unsigned)
* - int (short, regular, long and long long, both signed and unsigned)
* - float and double
- * - string (which is indeed a reference to a dynamically sized array of char, strlen being used to retrive the size)
+ * - string (which is indeed a reference to a dynamically sized array of char, strlen being used to retrieve the size)
*
* Example:\verbatim gras_datadesc_type_t i = gras_datadesc_by_name("int");
gras_datadesc_type_t uc = gras_datadesc_by_name("unsigned char");
*
* Example:\verbatim gras_datadesc_type_t i = gras_datadesc_by_name("int");
gras_datadesc_type_t uc = gras_datadesc_by_name("unsigned char");
* you have to understand how it is implemented: the multiplication is performed using the sizes stack. In previous example,
* a \ref gras_datadesc_cb_push_int callback is added to the \a rows field and a \ref gras_datadesc_cb_push_int_mult one is
* added to \a cols. So, when the structure is sent, the \a rows field push its value onto the stack, then the \a cols field
* you have to understand how it is implemented: the multiplication is performed using the sizes stack. In previous example,
* a \ref gras_datadesc_cb_push_int callback is added to the \a rows field and a \ref gras_datadesc_cb_push_int_mult one is
* added to \a cols. So, when the structure is sent, the \a rows field push its value onto the stack, then the \a cols field
- * retrieve this value from the stack, compute (and push) the multiplication value. The \a matrix field can then retrive this
+ * retrieve this value from the stack, compute (and push) the multiplication value. The \a matrix field can then retrieve this
* value by poping the array. There is several ways for this to go wrong:
* - if the matrix field is placed before the sizes, the right value won't get pushed into the stack soon enough.
* Reorder your structure fields if needed.
* value by poping the array. There is several ways for this to go wrong:
* - if the matrix field is placed before the sizes, the right value won't get pushed into the stack soon enough.
* Reorder your structure fields if needed.
*
* Use the \ref gras_userdata_new macro to create a new user data (or malloc it
* and use \ref gras_userdata_set yourself), and \ref gras_userdata_get to
*
* Use the \ref gras_userdata_new macro to create a new user data (or malloc it
* and use \ref gras_userdata_set yourself), and \ref gras_userdata_get to
- * retrive a reference to it.
+ * retrieve a reference to it.
/** @defgroup XBT_dynar_ctn Direct manipulation to the dynars content
* @ingroup XBT_dynar
*
/** @defgroup XBT_dynar_ctn Direct manipulation to the dynars content
* @ingroup XBT_dynar
*
- * Those functions do not retrive the content, but only their address.
+ * Those functions do not retrieve the content, but only their address.
/** @defgroup XBT_dynar_speed Speed optimized access to dynars of scalars
* @ingroup XBT_dynar
*
/** @defgroup XBT_dynar_speed Speed optimized access to dynars of scalars
* @ingroup XBT_dynar
*
- * While the other functions use a memcpy to retrive the content into the
+ * While the other functions use a memcpy to retrieve the content into the
* user provided area, those ones use a regular affectation. It only works
* for scalar values, but should be a little faster.
*
* user provided area, those ones use a regular affectation. It only works
* for scalar values, but should be a little faster.
*
e_gras_msg_kind_oneway, payload, NULL);
}
e_gras_msg_kind_oneway, payload, NULL);
}
-/** @brief retrive an existing message type from its name. */
+/** @brief retrieve an existing message type from its name. */
gras_msgtype_t gras_msgtype_by_name (const char *name) {
return gras_msgtype_by_namev(name,0);
}
gras_msgtype_t gras_msgtype_by_name (const char *name) {
return gras_msgtype_by_namev(name,0);
}
-/** @brief retrive an existing message type from its name and version. */
+/** @brief retrieve an existing message type from its name and version. */
gras_msgtype_t gras_msgtype_by_namev(const char *name,
short int version) {
gras_msgtype_t res = NULL;
gras_msgtype_t gras_msgtype_by_namev(const char *name,
short int version) {
gras_msgtype_t res = NULL;
-/** @brief retrive an existing message type from its name and version. */
+/** @brief retrieve an existing message type from its name and version. */
gras_msgtype_t gras_msgtype_by_id(int id) {
return (gras_msgtype_t)xbt_set_get_by_id(_gras_msgtype_set, id);
}
gras_msgtype_t gras_msgtype_by_id(int id) {
return (gras_msgtype_t)xbt_set_get_by_id(_gras_msgtype_set, id);
}
TRY {
res = xbt_set_get_by_name(pd->libdata, name);
} CATCH(e) {
TRY {
res = xbt_set_get_by_name(pd->libdata, name);
} CATCH(e) {
- RETHROW1("Cannot retrive the libdata associated to %s: %s",name);
+ RETHROW1("Cannot retrieve the libdata associated to %s: %s",name);
-/** @brief retrive a testsuite from name, or create a new one */
+/** @brief retrieve a testsuite from name, or create a new one */
xbt_test_suite_t xbt_test_suite_by_name(const char *name,const char *fmt, ...) {
xbt_test_suite_t suite;
int it_suite;
xbt_test_suite_t xbt_test_suite_by_name(const char *name,const char *fmt, ...) {
xbt_test_suite_t suite;
int it_suite;
-XBT_TEST_UNIT("basic",test_dict_basic,"Basic usage: change, retrive, traverse"){
+XBT_TEST_UNIT("basic",test_dict_basic,"Basic usage: change, retrieve, traverse"){
xbt_test_add0("Traversal the empty dictionnary");
traverse(head);
xbt_test_add0("Traversal the empty dictionnary");
traverse(head);
xbt_test_add0("Traverse the resulting dictionnary");
traverse(head);
xbt_test_add0("Traverse the resulting dictionnary");
traverse(head);
xbt_test_add0("Search 123");
data = xbt_dict_get(head,"123");
xbt_test_assert(data);
xbt_test_add0("Search 123");
data = xbt_dict_get(head,"123");
xbt_test_assert(data);
/** @brief Retrieve a copy of the Nth element of a dynar.
*
* \param dynar information dealer
/** @brief Retrieve a copy of the Nth element of a dynar.
*
* \param dynar information dealer
- * \param idx index of the slot we want to retrive
+ * \param idx index of the slot we want to retrieve
* \param[out] dst where to put the result to.
*/
void
* \param[out] dst where to put the result to.
*/
void