Skip to content

Commit

Permalink
Fixed problems related to date conversion function, etc. (google#1173)
Browse files Browse the repository at this point in the history
* Fixed problems related to date conversion function, etc.

Resolved a minor issue where a recent typographical error temporarily disabled the date conversion function and other functions.

Fix typos:
DATA => DATE
REWRITERS => REWRITER

MOZC_DATA_REWRITER => MOZC_DATE_REWRITER
MOZC_DATE_REWRITERS => MOZC_DATE_REWRITER
MOZC_FORTUNE_REWRITERS => MOZC_FORTUNE_REWRITER

* Fixed an unmodified comment when moving SessionConverter from session/ to engine/.

MOZC_SESSION_SESSION_CONVERTER_INTERFACE_H_ => MOZC_ENGINE_SESSION_CONVERTER_INTERFACE_H_

PiperOrigin-RevId: 723805096
  • Loading branch information
phoepsilonix authored Feb 6, 2025
1 parent 4175e0d commit 3baa8d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/engine/engine_converter_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,4 @@ class EngineConverterInterface {
} // namespace engine
} // namespace mozc

#endif // MOZC_SESSION_SESSION_CONVERTER_INTERFACE_H_
#endif // MOZC_ENGINE_SESSION_CONVERTER_INTERFACE_H_
12 changes: 6 additions & 6 deletions src/rewriter/rewriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@
#include "rewriter/command_rewriter.h"
#endif // MOZC_COMMAND_REWRITER

#ifdef MOZC_DATA_REWRITER
#ifdef MOZC_DATE_REWRITER
#include "rewriter/date_rewriter.h"
#endif // MOZC_DATA_REWRITER
#endif // MOZC_DATE_REWRITER

#ifdef MOZC_FORTUNE_REWRITER
#include "rewriter/fortune_rewriter.h"
Expand Down Expand Up @@ -161,13 +161,13 @@ Rewriter::Rewriter(const engine::Modules &modules) {
std::make_unique<UserSegmentHistoryRewriter>(pos_matcher, pos_group));
}

#ifdef MOZC_DATE_REWRITERS
#ifdef MOZC_DATE_REWRITER
AddRewriter(std::make_unique<DateRewriter>(dictionary));
#endif // MOZC_DATE_REWRITERS
#endif // MOZC_DATE_REWRITER

#ifdef MOZC_FORTUNE_REWRITERS
#ifdef MOZC_FORTUNE_REWRITER
AddRewriter(std::make_unique<FortuneRewriter>());
#endif // MOZC_FORTUNE_REWRITERS
#endif // MOZC_FORTUNE_REWRITER

#ifdef MOZC_COMMAND_REWRITER
AddRewriter(std::make_unique<CommandRewriter>());
Expand Down

0 comments on commit 3baa8d8

Please sign in to comment.