| … | … | @@ -490,7 +490,7 @@ class EErrorFacilityTestCase(unittest.TestCase): |
| 490 | 490 | self.numerr = LG_Error.printall(self.error_handler_test, None) |
| 491 | 491 | self.assertEqual(self.numerr, self.numerr) |
| 492 | 492 | |
| 493 | def test_22_defaut_handler_param(self): | |
| 493 | def test_22_default_handler_param(self): | |
| 494 | 494 | """Test bad data parameter to default error handler""" |
| 495 | 495 | # (It should be an integer >=0 and <= lg_None.) |
| 496 | 496 | # Here the error handler is still set to None. |
| … | … | @@ -20,7 +20,7 @@ |
| 20 | 20 | #include "link-includes.h" // for Sentence |
| 21 | 21 | #include "memory-pool.h" |
| 22 | 22 | |
| 23 | typedef struct match_list_cache_sruct | |
| 23 | typedef struct | |
| 24 | 24 | { |
| 25 | 25 | Disjunct *d; /* disjuncts with a jet linkage */ |
| 26 | 26 | Count_bin count; /* the counts for that linkage */ |
| … | … | @@ -121,7 +121,7 @@ static void build_sentence_disjuncts(Sentence sent, float cost_cutoff, |
| 121 | 121 | #ifdef DEBUG |
| 122 | 122 | unsigned int dcnt, ccnt; |
| 123 | 123 | count_disjuncts_and_connectors(sent, &dcnt, &ccnt); |
| 124 | lgdebug(+D_PREP, "%u disjucts, %u connectors (%zu allocated)\n", | |
| 124 | lgdebug(+D_PREP, "%u disjuncts, %u connectors (%zu allocated)\n", | |
| 125 | 125 | dcnt, ccnt, |
| 126 | 126 | pool_num_elements_issued(sent->Connector_pool) - num_con_alloced); |
| 127 | 127 | #endif |
| … | … | @@ -1321,9 +1321,9 @@ static unsigned int cms_hash(const char *s) |
| 1321 | 1321 | return (i & (CMS_SIZE-1)); |
| 1322 | 1322 | } |
| 1323 | 1323 | |
| 1324 | static void reset_last_criterion(multiset_table *cmt, const char *ctiterion) | |
| 1324 | static void reset_last_criterion(multiset_table *cmt, const char *criterion) | |
| 1325 | 1325 | { |
| 1326 | unsigned int h = cms_hash(ctiterion); | |
| 1326 | unsigned int h = cms_hash(criterion); | |
| 1327 | 1327 | |
| 1328 | 1328 | for (Cms *cms = cmt->cms_table[h]; cms != NULL; cms = cms->next) |
| 1329 | 1329 | cms->last_criterion = false; |
| … | … | @@ -82,7 +82,7 @@ void find_history_filepath(const char *dictname, const char *argv0, |
| 82 | 82 | { |
| 83 | 83 | prt_error("Warning: xdg_get_home(XDG_BD_STATE) failed; " |
| 84 | 84 | "input history will not be supported.\n"); |
| 85 | history_file = strdup("dev/null"); | |
| 85 | history_file = strdup("/dev/null"); | |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | if (get_verbosity() == D_USER_FILES) |