Commit 150ee0854fcea2f79f23c2e569ff963baedf0d38

Authored by Perry Werneck
1 parent d37b22f7
Exists in master and in 1 other branch develop

Debugging on windows.

client/src/testprogram/testprogram.cc
@@ -36,6 +36,8 @@ @@ -36,6 +36,8 @@
36 * 36 *
37 */ 37 */
38 38
  39 + #include <ctime>
  40 +
39 #ifndef _WIN32 41 #ifndef _WIN32
40 #include <getopt.h> 42 #include <getopt.h>
41 #pragma GCC diagnostic ignored "-Wunused-function" 43 #pragma GCC diagnostic ignored "-Wunused-function"
@@ -125,6 +127,17 @@ @@ -125,6 +127,17 @@
125 127
126 TN3270::Host host{session}; 128 TN3270::Host host{session};
127 129
  130 + host.connect();
  131 +
  132 + cout << "------------------------------" << endl;
  133 + auto start = time(nullptr);
  134 + host.waitForReady(5);
  135 + cout << "Time: " << (time(nullptr) - start) << std::endl;
  136 + cout << "------------------------------" << endl;
  137 +
  138 + host.disconnect();
  139 +
  140 + /*
128 cout 141 cout
129 << "Version: " << host["version"] 142 << "Version: " << host["version"]
130 << "\tRevision: " << host["Revision"] 143 << "\tRevision: " << host["Revision"]
@@ -169,6 +182,8 @@ @@ -169,6 +182,8 @@
169 182
170 host.disconnect(); 183 host.disconnect();
171 184
  185 + */
  186 +
172 } catch(const std::exception &e) { 187 } catch(const std::exception &e) {
173 188
174 cerr << std::endl << e.what() << std::endl << std::endl; 189 cerr << std::endl << e.what() << std::endl << std::endl;
locale/Makefile.in
@@ -65,7 +65,7 @@ $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ @@ -65,7 +65,7 @@ $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \
65 @$(MKDIR) `dirname $@` 65 @$(MKDIR) `dirname $@`
66 @$(MSGFMT) -c -v -o $@ $^ 66 @$(MSGFMT) -c -v -o $@ $^
67 67
68 -$(DESTDIR)/$(localedir)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \ 68 +$(DESTDIR)$(localedir)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo: \
69 $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo 69 $(BINDIR)/%/LC_MESSAGES/$(GETTEXT_PACKAGE).mo
70 70
71 @echo $< ... 71 @echo $< ...
@@ -78,7 +78,7 @@ all: \ @@ -78,7 +78,7 @@ all: \
78 $(foreach SRC, $(basename $(wildcard *.po)), $(BINDIR)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) 78 $(foreach SRC, $(basename $(wildcard *.po)), $(BINDIR)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo)
79 79
80 install: \ 80 install: \
81 - $(foreach SRC, $(basename $(wildcard *.po)), $(DESTDIR)/$(localedir)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo) 81 + $(foreach SRC, $(basename $(wildcard *.po)), $(DESTDIR)$(localedir)/$(SRC)/LC_MESSAGES/$(GETTEXT_PACKAGE).mo)
82 82
83 83
84 84