Rename .cpp => .cc and .hpp => .h

This commit is contained in:
Keith Winstein
2012-02-05 02:39:18 -05:00
parent da2f481eea
commit b0f059aaea
48 changed files with 80 additions and 80 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ LDADD = -lutil -lcrypto -lrt -lm $(top_builddir)/protobufs/libmoshprotos.a
bin_PROGRAMS = mosh-client mosh-server
source = parser.cpp parserstate.cpp terminal.cpp parseraction.cpp terminalfunctions.cpp swrite.cpp terminalframebuffer.cpp terminaldispatcher.cpp terminaluserinput.cpp terminaldisplay.cpp network.cpp ocb.cpp base64.cpp crypto.cpp networktransport.cpp transportfragment.cpp user.cpp completeterminal.cpp transportsender.cpp stmclient.cpp terminaloverlay.cpp
source = parser.cc parserstate.cc terminal.cc parseraction.cc terminalfunctions.cc swrite.cc terminalframebuffer.cc terminaldispatcher.cc terminaluserinput.cc terminaldisplay.cc network.cc ocb.cc base64.cc crypto.cc networktransport.cc transportfragment.cc user.cc completeterminal.cc transportsender.cc stmclient.cc terminaloverlay.cc
mosh_client_SOURCES = mosh-client.cpp $(source)
mosh_client_SOURCES = mosh-client.cc $(source)
mosh_server_SOURCES = mosh-server.cpp $(source)
mosh_server_SOURCES = mosh-server.cc $(source)
View File
View File
@@ -1,4 +1,4 @@
#include "completeterminal.hpp"
#include "completeterminal.h"
#include "hostinput.pb.h"
@@ -1,8 +1,8 @@
#ifndef COMPLETE_TERMINAL_HPP
#define COMPLETE_TERMINAL_HPP
#include "parser.hpp"
#include "terminal.hpp"
#include "parser.h"
#include "terminal.h"
/* This class represents the complete terminal -- a UTF8Parser feeding Actions to an Emulator. */
+2 -2
View File
@@ -1,7 +1,7 @@
#include <string.h>
#include <stdio.h>
#include "crypto.hpp"
#include "crypto.h"
#include "base64.h"
using namespace std;
@@ -180,7 +180,7 @@ string Session::encrypt( Message plaintext )
free( pt );
free( ciphertext );
return plaintext.nonce.cpp_str() + text;
return plaintext.nonce.cc_str() + text;
}
Message Session::decrypt( string ciphertext )
+2 -2
View File
@@ -1,7 +1,7 @@
#ifndef CRYPTO_HPP
#define CRYPTO_HPP
#include "ae.hpp"
#include "ae.h"
#include <string>
#include <string.h>
@@ -35,7 +35,7 @@ namespace Crypto {
Nonce( uint64_t val );
Nonce( char *s_bytes, size_t len );
string cpp_str( void ) { return string( (char *)( bytes + 4 ), 8 ); }
string cc_str( void ) { return string( (char *)( bytes + 4 ), 8 ); }
char *data( void ) { return bytes; }
uint64_t val( void );
};
+1 -1
View File
@@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "crypto.hpp"
#include "crypto.h"
static void dos_detected( const char *expression, const char *file, int line, const char *function )
{
+2 -2
View File
@@ -1,8 +1,8 @@
#include <stdlib.h>
#include <string.h>
#include "stmclient.hpp"
#include "crypto.hpp"
#include "stmclient.h"
#include "crypto.h"
int main( int argc, char *argv[] )
{
+4 -4
View File
@@ -14,11 +14,11 @@
#include <signal.h>
#include <sys/signalfd.h>
#include "completeterminal.hpp"
#include "swrite.hpp"
#include "user.hpp"
#include "completeterminal.h"
#include "swrite.h"
#include "user.h"
#include "networktransport.cpp"
#include "networktransport.cc"
void serve( int host_fd, const char *desired_ip );
+3 -3
View File
@@ -5,9 +5,9 @@
#include <assert.h>
#include <endian.h>
#include "dos_assert.hpp"
#include "network.hpp"
#include "crypto.hpp"
#include "dos_assert.h"
#include "network.h"
#include "crypto.h"
using namespace std;
using namespace Network;
+1 -1
View File
@@ -8,7 +8,7 @@
#include <string>
#include <math.h>
#include "crypto.hpp"
#include "crypto.h"
using namespace std;
using namespace Crypto;
@@ -1,9 +1,9 @@
#include <assert.h>
#include <iostream>
#include "networktransport.hpp"
#include "networktransport.h"
#include "transportsender.cpp"
#include "transportsender.cc"
using namespace Network;
using namespace std;
@@ -7,9 +7,9 @@
#include <list>
#include <vector>
#include "network.hpp"
#include "transportsender.hpp"
#include "transportfragment.hpp"
#include "network.h"
#include "transportsender.h"
#include "transportfragment.h"
using namespace std;
+1 -1
View File
@@ -70,7 +70,7 @@
/* Includes and compiler specific definitions */
/* ----------------------------------------------------------------------- */
#include "ae.hpp"
#include "ae.h"
#include <stdlib.h>
#include <string.h>
+1 -1
View File
@@ -2,7 +2,7 @@
#include <typeinfo>
#include <langinfo.h>
#include "parser.hpp"
#include "parser.h"
static void append_or_delete( Parser::Action *act,
std::list<Parser::Action *>&vec )
+4 -4
View File
@@ -8,10 +8,10 @@
#include <list>
#include <string.h>
#include "parsertransition.hpp"
#include "parseraction.hpp"
#include "parserstate.hpp"
#include "parserstatefamily.hpp"
#include "parsertransition.h"
#include "parseraction.h"
#include "parserstate.h"
#include "parserstatefamily.h"
#ifndef __STDC_ISO_10646__
#error "Must have __STDC_ISO_10646__"
+2 -2
View File
@@ -1,8 +1,8 @@
#include <stdio.h>
#include <wctype.h>
#include "parseraction.hpp"
#include "terminal.hpp"
#include "parseraction.h"
#include "terminal.h"
using namespace Parser;
+2 -2
View File
@@ -1,5 +1,5 @@
#include "parserstate.hpp"
#include "parserstatefamily.hpp"
#include "parserstate.h"
#include "parserstatefamily.h"
using namespace Parser;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef PARSERSTATE_HPP
#define PARSERSTATE_HPP
#include "parsertransition.hpp"
#include "parsertransition.h"
namespace Parser {
class StateFamily;
@@ -1,7 +1,7 @@
#ifndef PARSERSTATEFAMILY_HPP
#define PARSERSTATEFAMILY_HPP
#include "parserstate.hpp"
#include "parserstate.h"
namespace Parser {
class StateFamily
@@ -3,7 +3,7 @@
#include <stdlib.h>
#include "parseraction.hpp"
#include "parseraction.h"
namespace Parser {
class State;
+5 -5
View File
@@ -13,12 +13,12 @@
#include <sys/signalfd.h>
#include <time.h>
#include "stmclient.hpp"
#include "swrite.hpp"
#include "completeterminal.hpp"
#include "user.hpp"
#include "stmclient.h"
#include "swrite.h"
#include "completeterminal.h"
#include "user.h"
#include "networktransport.cpp"
#include "networktransport.cc"
void STMClient::init( void )
{
+4 -4
View File
@@ -5,10 +5,10 @@
#include <termios.h>
#include <string>
#include "completeterminal.hpp"
#include "networktransport.hpp"
#include "user.hpp"
#include "terminaloverlay.hpp"
#include "completeterminal.h"
#include "networktransport.h"
#include "user.h"
#include "terminaloverlay.h"
class STMClient {
private:
+1 -1
View File
@@ -2,7 +2,7 @@
#include <string.h>
#include <stdio.h>
#include "swrite.hpp"
#include "swrite.h"
int swrite( int fd, const char *str, ssize_t len )
{
View File
+2 -2
View File
@@ -4,8 +4,8 @@
#include <unistd.h>
#include <typeinfo>
#include "terminal.hpp"
#include "swrite.hpp"
#include "terminal.h"
#include "swrite.h"
using namespace Terminal;
+5 -5
View File
@@ -6,11 +6,11 @@
#include <vector>
#include <deque>
#include "parseraction.hpp"
#include "terminalframebuffer.hpp"
#include "terminaldispatcher.hpp"
#include "terminaluserinput.hpp"
#include "terminaldisplay.hpp"
#include "parseraction.h"
#include "terminalframebuffer.h"
#include "terminaldispatcher.h"
#include "terminaluserinput.h"
#include "terminaldisplay.h"
namespace Terminal {
class Emulator {
@@ -2,9 +2,9 @@
#include <assert.h>
#include <string.h>
#include "terminaldispatcher.hpp"
#include "parseraction.hpp"
#include "terminalframebuffer.hpp"
#include "terminaldispatcher.h"
#include "parseraction.h"
#include "terminalframebuffer.h"
using namespace Terminal;
@@ -1,6 +1,6 @@
#include <assert.h>
#include "terminaldisplay.hpp"
#include "terminaldisplay.h"
using namespace Terminal;
@@ -1,7 +1,7 @@
#ifndef TERMINALDISPLAY_HPP
#define TERMINALDISPLAY_HPP
#include "terminalframebuffer.hpp"
#include "terminalframebuffer.h"
namespace Terminal {
/* variables used within a new_frame */
@@ -1,6 +1,6 @@
#include <assert.h>
#include "terminalframebuffer.hpp"
#include "terminalframebuffer.h"
using namespace Terminal;
@@ -1,9 +1,9 @@
#include <unistd.h>
#include <string>
#include "terminaldispatcher.hpp"
#include "terminalframebuffer.hpp"
#include "parseraction.hpp"
#include "terminaldispatcher.h"
#include "terminalframebuffer.h"
#include "parseraction.h"
using namespace Terminal;
@@ -4,7 +4,7 @@
#include <typeinfo>
#include <limits.h>
#include "terminaloverlay.hpp"
#include "terminaloverlay.h"
using namespace Overlay;
@@ -1,9 +1,9 @@
#ifndef TERMINAL_OVERLAY_HPP
#define TERMINAL_OVERLAY_HPP
#include "terminalframebuffer.hpp"
#include "network.hpp"
#include "parser.hpp"
#include "terminalframebuffer.h"
#include "network.h"
#include "parser.h"
#include <vector>
@@ -1,4 +1,4 @@
#include "terminaluserinput.hpp"
#include "terminaluserinput.h"
using namespace Terminal;
@@ -2,7 +2,7 @@
#define TERMINALUSERINPUT_HPP
#include <string>
#include "parseraction.hpp"
#include "parseraction.h"
namespace Terminal {
class UserInput {
@@ -1,7 +1,7 @@
#include <endian.h>
#include <assert.h>
#include "transportfragment.hpp"
#include "transportfragment.h"
#include "transportinstruction.pb.h"
using namespace Network;
@@ -1,8 +1,8 @@
#include <algorithm>
#include <list>
#include "transportsender.hpp"
#include "transportfragment.hpp"
#include "transportsender.h"
#include "transportfragment.h"
using namespace Network;
@@ -5,10 +5,10 @@
#include <string>
#include <list>
#include "network.hpp"
#include "network.h"
#include "transportinstruction.pb.h"
#include "transportstate.hpp"
#include "transportfragment.hpp"
#include "transportstate.h"
#include "transportfragment.h"
using namespace std;
using namespace TransportBuffers;
+1 -1
View File
@@ -1,7 +1,7 @@
#include <assert.h>
#include <typeinfo>
#include "user.hpp"
#include "user.h"
#include "userinput.pb.h"
using namespace Parser;
+1 -1
View File
@@ -6,7 +6,7 @@
#include <string>
#include <assert.h>
#include "parseraction.hpp"
#include "parseraction.h"
using namespace std;