Skip to content

Commit

Permalink
ICU-22864 Move main() out of the ICU namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
roubert committed Aug 16, 2024
1 parent 1c312f7 commit ed117b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion icu4c/source/tools/gennorm2/gennorm2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ static UOption options[]={
UOPTION_DEF("fast", '\1', UOPT_NO_ARG)
};

extern "C" int
U_NAMESPACE_END

int
main(int argc, char* argv[]) {
U_NAMESPACE_USE
U_MAIN_INIT_ARGS(argc, argv);

/* preset then read command line options */
Expand Down Expand Up @@ -228,6 +231,8 @@ main(int argc, char* argv[]) {
#endif
}

U_NAMESPACE_BEGIN

#if !UCONFIG_NO_NORMALIZATION

void parseFile(std::ifstream &f, Normalizer2DataBuilder &builder) {
Expand Down

0 comments on commit ed117b9

Please sign in to comment.