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
+1 -1
View File
@@ -4,7 +4,7 @@
AC_PREREQ([2.68]) AC_PREREQ([2.68])
AC_INIT(mosh, 0.9, mosh-devel@mit.edu) AC_INIT(mosh, 0.9, mosh-devel@mit.edu)
AM_INIT_AUTOMAKE(mosh, 0.9) AM_INIT_AUTOMAKE(mosh, 0.9)
AC_CONFIG_SRCDIR([src/transportfragment.hpp]) AC_CONFIG_SRCDIR([src/transportfragment.h])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AC_OUTPUT(Makefile src/Makefile protobufs/Makefile scripts/Makefile) AC_OUTPUT(Makefile src/Makefile protobufs/Makefile scripts/Makefile)
+3 -3
View File
@@ -5,8 +5,8 @@ LDADD = -lutil -lcrypto -lrt -lm $(top_builddir)/protobufs/libmoshprotos.a
bin_PROGRAMS = mosh-client mosh-server 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" #include "hostinput.pb.h"
@@ -1,8 +1,8 @@
#ifndef COMPLETE_TERMINAL_HPP #ifndef COMPLETE_TERMINAL_HPP
#define COMPLETE_TERMINAL_HPP #define COMPLETE_TERMINAL_HPP
#include "parser.hpp" #include "parser.h"
#include "terminal.hpp" #include "terminal.h"
/* This class represents the complete terminal -- a UTF8Parser feeding Actions to an Emulator. */ /* 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 <string.h>
#include <stdio.h> #include <stdio.h>
#include "crypto.hpp" #include "crypto.h"
#include "base64.h" #include "base64.h"
using namespace std; using namespace std;
@@ -180,7 +180,7 @@ string Session::encrypt( Message plaintext )
free( pt ); free( pt );
free( ciphertext ); free( ciphertext );
return plaintext.nonce.cpp_str() + text; return plaintext.nonce.cc_str() + text;
} }
Message Session::decrypt( string ciphertext ) Message Session::decrypt( string ciphertext )
+2 -2
View File
@@ -1,7 +1,7 @@
#ifndef CRYPTO_HPP #ifndef CRYPTO_HPP
#define CRYPTO_HPP #define CRYPTO_HPP
#include "ae.hpp" #include "ae.h"
#include <string> #include <string>
#include <string.h> #include <string.h>
@@ -35,7 +35,7 @@ namespace Crypto {
Nonce( uint64_t val ); Nonce( uint64_t val );
Nonce( char *s_bytes, size_t len ); 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; } char *data( void ) { return bytes; }
uint64_t val( void ); uint64_t val( void );
}; };
+1 -1
View File
@@ -4,7 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.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 ) 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 <stdlib.h>
#include <string.h> #include <string.h>
#include "stmclient.hpp" #include "stmclient.h"
#include "crypto.hpp" #include "crypto.h"
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
+4 -4
View File
@@ -14,11 +14,11 @@
#include <signal.h> #include <signal.h>
#include <sys/signalfd.h> #include <sys/signalfd.h>
#include "completeterminal.hpp" #include "completeterminal.h"
#include "swrite.hpp" #include "swrite.h"
#include "user.hpp" #include "user.h"
#include "networktransport.cpp" #include "networktransport.cc"
void serve( int host_fd, const char *desired_ip ); void serve( int host_fd, const char *desired_ip );
+3 -3
View File
@@ -5,9 +5,9 @@
#include <assert.h> #include <assert.h>
#include <endian.h> #include <endian.h>
#include "dos_assert.hpp" #include "dos_assert.h"
#include "network.hpp" #include "network.h"
#include "crypto.hpp" #include "crypto.h"
using namespace std; using namespace std;
using namespace Network; using namespace Network;
+1 -1
View File
@@ -8,7 +8,7 @@
#include <string> #include <string>
#include <math.h> #include <math.h>
#include "crypto.hpp" #include "crypto.h"
using namespace std; using namespace std;
using namespace Crypto; using namespace Crypto;
@@ -1,9 +1,9 @@
#include <assert.h> #include <assert.h>
#include <iostream> #include <iostream>
#include "networktransport.hpp" #include "networktransport.h"
#include "transportsender.cpp" #include "transportsender.cc"
using namespace Network; using namespace Network;
using namespace std; using namespace std;
@@ -7,9 +7,9 @@
#include <list> #include <list>
#include <vector> #include <vector>
#include "network.hpp" #include "network.h"
#include "transportsender.hpp" #include "transportsender.h"
#include "transportfragment.hpp" #include "transportfragment.h"
using namespace std; using namespace std;
+1 -1
View File
@@ -70,7 +70,7 @@
/* Includes and compiler specific definitions */ /* Includes and compiler specific definitions */
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
#include "ae.hpp" #include "ae.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
+1 -1
View File
@@ -2,7 +2,7 @@
#include <typeinfo> #include <typeinfo>
#include <langinfo.h> #include <langinfo.h>
#include "parser.hpp" #include "parser.h"
static void append_or_delete( Parser::Action *act, static void append_or_delete( Parser::Action *act,
std::list<Parser::Action *>&vec ) std::list<Parser::Action *>&vec )
+4 -4
View File
@@ -8,10 +8,10 @@
#include <list> #include <list>
#include <string.h> #include <string.h>
#include "parsertransition.hpp" #include "parsertransition.h"
#include "parseraction.hpp" #include "parseraction.h"
#include "parserstate.hpp" #include "parserstate.h"
#include "parserstatefamily.hpp" #include "parserstatefamily.h"
#ifndef __STDC_ISO_10646__ #ifndef __STDC_ISO_10646__
#error "Must have __STDC_ISO_10646__" #error "Must have __STDC_ISO_10646__"
+2 -2
View File
@@ -1,8 +1,8 @@
#include <stdio.h> #include <stdio.h>
#include <wctype.h> #include <wctype.h>
#include "parseraction.hpp" #include "parseraction.h"
#include "terminal.hpp" #include "terminal.h"
using namespace Parser; using namespace Parser;
+2 -2
View File
@@ -1,5 +1,5 @@
#include "parserstate.hpp" #include "parserstate.h"
#include "parserstatefamily.hpp" #include "parserstatefamily.h"
using namespace Parser; using namespace Parser;
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef PARSERSTATE_HPP #ifndef PARSERSTATE_HPP
#define PARSERSTATE_HPP #define PARSERSTATE_HPP
#include "parsertransition.hpp" #include "parsertransition.h"
namespace Parser { namespace Parser {
class StateFamily; class StateFamily;
@@ -1,7 +1,7 @@
#ifndef PARSERSTATEFAMILY_HPP #ifndef PARSERSTATEFAMILY_HPP
#define PARSERSTATEFAMILY_HPP #define PARSERSTATEFAMILY_HPP
#include "parserstate.hpp" #include "parserstate.h"
namespace Parser { namespace Parser {
class StateFamily class StateFamily
@@ -3,7 +3,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "parseraction.hpp" #include "parseraction.h"
namespace Parser { namespace Parser {
class State; class State;
+5 -5
View File
@@ -13,12 +13,12 @@
#include <sys/signalfd.h> #include <sys/signalfd.h>
#include <time.h> #include <time.h>
#include "stmclient.hpp" #include "stmclient.h"
#include "swrite.hpp" #include "swrite.h"
#include "completeterminal.hpp" #include "completeterminal.h"
#include "user.hpp" #include "user.h"
#include "networktransport.cpp" #include "networktransport.cc"
void STMClient::init( void ) void STMClient::init( void )
{ {
+4 -4
View File
@@ -5,10 +5,10 @@
#include <termios.h> #include <termios.h>
#include <string> #include <string>
#include "completeterminal.hpp" #include "completeterminal.h"
#include "networktransport.hpp" #include "networktransport.h"
#include "user.hpp" #include "user.h"
#include "terminaloverlay.hpp" #include "terminaloverlay.h"
class STMClient { class STMClient {
private: private:
+1 -1
View File
@@ -2,7 +2,7 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include "swrite.hpp" #include "swrite.h"
int swrite( int fd, const char *str, ssize_t len ) int swrite( int fd, const char *str, ssize_t len )
{ {
View File
+2 -2
View File
@@ -4,8 +4,8 @@
#include <unistd.h> #include <unistd.h>
#include <typeinfo> #include <typeinfo>
#include "terminal.hpp" #include "terminal.h"
#include "swrite.hpp" #include "swrite.h"
using namespace Terminal; using namespace Terminal;
+5 -5
View File
@@ -6,11 +6,11 @@
#include <vector> #include <vector>
#include <deque> #include <deque>
#include "parseraction.hpp" #include "parseraction.h"
#include "terminalframebuffer.hpp" #include "terminalframebuffer.h"
#include "terminaldispatcher.hpp" #include "terminaldispatcher.h"
#include "terminaluserinput.hpp" #include "terminaluserinput.h"
#include "terminaldisplay.hpp" #include "terminaldisplay.h"
namespace Terminal { namespace Terminal {
class Emulator { class Emulator {
@@ -2,9 +2,9 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "terminaldispatcher.hpp" #include "terminaldispatcher.h"
#include "parseraction.hpp" #include "parseraction.h"
#include "terminalframebuffer.hpp" #include "terminalframebuffer.h"
using namespace Terminal; using namespace Terminal;
@@ -1,6 +1,6 @@
#include <assert.h> #include <assert.h>
#include "terminaldisplay.hpp" #include "terminaldisplay.h"
using namespace Terminal; using namespace Terminal;
@@ -1,7 +1,7 @@
#ifndef TERMINALDISPLAY_HPP #ifndef TERMINALDISPLAY_HPP
#define TERMINALDISPLAY_HPP #define TERMINALDISPLAY_HPP
#include "terminalframebuffer.hpp" #include "terminalframebuffer.h"
namespace Terminal { namespace Terminal {
/* variables used within a new_frame */ /* variables used within a new_frame */
@@ -1,6 +1,6 @@
#include <assert.h> #include <assert.h>
#include "terminalframebuffer.hpp" #include "terminalframebuffer.h"
using namespace Terminal; using namespace Terminal;
@@ -1,9 +1,9 @@
#include <unistd.h> #include <unistd.h>
#include <string> #include <string>
#include "terminaldispatcher.hpp" #include "terminaldispatcher.h"
#include "terminalframebuffer.hpp" #include "terminalframebuffer.h"
#include "parseraction.hpp" #include "parseraction.h"
using namespace Terminal; using namespace Terminal;
@@ -4,7 +4,7 @@
#include <typeinfo> #include <typeinfo>
#include <limits.h> #include <limits.h>
#include "terminaloverlay.hpp" #include "terminaloverlay.h"
using namespace Overlay; using namespace Overlay;
@@ -1,9 +1,9 @@
#ifndef TERMINAL_OVERLAY_HPP #ifndef TERMINAL_OVERLAY_HPP
#define TERMINAL_OVERLAY_HPP #define TERMINAL_OVERLAY_HPP
#include "terminalframebuffer.hpp" #include "terminalframebuffer.h"
#include "network.hpp" #include "network.h"
#include "parser.hpp" #include "parser.h"
#include <vector> #include <vector>
@@ -1,4 +1,4 @@
#include "terminaluserinput.hpp" #include "terminaluserinput.h"
using namespace Terminal; using namespace Terminal;
@@ -2,7 +2,7 @@
#define TERMINALUSERINPUT_HPP #define TERMINALUSERINPUT_HPP
#include <string> #include <string>
#include "parseraction.hpp" #include "parseraction.h"
namespace Terminal { namespace Terminal {
class UserInput { class UserInput {
@@ -1,7 +1,7 @@
#include <endian.h> #include <endian.h>
#include <assert.h> #include <assert.h>
#include "transportfragment.hpp" #include "transportfragment.h"
#include "transportinstruction.pb.h" #include "transportinstruction.pb.h"
using namespace Network; using namespace Network;
@@ -1,8 +1,8 @@
#include <algorithm> #include <algorithm>
#include <list> #include <list>
#include "transportsender.hpp" #include "transportsender.h"
#include "transportfragment.hpp" #include "transportfragment.h"
using namespace Network; using namespace Network;
@@ -5,10 +5,10 @@
#include <string> #include <string>
#include <list> #include <list>
#include "network.hpp" #include "network.h"
#include "transportinstruction.pb.h" #include "transportinstruction.pb.h"
#include "transportstate.hpp" #include "transportstate.h"
#include "transportfragment.hpp" #include "transportfragment.h"
using namespace std; using namespace std;
using namespace TransportBuffers; using namespace TransportBuffers;
+1 -1
View File
@@ -1,7 +1,7 @@
#include <assert.h> #include <assert.h>
#include <typeinfo> #include <typeinfo>
#include "user.hpp" #include "user.h"
#include "userinput.pb.h" #include "userinput.pb.h"
using namespace Parser; using namespace Parser;
+1 -1
View File
@@ -6,7 +6,7 @@
#include <string> #include <string>
#include <assert.h> #include <assert.h>
#include "parseraction.hpp" #include "parseraction.h"
using namespace std; using namespace std;