| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-02-09 20:03:33 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-02-09 20:03:33 +0100 |
| commit | 7af295b2ec22f06b24079bf895ac97079f64b6d7 (patch) | |
| tree | 84a554fc2c169956e3ee975152332c39f6c3615a /src/knowledge/knowledge_swt_tws_modifications.c | |
| parent | 9ca43c73ba29d6b42cd771f1567074418c883c3e (diff) | |
It's starting to "properly" reply...
The ACSL coverage is far behind though.
Diffstat (limited to 'src/knowledge/knowledge_swt_tws_modifications.c')
| -rw-r--r-- | src/knowledge/knowledge_swt_tws_modifications.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/knowledge/knowledge_swt_tws_modifications.c b/src/knowledge/knowledge_swt_tws_modifications.c index 40e2e3b..1a8048d 100644 --- a/src/knowledge/knowledge_swt_tws_modifications.c +++ b/src/knowledge/knowledge_swt_tws_modifications.c @@ -2,7 +2,7 @@ #include "../core/index.h" -#include "../pipe/pipe.h" +#include "../error/error.h" #include "knowledge.h" @@ -12,7 +12,7 @@ static int add_target const ZoO_index target_id, const ZoO_index s_index, const ZoO_index t_index, - const struct ZoO_pipe io [const restrict static 1] + FILE io [const restrict static 1] ) { struct ZoO_knowledge_target * new_p; @@ -68,7 +68,7 @@ static int add_sequence struct ZoO_knowledge_sequence_collection sc [const restrict static 1], const ZoO_index sequence_id, ZoO_index s_index [const restrict static 1], - const struct ZoO_pipe io [const restrict static 1] + FILE io [const restrict static 1] ) { struct ZoO_knowledge_sequence_data * new_p; @@ -149,7 +149,7 @@ static int add_sequence sc->sequences_ref[*s_index].targets = (struct ZoO_knowledge_target *) NULL; sc->sequences_ref[*s_index].targets_length = 0; - return -1; + return 0; } int ZoO_knowledge_strengthen_swt @@ -158,7 +158,7 @@ int ZoO_knowledge_strengthen_swt const ZoO_index sequence_id, const ZoO_index word_id, const ZoO_index target_id, - const struct ZoO_pipe io [const restrict static 1] + FILE io [const restrict static 1] ) { ZoO_index s_index, t_index; @@ -248,7 +248,7 @@ int ZoO_knowledge_strengthen_tws const ZoO_index target_id, const ZoO_index word_id, const ZoO_index sequence_id, - const struct ZoO_pipe io [const restrict static 1] + FILE io [const restrict static 1] ) { ZoO_index s_index, t_index; @@ -278,7 +278,6 @@ int ZoO_knowledge_strengthen_tws } } - if ( ZoO_knowledge_find_sequence_target @@ -330,5 +329,5 @@ int ZoO_knowledge_strengthen_tws k->words[word_id].tws.sequences_ref[s_index].occurrences += 1; k->words[word_id].tws.sequences_ref[s_index].targets[t_index].occurrences += 1; - return -1; + return 0; } |


