From: Martin Quinson Date: Sun, 9 Aug 2015 10:19:38 +0000 (+0200) Subject: spell check the comments X-Git-Tag: v3_12~314 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/192e6259fa0a0a0b2aa296b0492e63b9785f1fc7 spell check the comments --- diff --git a/doc/msg-tuto-src/masterworker0.c b/doc/msg-tuto-src/masterworker0.c index 54d4af28ea..665cba9530 100644 --- a/doc/msg-tuto-src/masterworker0.c +++ b/doc/msg-tuto-src/masterworker0.c @@ -53,7 +53,7 @@ int master(int argc, char *argv[]) } } - { /* Process organisation */ + { /* Process organization */ workers_count = argc - 4; workers = xbt_new0(msg_host_t, workers_count); diff --git a/doc/msg-tuto-src/masterworker1.c b/doc/msg-tuto-src/masterworker1.c index 7f1b96ce6c..f4da4004dc 100644 --- a/doc/msg-tuto-src/masterworker1.c +++ b/doc/msg-tuto-src/masterworker1.c @@ -64,7 +64,7 @@ int master(int argc, char *argv[]) } } - { /* Process organisation */ + { /* Process organization */ workers_count = MSG_get_host_number(); workers = xbt_dynar_to_array(MSG_hosts_as_dynar()); diff --git a/doc/msg-tuto-src/masterworker2.c b/doc/msg-tuto-src/masterworker2.c index 002eac4f77..b8cdc8d753 100644 --- a/doc/msg-tuto-src/masterworker2.c +++ b/doc/msg-tuto-src/masterworker2.c @@ -51,7 +51,7 @@ int master(int argc, char *argv[]) res = sscanf(argv[3], "%lg", &task_comm_size); xbt_assert(res, "Invalid argument %s\n", argv[3]); - { /* Process organisation */ + { /* Process organization */ workers_count = MSG_get_host_number(); workers = xbt_dynar_to_array(MSG_hosts_as_dynar()); diff --git a/doc/msg-tuto-src/masterworker3.c b/doc/msg-tuto-src/masterworker3.c index 3de680f8f6..85f16da3dc 100644 --- a/doc/msg-tuto-src/masterworker3.c +++ b/doc/msg-tuto-src/masterworker3.c @@ -53,7 +53,7 @@ int master(int argc, char *argv[]) res = sscanf(argv[3], "%lg", &task_comm_size); xbt_assert(res, "Invalid argument %s\n", argv[3]); - { /* Process organisation */ + { /* Process organization */ workers_count = MSG_get_host_number(); workers = xbt_dynar_to_array(MSG_hosts_as_dynar()); diff --git a/doc/msg-tuto-src/masterworker4.c b/doc/msg-tuto-src/masterworker4.c index 9530a24afc..68ae6ee5ae 100644 --- a/doc/msg-tuto-src/masterworker4.c +++ b/doc/msg-tuto-src/masterworker4.c @@ -53,7 +53,7 @@ int master(int argc, char *argv[]) res = sscanf(argv[3], "%lg", &task_comm_size); xbt_assert(res, "Invalid argument %s\n", argv[3]); - { /* Process organisation */ + { /* Process organization */ workers_count = MSG_get_host_number(); workers = xbt_dynar_to_array(MSG_hosts_as_dynar()); diff --git a/examples/msg/masterslave/masterslave_bypass.c b/examples/msg/masterslave/masterslave_bypass.c index a6cfcb460d..bb5468421d 100644 --- a/examples/msg/masterslave/masterslave_bypass.c +++ b/examples/msg/masterslave/masterslave_bypass.c @@ -187,7 +187,7 @@ int master(int argc, char *argv[]) } } - { /* Process organisation */ + { /* Process organization */ slaves_count = argc - 4; slaves = xbt_new0(msg_host_t, slaves_count); diff --git a/examples/msg/masterslave/masterslave_cluster.c b/examples/msg/masterslave/masterslave_cluster.c index e0cf3306ee..6d1bba89b0 100644 --- a/examples/msg/masterslave/masterslave_cluster.c +++ b/examples/msg/masterslave/masterslave_cluster.c @@ -54,7 +54,7 @@ int master(int argc, char *argv[]) } } - { /* Process organisation */ + { /* Process organization */ slaves_count = argc - 4; slaves = xbt_new0(msg_host_t, slaves_count); diff --git a/examples/msg/masterslave/masterslave_failure.c b/examples/msg/masterslave/masterslave_failure.c index 6eecffa698..0e9d2fb502 100644 --- a/examples/msg/masterslave/masterslave_failure.c +++ b/examples/msg/masterslave/masterslave_failure.c @@ -39,7 +39,7 @@ int master(int argc, char *argv[]) read = sscanf(argv[3], "%lg", &task_comm_size); xbt_assert(read, "Invalid argument %s\n", argv[3]); - { /* Process organisation */ + { /* Process organization */ slaves_count = argc - 4; slaves = xbt_new0(msg_host_t, slaves_count); diff --git a/examples/msg/masterslave/masterslave_forwarder.c b/examples/msg/masterslave/masterslave_forwarder.c index 733b3264c0..7b2c01e0ac 100644 --- a/examples/msg/masterslave/masterslave_forwarder.c +++ b/examples/msg/masterslave/masterslave_forwarder.c @@ -63,7 +63,7 @@ int master(int argc, char *argv[]) } } - { /* Process organisation */ + { /* Process organization */ slaves_count = argc - 4; slaves = xbt_new0(msg_host_t, slaves_count); @@ -135,7 +135,7 @@ int forwarder(int argc, char *argv[]) int slaves_count; msg_host_t *slaves; - { /* Process organisation */ + { /* Process organization */ slaves_count = argc - 1; slaves = xbt_new0(msg_host_t, slaves_count); diff --git a/examples/msg/masterslave/masterslave_platfgen.c b/examples/msg/masterslave/masterslave_platfgen.c index ae8143ce64..733420747f 100644 --- a/examples/msg/masterslave/masterslave_platfgen.c +++ b/examples/msg/masterslave/masterslave_platfgen.c @@ -74,7 +74,7 @@ int master(int argc, char *argv[]) task_comp_size = 2400000*argc; task_comm_size = 1000000; - { /* Process organisation */ + { /* Process organization */ slaves_count = argc; slaves = xbt_new0(msg_host_t, slaves_count); @@ -174,7 +174,7 @@ int main(int argc, char **argv) { int connected; int max_tries = 10; - //MSG initialisation + //MSG initialization MSG_init(&argc, argv); //Set up the seed for the platform generation diff --git a/examples/msg/ns3/ns3.c b/examples/msg/ns3/ns3.c index 19a580bc5e..4a8b214de6 100644 --- a/examples/msg/ns3/ns3.c +++ b/examples/msg/ns3/ns3.c @@ -90,7 +90,7 @@ int master(int argc, char *argv[]) gl_data_size[id] = task_comm_size; } - { /* Process organisation */ + { /* Process organization */ MSG_get_host_by_name(slavename); } diff --git a/examples/msg/pastry/pastry.c b/examples/msg/pastry/pastry.c index 8c33d84b84..1627a37fb1 100644 --- a/examples/msg/pastry/pastry.c +++ b/examples/msg/pastry/pastry.c @@ -130,7 +130,7 @@ static int shl(int a, int b) { } /* - * Get the cloest id to the dest in the node namespace_set + * Get the closest id to the dest in the node namespace_set */ static int closest_in_namespace_set(node_t node, int dest) { int best_dist; @@ -423,7 +423,7 @@ static int join(node_t node){ } /* - * Print the node infomations + * Print the node infomation */ static void print_node(node_t node) { printf("Node:\n"); diff --git a/examples/msg/tracing/simple.c b/examples/msg/tracing/simple.c index 3e89add03e..774cdcae4d 100644 --- a/examples/msg/tracing/simple.c +++ b/examples/msg/tracing/simple.c @@ -10,7 +10,7 @@ /** @addtogroup MSG_examples * - * @section MSG_ex_tracing Tracing and vizualization features + * @section MSG_ex_tracing Tracing and vizualisation features * * - tracing/simple.c very simple program where each process creates, executes and * destroy a task. You might want to run this program with the following parameters: diff --git a/examples/simdag/dax/dax_test.c b/examples/simdag/dax/dax_test.c index 124e00b68d..91690206cd 100644 --- a/examples/simdag/dax/dax_test.c +++ b/examples/simdag/dax/dax_test.c @@ -31,7 +31,7 @@ int main(int argc, char **argv) unsigned int cursor; SD_task_t task; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* Check our arguments */ diff --git a/examples/simdag/dot/dot_test2.c b/examples/simdag/dot/dot_test2.c index 81c0b421c2..47f327a8c4 100644 --- a/examples/simdag/dot/dot_test2.c +++ b/examples/simdag/dot/dot_test2.c @@ -22,7 +22,7 @@ int main(int argc, char **argv) unsigned int cursor; SD_task_t task, *dot_as_array=NULL; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* Check our arguments */ diff --git a/examples/simdag/metaxml/sd_meta.c b/examples/simdag/metaxml/sd_meta.c index 526ea4d2e7..0f2f339ca4 100644 --- a/examples/simdag/metaxml/sd_meta.c +++ b/examples/simdag/metaxml/sd_meta.c @@ -30,7 +30,7 @@ int main(int argc, char **argv) const char *name1, *name2; int i, j, k; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* xbt_log_control_set("sd.thres=debug"); */ diff --git a/examples/simdag/properties/sd_prop.c b/examples/simdag/properties/sd_prop.c index 7a954cb0b1..72cbc00c89 100644 --- a/examples/simdag/properties/sd_prop.c +++ b/examples/simdag/properties/sd_prop.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) const char *value; char exist[] = "Hdd"; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); if (argc < 2) { XBT_INFO("Usage: %s platform_file", argv[0]); diff --git a/examples/simdag/scheduling/minmin_test.c b/examples/simdag/scheduling/minmin_test.c index a6608dbd1e..edf703aeb1 100644 --- a/examples/simdag/scheduling/minmin_test.c +++ b/examples/simdag/scheduling/minmin_test.c @@ -18,7 +18,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(test, typedef struct _WorkstationAttribute *WorkstationAttribute; struct _WorkstationAttribute { - /* Earliest time at wich a workstation is ready to execute a task */ + /* Earliest time at which a workstation is ready to execute a task */ double available_at; SD_task_t last_scheduled_task; }; diff --git a/examples/simdag/sd_test2.c b/examples/simdag/sd_test2.c index ccbb1a2049..9342bd82ed 100644 --- a/examples/simdag/sd_test2.c +++ b/examples/simdag/sd_test2.c @@ -57,7 +57,7 @@ int main(int argc, char **argv) double final_cost = 5e+9; double *ParComp_wcomm2_table; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* creation of the environment */ diff --git a/examples/simdag/simdag_trace.c b/examples/simdag/simdag_trace.c index 4e0a0d7ad0..cc2eabbbbf 100644 --- a/examples/simdag/simdag_trace.c +++ b/examples/simdag/simdag_trace.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) double rate = -1.0; SD_workstation_t w1, w2; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* xbt_log_control_set("sd.thres=debug"); */ diff --git a/teshsuite/simdag/basic/basic4.c b/teshsuite/simdag/basic/basic4.c index 9b3e44b78e..3861477333 100644 --- a/teshsuite/simdag/basic/basic4.c +++ b/teshsuite/simdag/basic/basic4.c @@ -32,7 +32,7 @@ int main(int argc, char **argv) double no_cost[] = { 0., 0., 0., 0. }; double amount[] = { 0., 1., 0., 0. }; - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* creation of the environment */ diff --git a/teshsuite/simdag/platforms/Evaluate_get_route_time.c b/teshsuite/simdag/platforms/Evaluate_get_route_time.c index 107cd9cbc9..7f303dee88 100644 --- a/teshsuite/simdag/platforms/Evaluate_get_route_time.c +++ b/teshsuite/simdag/platforms/Evaluate_get_route_time.c @@ -24,7 +24,7 @@ int main(int argc, char **argv) int list_size; xbt_os_timer_t timer = xbt_os_timer_new(); - /* initialisation of SD */ + /* SD initialization */ SD_init(&argc, argv); /* creation of the environment */ diff --git a/teshsuite/simdag/platforms/basic_parsing_test.c b/teshsuite/simdag/platforms/basic_parsing_test.c index da6283e93b..f273c69d69 100644 --- a/teshsuite/simdag/platforms/basic_parsing_test.c +++ b/teshsuite/simdag/platforms/basic_parsing_test.c @@ -11,7 +11,7 @@ int main(int argc, char **argv) { - /* initialisation of SD */ + /* SD initialization */ SD_workstation_t w1, w2; const SD_workstation_t *workstations; diff --git a/teshsuite/simdag/platforms/is_router_test.c b/teshsuite/simdag/platforms/is_router_test.c index 2aa89e4ba4..b7622b4ef0 100644 --- a/teshsuite/simdag/platforms/is_router_test.c +++ b/teshsuite/simdag/platforms/is_router_test.c @@ -13,7 +13,7 @@ extern routing_platf_t routing_platf; int main(int argc, char **argv) { - /* initialisation of SD */ + /* SD initialization */ int size; xbt_lib_cursor_t cursor = NULL; char *key, *data; diff --git a/tools/internal/spell_comments.pl b/tools/internal/spell_comments.pl index 18855d79f5..5ab59587f4 100755 --- a/tools/internal/spell_comments.pl +++ b/tools/internal/spell_comments.pl @@ -29,7 +29,7 @@ $DICTFILE="./spell_dict.txt" unless (-e $DICTFILE); die "Call this script from its location or from the SimGrid root directory\n" unless (-e $DICTFILE); die "Usage: ". ($DICTFILE eq "./spell_dict.txt"? "./":"tools/internal/")."spell_comments.pl " - ."`find ". ($DICTFILE eq "./spell_dict.txt"? "../../":".")." -name '*.[ch]' -o -name '*.hpp' -o -name '*.cpp'`\n" + ."`find ". ($DICTFILE eq "./spell_dict.txt"? "../../":".")." -name '*.[ch]' -o -name '*.hpp' -o -name '*.cpp' |grep -v umpire|grep -v smpi/mpich3-test|grep -v NAS`\n" unless length(@ARGV)>1; my $total = 0; diff --git a/tools/internal/spell_dict.txt b/tools/internal/spell_dict.txt index 50aa56ba2a..ed4530e60b 100644 --- a/tools/internal/spell_dict.txt +++ b/tools/internal/spell_dict.txt @@ -1,28 +1,64 @@ addtogroup +argc +argv +atof +callgrind +calloc +cfg const cplusplus +dict +dicts +DPOR dst +dynar +dynars FIXME +Gbytes +GPU hideinitializer +inlining +int java Java JEDULE JNI +kcachegrind lat LGPL lmm +LTL +malloc +Mbytes +Mflops +MPI +msg +ok +Paje param +pid +printf pstate +RngStream SD simcall simcalls +SimDag +simgrid SimGrid simix SIMIX +sizeof +SMPI smx src +struct +tesh todo TODO +valgrind +VM +VMs xbt XBT xml