Skip to content

Commit

Permalink
include headers in proper location
Browse files Browse the repository at this point in the history
.h has headers required for prototyping
.cc has headers required for definition
  • Loading branch information
singh-lokendra committed Jul 11, 2019
1 parent e8e2342 commit d014437
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 34 deletions.
8 changes: 8 additions & 0 deletions apertium/pretransfer.cc
@@ -1,5 +1,13 @@
#include <apertium/pretransfer.h>

#include <lttoolbox/lt_locale.h>
#include <apertium/apertium_config.h>
#include <apertium/unlocked_cstdio.h>
#include <apertium/string_utils.h>

#include <iostream>
#include <string>

void readAndWriteUntil(FILE *input, FILE *output, int const charcode)
{
int mychar;
Expand Down
5 changes: 0 additions & 5 deletions apertium/pretransfer.h
Expand Up @@ -2,12 +2,7 @@
#define PRETRANSFER_H

#include <iostream>
#include <string>

#include <lttoolbox/lt_locale.h>
#include <apertium/apertium_config.h>
#include <apertium/unlocked_cstdio.h>
#include <apertium/string_utils.h>

void readAndWriteUntil(FILE *input, FILE *output, int const charcode);
void procWord(FILE *input, FILE *output, bool surface_forms, bool compound_sep);
Expand Down
38 changes: 38 additions & 0 deletions apertium/tagger.cc
@@ -1,5 +1,43 @@
#include<apertium/tagger.h>

#include "apertium_config.h"

#include "align.h"
#include "basic_exception_type.h"
#include "basic_stream_tagger.h"
#include "basic_stream_tagger_trainer.h"
#include "basic_tagger.h"
#include "err_exception.h"
#include "exception.h"
#include "file_tagger.h"
#include "linebreak.h"
#include "stream_5_3_1_tagger.h"
#include "stream_5_3_1_tagger_trainer.h"
#include "stream_5_3_2_tagger.h"
#include "stream_5_3_2_tagger_trainer.h"
#include "stream_5_3_3_tagger.h"
#include "stream_5_3_3_tagger_trainer.h"
#include <apertium/perceptron_tagger.h>
#include <apertium/hmm.h>
#include <apertium/lswpost.h>
#include <apertium/tagger_word.h>
#include <apertium/shell_utils.h>

#include <lttoolbox/lt_locale.h>

#include "getopt_long.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <ios>
#include <iostream>
#include <locale>
#include <sstream>
#include <string>
#include <unistd.h>

namespace Apertium {
using namespace ShellUtils;
Expand Down
29 changes: 0 additions & 29 deletions apertium/tagger.h
Expand Up @@ -18,45 +18,16 @@

#include "apertium_config.h"

#include "align.h"
#include "basic_exception_type.h"
#include "basic_stream_tagger.h"
#include "basic_stream_tagger_trainer.h"
#include "basic_tagger.h"
#include "constructor_eq_delete.h"
#include "err_exception.h"
#include "exception.h"
#include "file_tagger.h"
#include "linebreak.h"
#include "optional.h"
#include "stream_5_3_1_tagger.h"
#include "stream_5_3_1_tagger_trainer.h"
#include "stream_5_3_2_tagger.h"
#include "stream_5_3_2_tagger_trainer.h"
#include "stream_5_3_3_tagger.h"
#include "stream_5_3_3_tagger_trainer.h"
#include <apertium/perceptron_tagger.h>
#include <apertium/file_morpho_stream.h>
#include <apertium/hmm.h>
#include <apertium/lswpost.h>
#include <apertium/tagger_word.h>
#include <apertium/shell_utils.h>

#include <lttoolbox/lt_locale.h>

#include "getopt_long.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <ios>
#include <iostream>
#include <locale>
#include <sstream>
#include <string>
#include <unistd.h>
#include <string>

namespace Apertium {
Expand Down

0 comments on commit d014437

Please sign in to comment.