OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-link-grammar commits / 1c6c69a

Fix typos in code
1c6c69a7e93bda2d4b86f2bcc686a28bd8a63ca4
by ampli <amirpli@gmail.com> · 2024-05-31T00:26:32.000Z

Changed files (5) +6 -6

bindings/python-examples/tests.py +1 -1
……@@ -490,7 +490,7 @@ class EErrorFacilityTestCase(unittest.TestCase):
490490 self.numerr = LG_Error.printall(self.error_handler_test, None)
491491 self.assertEqual(self.numerr, self.numerr)
492492
493 def test_22_defaut_handler_param(self):
493 def test_22_default_handler_param(self):
494494 """Test bad data parameter to default error handler"""
495495 # (It should be an integer >=0 and <= lg_None.)
496496 # Here the error handler is still set to None.
link-grammar/parse/fast-match.h +1 -1
……@@ -20,7 +20,7 @@
2020#include "link-includes.h" // for Sentence
2121#include "memory-pool.h"
2222
23typedef struct match_list_cache_sruct
23typedef struct
2424{
2525 Disjunct *d; /* disjuncts with a jet linkage */
2626 Count_bin count; /* the counts for that linkage */
link-grammar/parse/preparation.c +1 -1
……@@ -121,7 +121,7 @@ static void build_sentence_disjuncts(Sentence sent, float cost_cutoff,
121121#ifdef DEBUG
122122 unsigned int dcnt, ccnt;
123123 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",
125125 dcnt, ccnt,
126126 pool_num_elements_issued(sent->Connector_pool) - num_con_alloced);
127127#endif
link-grammar/parse/prune.c +2 -2
……@@ -1321,9 +1321,9 @@ static unsigned int cms_hash(const char *s)
13211321 return (i & (CMS_SIZE-1));
13221322}
13231323
1324static void reset_last_criterion(multiset_table *cmt, const char *ctiterion)
1324static void reset_last_criterion(multiset_table *cmt, const char *criterion)
13251325{
1326 unsigned int h = cms_hash(ctiterion);
1326 unsigned int h = cms_hash(criterion);
13271327
13281328 for (Cms *cms = cmt->cms_table[h]; cms != NULL; cms = cms->next)
13291329 cms->last_criterion = false;
link-parser/lg_readline.c +1 -1
……@@ -82,7 +82,7 @@ void find_history_filepath(const char *dictname, const char *argv0,
8282 {
8383 prt_error("Warning: xdg_get_home(XDG_BD_STATE) failed; "
8484 "input history will not be supported.\n");
85 history_file = strdup("dev/null");
85 history_file = strdup("/dev/null");
8686 }
8787
8888 if (get_verbosity() == D_USER_FILES)