Switch to fully-qualified #include
Previously, mosh used extensive -I flags and all of the mosh-local makes it really hard to tell what the proper dependency graph is, so instead remove the -I arguments in favvor of $(top_srcdir) and qualify the paths wherever they are used.
This commit is contained in:
committed by
Alex Chernyakhovsky
parent
62869ae55f
commit
325098ac07
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../util $(CRYPTO_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/ $(CRYPTO_CFLAGS)
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libmoshcrypto.a
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "fatal_assert.h"
|
||||
#include "base64.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/crypto/base64.h"
|
||||
|
||||
static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef BYTEORDER_HPP
|
||||
#define BYTEORDER_HPP
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#if HAVE_DECL_BE64TOH || HAVE_DECL_BETOH64
|
||||
|
||||
|
||||
@@ -38,11 +38,11 @@
|
||||
#include <sys/resource.h>
|
||||
#include <fstream>
|
||||
|
||||
#include "byteorder.h"
|
||||
#include "crypto.h"
|
||||
#include "base64.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "prng.h"
|
||||
#include "src/crypto/byteorder.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
#include "src/crypto/base64.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/crypto/prng.h"
|
||||
|
||||
using namespace Crypto;
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
#ifndef CRYPTO_HPP
|
||||
#define CRYPTO_HPP
|
||||
|
||||
#include "ae.h"
|
||||
#include "src/crypto/ae.h"
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
/ Comments are welcome: Ted Krovetz <ted@krovetz.net> - Dedicated to Laurel K
|
||||
/------------------------------------------------------------------------- */
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
/* This module implements the ae.h interface for OpenSSL, Apple Common
|
||||
/ Crypto, and Nettle. */
|
||||
@@ -84,9 +84,9 @@
|
||||
/* Includes and compiler specific definitions */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
#include "ae.h"
|
||||
#include "crypto.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/crypto/ae.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if defined(HAVE_STRINGS_H)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "config.h"
|
||||
#include "ae.h"
|
||||
#include "src/include/config.h"
|
||||
#include "src/crypto/ae.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <openssl/crypto.h>
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
#include <stdint.h>
|
||||
#include <fstream>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
/* Read random bytes from /dev/urandom.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS)
|
||||
AM_CXXFLAGS = -I$(top_srcdir)/ $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS)
|
||||
AM_LDFLAGS = $(HARDEN_LDFLAGS)
|
||||
|
||||
if BUILD_EXAMPLES
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <locale.h>
|
||||
@@ -52,12 +52,12 @@
|
||||
#include <util.h>
|
||||
#endif
|
||||
|
||||
#include "swrite.h"
|
||||
#include "completeterminal.h"
|
||||
#include "user.h"
|
||||
#include "terminaloverlay.h"
|
||||
#include "locale_utils.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/util/swrite.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
#include "src/statesync/user.h"
|
||||
#include "src/frontend/terminaloverlay.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
|
||||
const int ITERATIONS = 100000;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
using namespace Crypto;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
using namespace Crypto;
|
||||
|
||||
|
||||
@@ -33,12 +33,12 @@
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "user.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "pty_compat.h"
|
||||
#include "networktransport-impl.h"
|
||||
#include "select.h"
|
||||
#include "shared.h"
|
||||
#include "src/statesync/user.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
#include "src/network/networktransport-impl.h"
|
||||
#include "src/util/select.h"
|
||||
#include "src/util/shared.h"
|
||||
|
||||
using namespace Network;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
@@ -53,12 +53,12 @@
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
|
||||
#include "parser.h"
|
||||
#include "swrite.h"
|
||||
#include "locale_utils.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "pty_compat.h"
|
||||
#include "select.h"
|
||||
#include "src/terminal/parser.h"
|
||||
#include "src/util/swrite.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
#include "src/util/select.h"
|
||||
|
||||
const size_t buf_size = 1024;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
@@ -60,13 +60,13 @@
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
|
||||
#include "parser.h"
|
||||
#include "completeterminal.h"
|
||||
#include "swrite.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "pty_compat.h"
|
||||
#include "locale_utils.h"
|
||||
#include "select.h"
|
||||
#include "src/terminal/parser.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
#include "src/util/swrite.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
#include "src/util/select.h"
|
||||
|
||||
const size_t buf_size = 16384;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../statesync -I$(srcdir)/../terminal -I$(srcdir)/../network -I$(srcdir)/../crypto -I../protobufs -I$(srcdir)/../util $(TINFO_CFLAGS) $(protobuf_CFLAGS) $(CRYPTO_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/ $(TINFO_CFLAGS) $(protobuf_CFLAGS) $(CRYPTO_CFLAGS)
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
AM_LDFLAGS = $(HARDEN_LDFLAGS) $(CODE_COVERAGE_LIBS)
|
||||
LDADD = ../crypto/libmoshcrypto.a ../network/libmoshnetwork.a ../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a ../util/libmoshutil.a ../protobufs/libmoshprotos.a -lm $(TINFO_LIBS) $(protobuf_LIBS) $(CRYPTO_LIBS)
|
||||
|
||||
@@ -30,16 +30,16 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "version.h"
|
||||
#include "src/include/config.h"
|
||||
#include "src/include/version.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "stmclient.h"
|
||||
#include "crypto.h"
|
||||
#include "locale_utils.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
|
||||
/* These need to be included last because of conflicting defines. */
|
||||
/*
|
||||
|
||||
+12
-12
@@ -30,8 +30,8 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "version.h"
|
||||
#include "src/include/config.h"
|
||||
#include "src/include/version.h"
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
@@ -79,21 +79,21 @@
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
|
||||
#include "completeterminal.h"
|
||||
#include "swrite.h"
|
||||
#include "user.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "locale_utils.h"
|
||||
#include "pty_compat.h"
|
||||
#include "select.h"
|
||||
#include "timestamp.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
#include "src/util/swrite.h"
|
||||
#include "src/statesync/user.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
#include "src/util/select.h"
|
||||
#include "src/util/timestamp.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
|
||||
#ifndef _PATH_BSHELL
|
||||
#define _PATH_BSHELL "/bin/sh"
|
||||
#endif
|
||||
|
||||
#include "networktransport-impl.h"
|
||||
#include "src/network/networktransport-impl.h"
|
||||
|
||||
typedef Network::Transport< Terminal::Complete, Network::UserStream > ServerConnection;
|
||||
|
||||
|
||||
+10
-10
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
@@ -52,16 +52,16 @@
|
||||
#endif
|
||||
|
||||
#include "stmclient.h"
|
||||
#include "swrite.h"
|
||||
#include "completeterminal.h"
|
||||
#include "user.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "locale_utils.h"
|
||||
#include "pty_compat.h"
|
||||
#include "select.h"
|
||||
#include "timestamp.h"
|
||||
#include "src/util/swrite.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
#include "src/statesync/user.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
#include "src/util/select.h"
|
||||
#include "src/util/timestamp.h"
|
||||
|
||||
#include "networktransport-impl.h"
|
||||
#include "src/network/networktransport-impl.h"
|
||||
|
||||
using std::wstring;
|
||||
|
||||
|
||||
@@ -37,11 +37,11 @@
|
||||
#include <termios.h>
|
||||
#include <string>
|
||||
|
||||
#include "completeterminal.h"
|
||||
#include "networktransport.h"
|
||||
#include "user.h"
|
||||
#include "shared.h"
|
||||
#include "terminaloverlay.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
#include "src/network/networktransport.h"
|
||||
#include "src/statesync/user.h"
|
||||
#include "src/util/shared.h"
|
||||
#include "src/frontend/terminaloverlay.h"
|
||||
|
||||
class STMClient {
|
||||
private:
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <typeinfo>
|
||||
#include <limits.h>
|
||||
|
||||
#include "terminaloverlay.h"
|
||||
#include "src/frontend/terminaloverlay.h"
|
||||
|
||||
using namespace Overlay;
|
||||
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
#ifndef TERMINAL_OVERLAY_HPP
|
||||
#define TERMINAL_OVERLAY_HPP
|
||||
|
||||
#include "terminalframebuffer.h"
|
||||
#include "network.h"
|
||||
#include "transportsender.h"
|
||||
#include "parser.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
#include "src/network/network.h"
|
||||
#include "src/network/transportsender.h"
|
||||
#include "src/terminal/parser.h"
|
||||
|
||||
#include <vector>
|
||||
#include <limits.h>
|
||||
|
||||
@@ -4,10 +4,10 @@ if ENABLE_FUZZING
|
||||
noinst_PROGRAMS = terminal_parser_fuzzer terminal_fuzzer
|
||||
endif
|
||||
|
||||
terminal_parser_fuzzer_CPPFLAGS = -I$(srcdir)/../terminal -I$(srcdir)/../util
|
||||
terminal_parser_fuzzer_CPPFLAGS = -I$(top_srcdir)/
|
||||
terminal_parser_fuzzer_LDADD = ../terminal/libmoshterminal.a ../util/libmoshutil.a
|
||||
terminal_parser_fuzzer_SOURCES = terminal_parser_fuzzer.cc
|
||||
|
||||
terminal_fuzzer_CPPFLAGS = -I$(srcdir)/../terminal -I$(srcdir)/../util -I$(srcdir)/../statesync -I../protobufs
|
||||
terminal_fuzzer_CPPFLAGS = -I$(top_srcdir)/
|
||||
terminal_fuzzer_LDADD = ../terminal/libmoshterminal.a ../util/libmoshutil.a ../statesync/libmoshstatesync.a ../protobufs/libmoshprotos.a $(TINFO_LIBS) $(protobuf_LIBS)
|
||||
terminal_fuzzer_SOURCES = terminal_fuzzer.cc
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#include "parser.h"
|
||||
#include "completeterminal.h"
|
||||
#include "src/terminal/parser.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
Terminal::Display display(false);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#include "parser.h"
|
||||
#include "src/terminal/parser.h"
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
Parser::UTF8Parser parser;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../util -I$(srcdir)/../crypto -I../protobufs $(protobuf_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/ $(protobuf_CFLAGS)
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libmoshnetwork.a
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <zlib.h>
|
||||
|
||||
#include "compressor.h"
|
||||
#include "dos_assert.h"
|
||||
#include "src/util/dos_assert.h"
|
||||
|
||||
using namespace Network;
|
||||
using std::string;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -44,13 +44,13 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "dos_assert.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "byteorder.h"
|
||||
#include "network.h"
|
||||
#include "crypto.h"
|
||||
#include "src/util/dos_assert.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/crypto/byteorder.h"
|
||||
#include "src/network/network.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
#include "timestamp.h"
|
||||
#include "src/util/timestamp.h"
|
||||
|
||||
#ifndef MSG_DONTWAIT
|
||||
#define MSG_DONTWAIT MSG_NONBLOCK
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <exception>
|
||||
#include <string.h>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
using namespace Crypto;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef NETWORK_TRANSPORT_IMPL_HPP
|
||||
#define NETWORK_TRANSPORT_IMPL_HPP
|
||||
|
||||
#include "networktransport.h"
|
||||
#include "src/network/networktransport.h"
|
||||
|
||||
#include "transportsender-impl.h"
|
||||
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
#include "network.h"
|
||||
#include "transportsender.h"
|
||||
#include "src/network/network.h"
|
||||
#include "src/network/transportsender.h"
|
||||
#include "transportfragment.h"
|
||||
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "byteorder.h"
|
||||
#include "src/crypto/byteorder.h"
|
||||
#include "transportfragment.h"
|
||||
#include "transportinstruction.pb.h"
|
||||
#include "src/protobufs/transportinstruction.pb.h"
|
||||
#include "compressor.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
|
||||
using namespace Network;
|
||||
using namespace TransportBuffers;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "transportinstruction.pb.h"
|
||||
#include "src/protobufs/transportinstruction.pb.h"
|
||||
|
||||
namespace Network {
|
||||
using std::vector;
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "transportsender.h"
|
||||
#include "src/network/transportsender.h"
|
||||
#include "transportfragment.h"
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
@@ -37,11 +37,11 @@
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
#include "network.h"
|
||||
#include "transportinstruction.pb.h"
|
||||
#include "src/network/network.h"
|
||||
#include "src/protobufs/transportinstruction.pb.h"
|
||||
#include "transportstate.h"
|
||||
#include "transportfragment.h"
|
||||
#include "prng.h"
|
||||
#include "src/crypto/prng.h"
|
||||
|
||||
namespace Network {
|
||||
using std::list;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../util -I$(srcdir)/../terminal -I../protobufs $(protobuf_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/ $(protobuf_CFLAGS)
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libmoshstatesync.a
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "completeterminal.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/statesync/completeterminal.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
|
||||
#include "hostinput.pb.h"
|
||||
#include "src/protobufs/hostinput.pb.h"
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
#include <list>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "parser.h"
|
||||
#include "terminal.h"
|
||||
#include "src/terminal/parser.h"
|
||||
#include "src/terminal/terminal.h"
|
||||
|
||||
/* This class represents the complete terminal -- a UTF8Parser feeding Actions to an Emulator. */
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#include <assert.h>
|
||||
#include <typeinfo>
|
||||
|
||||
#include "user.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "userinput.pb.h"
|
||||
#include "src/statesync/user.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/protobufs/userinput.pb.h"
|
||||
|
||||
using namespace Parser;
|
||||
using namespace Network;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
|
||||
#include "parseraction.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
|
||||
namespace Network {
|
||||
using std::deque;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../util $(TINFO_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/ $(TINFO_CFLAGS)
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libmoshterminal.a
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <wchar.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "parser.h"
|
||||
#include "src/terminal/parser.h"
|
||||
|
||||
const Parser::StateFamily Parser::family;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "parsertransition.h"
|
||||
#include "parseraction.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
#include "parserstate.h"
|
||||
#include "parserstatefamily.h"
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include <stdio.h>
|
||||
#include <wctype.h>
|
||||
|
||||
#include "parseraction.h"
|
||||
#include "terminal.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
#include "src/terminal/terminal.h"
|
||||
|
||||
using namespace Parser;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "shared.h"
|
||||
#include "src/util/shared.h"
|
||||
|
||||
namespace Terminal {
|
||||
class Emulator;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "parserstate.h"
|
||||
#include "parserstatefamily.h"
|
||||
#include "shared.h"
|
||||
#include "src/util/shared.h"
|
||||
|
||||
using namespace Parser;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "parseraction.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
|
||||
namespace Parser {
|
||||
class State;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <unistd.h>
|
||||
#include <typeinfo>
|
||||
|
||||
#include "terminal.h"
|
||||
#include "src/terminal/terminal.h"
|
||||
|
||||
using namespace Terminal;
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
#include <vector>
|
||||
#include <deque>
|
||||
|
||||
#include "parseraction.h"
|
||||
#include "terminalframebuffer.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
#include "terminaldispatcher.h"
|
||||
#include "terminaluserinput.h"
|
||||
#include "terminaldisplay.h"
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "terminaldispatcher.h"
|
||||
#include "parseraction.h"
|
||||
#include "terminalframebuffer.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
|
||||
using namespace Terminal;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "terminaldisplay.h"
|
||||
#include "terminalframebuffer.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
|
||||
using namespace Terminal;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef TERMINALDISPLAY_HPP
|
||||
#define TERMINALDISPLAY_HPP
|
||||
|
||||
#include "terminalframebuffer.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
|
||||
namespace Terminal {
|
||||
/* variables used within a new_frame */
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
/* This is in its own file because otherwise the ncurses #defines
|
||||
alias our own variable names. */
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
#include "terminaldisplay.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "terminalframebuffer.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
|
||||
using namespace Terminal;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
#include "shared.h"
|
||||
#include "src/util/shared.h"
|
||||
|
||||
/* Terminal framebuffer */
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "terminaldispatcher.h"
|
||||
#include "terminalframebuffer.h"
|
||||
#include "parseraction.h"
|
||||
#include "src/terminal/terminalframebuffer.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
|
||||
using namespace Terminal;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define TERMINALUSERINPUT_HPP
|
||||
|
||||
#include <string>
|
||||
#include "parseraction.h"
|
||||
#include "src/terminal/parseraction.h"
|
||||
|
||||
namespace Terminal {
|
||||
class UserInput {
|
||||
|
||||
@@ -7,7 +7,7 @@ EXTRA_DIST = \
|
||||
$(displaytests) \
|
||||
emulation-attributes.test
|
||||
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
AM_CXXFLAGS = -I$(top_srcdir)/ $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
AM_LDFLAGS = $(HARDEN_LDFLAGS) $(CODE_COVERAGE_LIBS)
|
||||
|
||||
displaytests = \
|
||||
|
||||
+4
-4
@@ -41,11 +41,11 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "base64.h"
|
||||
#include "src/crypto/base64.h"
|
||||
#include "base64_vector.h"
|
||||
#include "crypto.h"
|
||||
#include "prng.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
#include "src/crypto/prng.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
// #include "test_utils.h"
|
||||
|
||||
#define KEY_LEN 16
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "prng.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
#include "src/crypto/prng.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "test_utils.h"
|
||||
|
||||
using namespace Crypto;
|
||||
|
||||
+3
-3
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
@@ -52,8 +52,8 @@
|
||||
#include <libutil.h>
|
||||
#endif
|
||||
|
||||
#include "pty_compat.h"
|
||||
#include "swrite.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
#include "src/util/swrite.h"
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "locale_utils.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
|
||||
int main( int argc __attribute__(( unused )), char **argv __attribute__(( unused )))
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <cstdlib>
|
||||
#include <set>
|
||||
|
||||
#include "network.h"
|
||||
#include "src/network/network.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -41,12 +41,12 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "ae.h"
|
||||
#include "crypto.h"
|
||||
#include "prng.h"
|
||||
#include "fatal_assert.h"
|
||||
#include "src/crypto/ae.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
#include "src/crypto/prng.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "test_utils.h"
|
||||
#include "shared.h"
|
||||
#include "src/util/shared.h"
|
||||
|
||||
#define KEY_LEN 16
|
||||
#define NONCE_LEN 12
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
#define DUMP_NAME_FMT "%-10s "
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
AM_CXXFLAGS = -I$(top_srcdir)/ $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libmoshutil.a
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "crypto.h"
|
||||
#include "src/crypto/crypto.h"
|
||||
|
||||
static void dos_detected( const char *expression, const char *file, int line, const char *function )
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -43,7 +43,7 @@
|
||||
#include <langinfo.h>
|
||||
#endif
|
||||
|
||||
#include "locale_utils.h"
|
||||
#include "src/util/locale_utils.h"
|
||||
|
||||
|
||||
const std::string LocaleVar::str( void ) const
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#if !defined(HAVE_FORKPTY) || !defined(HAVE_CFMAKERAW)
|
||||
#include <stdio.h>
|
||||
@@ -42,7 +42,7 @@
|
||||
#include <sys/stropts.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include "pty_compat.h"
|
||||
#include "src/util/pty_compat.h"
|
||||
|
||||
#ifndef HAVE_FORKPTY
|
||||
pid_t my_forkpty( int *amaster, char *name,
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#ifndef PTY_COMPAT_HPP
|
||||
#define PTY_COMPAT_HPP
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#ifndef HAVE_FORKPTY
|
||||
# define forkpty my_forkpty
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "select.h"
|
||||
#include "src/util/select.h"
|
||||
|
||||
fd_set Select::dummy_fd_set;
|
||||
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@
|
||||
#include <sys/select.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "fatal_assert.h"
|
||||
#include "timestamp.h"
|
||||
#include "src/util/fatal_assert.h"
|
||||
#include "src/util/timestamp.h"
|
||||
|
||||
/* Convenience wrapper for pselect(2).
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
#ifndef SHARED_HPP
|
||||
#define SHARED_HPP
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#ifdef HAVE_MEMORY
|
||||
#include <memory>
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "swrite.h"
|
||||
#include "src/util/swrite.h"
|
||||
|
||||
int swrite( int fd, const char *str, ssize_t len )
|
||||
{
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "src/include/config.h"
|
||||
|
||||
#include "timestamp.h"
|
||||
#include "src/util/timestamp.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user