Skip to content

Commit

Permalink
Undo ABI breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-martian committed Mar 19, 2022
1 parent 1b70df5 commit 1fc68a8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lttoolbox/alphabet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Alphabet::size() const
}

void
Alphabet::write(FILE *output) const
Alphabet::write(FILE *output)
{
// First, we write the taglist
Compression::multibyte_write(slexicinv.size(), output); // taglist size
Expand Down
2 changes: 1 addition & 1 deletion lttoolbox/alphabet.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Alphabet
* Write method.
* @param output output stream.
*/
void write(FILE *output) const;
void write(FILE *output);

/**
* Read method.
Expand Down
4 changes: 2 additions & 2 deletions lttoolbox/file_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ openInBinFile(const string& fname)

void
writeTransducerSet(FILE* output, const UString& letters,
const Alphabet& alpha,
const map<UString, Transducer>& trans)
Alphabet& alpha,
map<UString, Transducer>& trans)
{
fwrite_unlocked(HEADER_LTTOOLBOX, 1, 4, output);
uint64_t features = 0;
Expand Down
4 changes: 2 additions & 2 deletions lttoolbox/file_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ FILE* openOutBinFile(const string& fname);
FILE* openInBinFile(const string& fname);

void writeTransducerSet(FILE* output, const UString& letters,
const Alphabet& alpha,
const map<UString, Transducer>& trans);
Alphabet& alpha,
map<UString, Transducer>& trans);
void readTransducerSet(FILE* input, set<UChar32>& letters,
Alphabet& alpha,
map<UString, Transducer>& trans);
Expand Down
4 changes: 2 additions & 2 deletions lttoolbox/transducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ Transducer::isEmpty(int const state) const
}

// Determine whether any weights are non-default (0)
bool Transducer::weighted() const {
bool Transducer::weighted() {
for (auto& it : finals) {
if (it.second != default_weight) {
return true;
Expand All @@ -530,7 +530,7 @@ bool Transducer::weighted() const {
}

void
Transducer::write(FILE *output, int const decalage) const
Transducer::write(FILE *output, int const decalage)
{
fwrite_unlocked(HEADER_TRANSDUCER, 1, 4, output);

Expand Down
4 changes: 2 additions & 2 deletions lttoolbox/transducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Transducer
* Determine whether any weight is non-default
* @return bool true or false
*/
bool weighted() const;
bool weighted();

/**
* Insertion of a single transduction, creating a new target state
Expand Down Expand Up @@ -331,7 +331,7 @@ class Transducer
* @param output the stream to write to
* @param decalage offset to sum to the tags
*/
void write(FILE *output, int const decalage = 0) const;
void write(FILE *output, int const decalage = 0);

/**
* Read method
Expand Down

0 comments on commit 1fc68a8

Please sign in to comment.