From 8b975bca8a302da530825a97a250994edb9668ba Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 20 Apr 2016 02:01:27 +0200 Subject: [PATCH] spellchecking instead of sleeping --- doc/doxygen/help.doc | 2 +- examples/msg/async-wait/async-wait.c | 2 +- examples/msg/mc/bugged1_liveness.c | 2 +- examples/msg/mc/bugged2_liveness.c | 4 ++-- examples/msg/mc/centralized_mutex.c | 4 ++-- include/simgrid/s4u/host.hpp | 2 +- include/xbt/cunit.h | 2 +- src/mc/LocationList.hpp | 2 +- src/mc/mc_global.cpp | 4 ++-- src/surf/sg_platf.cpp | 1 + tools/internal/spell_dict.txt | 10 ++++++++++ 11 files changed, 23 insertions(+), 12 deletions(-) diff --git a/doc/doxygen/help.doc b/doc/doxygen/help.doc index 34b8dcc703..e228c96c39 100644 --- a/doc/doxygen/help.doc +++ b/doc/doxygen/help.doc @@ -11,7 +11,7 @@ have several ways of doing so: - If your question is about the internals and not about using SimGrid, you may prefer to send your question to the Developers Mailing list - - Join us on IRC and ask your question directly on the chanel \#simgrid at + - Join us on IRC and ask your question directly on the channel \#simgrid at \b irc.debian.org. Be warned that even if many people are connected to the chanel, they may be doing some useful stuff instead of lurking on IRC. So don't be surprised if you don't get an answer in the same diff --git a/examples/msg/async-wait/async-wait.c b/examples/msg/async-wait/async-wait.c index 49e06eac49..a6dc316224 100644 --- a/examples/msg/async-wait/async-wait.c +++ b/examples/msg/async-wait/async-wait.c @@ -12,7 +12,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_async_wait, "Messages specific for this msg exa * * @section msg_ex_async Asynchronous communications * - * In addition to the fully documented example of \ref MSG_ex_asynchronous_communications, there are several othe + * In addition to the fully documented example of \ref MSG_ex_asynchronous_communications, there are several other * examples shipped in the archive: * * - Basic example: async-wait/async-wait.c. Illustrates the use of asynchronous functions (@ref MSG_task_isend, diff --git a/examples/msg/mc/bugged1_liveness.c b/examples/msg/mc/bugged1_liveness.c index 949020bd2f..fda05544cf 100644 --- a/examples/msg/mc/bugged1_liveness.c +++ b/examples/msg/mc/bugged1_liveness.c @@ -138,7 +138,7 @@ static int raw_client(int argc, char *argv[]) { #ifdef GARBAGE_STACK // At this point the stack of the callee (client) is probably filled with - // zeros and unitialized variables will contain 0. This call will place + // zeros and uninitialized variables will contain 0. This call will place // random byes in the stack of the callee: garbage_stack(); #endif diff --git a/examples/msg/mc/bugged2_liveness.c b/examples/msg/mc/bugged2_liveness.c index b82e3ac05c..2310f28163 100644 --- a/examples/msg/mc/bugged2_liveness.c +++ b/examples/msg/mc/bugged2_liveness.c @@ -32,8 +32,8 @@ static int coordinator(int argc, char *argv[]) XBT_INFO("CS already used."); msg_task_t answer = MSG_task_create("not grant", 0, 1000, NULL); MSG_task_send(answer, req); - } else { // can serve it immediatly - XBT_INFO("CS idle. Grant immediatly"); + } else { // can serve it immediately + XBT_INFO("CS idle. Grant immediately"); msg_task_t answer = MSG_task_create("grant", 0, 1000, NULL); MSG_task_send(answer, req); CS_used = 1; diff --git a/examples/msg/mc/centralized_mutex.c b/examples/msg/mc/centralized_mutex.c index 64a4461211..c3105fc07d 100644 --- a/examples/msg/mc/centralized_mutex.c +++ b/examples/msg/mc/centralized_mutex.c @@ -30,8 +30,8 @@ static int coordinator(int argc, char *argv[]) if (CS_used) { // need to push the request in the vector XBT_INFO("CS already used. Queue the request"); xbt_dynar_push(requests, &req); - } else { // can serve it immediatly - XBT_INFO("CS idle. Grant immediatly"); + } else { // can serve it immediately + XBT_INFO("CS idle. Grant immediately"); msg_task_t answer = MSG_task_create("grant", 0, 1000, NULL); MSG_task_send(answer, req); CS_used = 1; diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index c686b352fb..c129ad221b 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -166,7 +166,7 @@ public class Host { /** * This method returns the number of tasks currently running on a host. - * The external load (comming from an availability trace) is not taken in account. + * The external load (coming from an availability trace) is not taken in account. * * @return The number of tasks currently running on a host. */ diff --git a/include/xbt/cunit.h b/include/xbt/cunit.h index 9233bd6263..a2c95e9fba 100644 --- a/include/xbt/cunit.h +++ b/include/xbt/cunit.h @@ -6,7 +6,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -/* This is partially inspirated from the OSSP ts (Test Suite Library) */ +/* This is partially inspired from the OSSP ts (Test Suite Library) */ #ifndef _XBT_CUNIT_H_ #define _XBT_CUNIT_H_ diff --git a/src/mc/LocationList.hpp b/src/mc/LocationList.hpp index 1e1ed75c5f..52efb5bc5d 100644 --- a/src/mc/LocationList.hpp +++ b/src/mc/LocationList.hpp @@ -25,7 +25,7 @@ namespace simgrid { namespace dwarf { -/** \brief A DWARF expression with optional validity contraints */ +/** \brief A DWARF expression with optional validity constraints */ class LocationListEntry { public: typedef simgrid::xbt::Range range_type; diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index 8cd7f9f7a5..5813e62076 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -74,7 +74,7 @@ xbt_automaton_t property_automaton = nullptr; FILE *dot_output = nullptr; -/******************************* Initialisation of MC *******************************/ +/******************************* Initialization of MC *******************************/ /*********************************************************************************/ void MC_init_dot_output() @@ -139,7 +139,7 @@ void dumpStack(FILE* file, unw_cursor_t cursor) int status; - // Demangle C++ names: + // Unmangle C++ names: char* realname = abi::__cxa_demangle(name, 0, 0, &status); #if defined(__x86_64__) diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 112e18527a..4f1020c9e6 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -158,6 +158,7 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host) char *key,*data; xbt_dict_foreach(host->properties,cursor,key,data) h->setProperty(key,data); + xbt_dict_free(&host->properties); } if (host->pstate != 0) diff --git a/tools/internal/spell_dict.txt b/tools/internal/spell_dict.txt index ed4530e60b..01e1109f31 100644 --- a/tools/internal/spell_dict.txt +++ b/tools/internal/spell_dict.txt @@ -1,4 +1,5 @@ addtogroup +API argc argv atof @@ -7,32 +8,40 @@ calloc cfg const cplusplus +defgroup dict dicts +dontinclude DPOR dst dynar dynars +endverbatim FIXME Gbytes GPU hideinitializer +hpp inlining +ingroup int java Java JEDULE JNI kcachegrind +KILLME lat LGPL lmm LTL malloc Mbytes +mc Mflops MPI msg +nullptr ok Paje param @@ -53,6 +62,7 @@ SMPI smx src struct +syscall tesh todo TODO -- 2.20.1