2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Removed 'extern' from 'extern typedef ...' in src/*.h
pull/1/head
Tatsuhiro Tsujikawa 2007-11-23 08:47:38 +00:00
parent 5f5ef0004f
commit 49618788e3
44 changed files with 105 additions and 101 deletions

View File

@ -1,3 +1,7 @@
2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed 'extern' from 'extern typedef ...' in src/*.h
2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated usage

View File

@ -41,15 +41,15 @@
#include "Socket.h"
class Request;
extern typedef SharedHandle<Request> RequestHandle;
typedef SharedHandle<Request> RequestHandle;
class DownloadEngine;
class Segment;
extern typedef SharedHandle<Segment> SegmentHandle;
extern typedef deque<SegmentHandle> Segments;
typedef SharedHandle<Segment> SegmentHandle;
typedef deque<SegmentHandle> Segments;
class NameResolver;
extern typedef SharedHandle<NameResolver> NameResolverHandle;
typedef SharedHandle<NameResolver> NameResolverHandle;
class BtProgressInfoFile;
extern typedef SharedHandle<BtProgressInfoFile> BtProgressInfoFileHandle;
typedef SharedHandle<BtProgressInfoFile> BtProgressInfoFileHandle;
class AbstractCommand : public Command, public RequestGroupAware {
private:

View File

@ -38,7 +38,7 @@
#include "AbstractCommand.h"
class HttpConnection;
extern typedef SharedHandle<HttpConnection> HttpConnectionHandle;
typedef SharedHandle<HttpConnection> HttpConnectionHandle;
class AbstractProxyRequestCommand : public AbstractCommand {
protected:

View File

@ -38,7 +38,7 @@
#include "AbstractCommand.h"
class HttpConnection;
extern typedef SharedHandle<HttpConnection> HttpConnectionHandle;
typedef SharedHandle<HttpConnection> HttpConnectionHandle;
class AbstractProxyResponseCommand : public AbstractCommand {
protected:

View File

@ -39,13 +39,13 @@
class Option;
class Netrc;
extern typedef SharedHandle<Netrc> NetrcHandle;
typedef SharedHandle<Netrc> NetrcHandle;
class AuthConfig;
extern typedef SharedHandle<AuthConfig> AuthConfigHandle;
typedef SharedHandle<AuthConfig> AuthConfigHandle;
class Request;
extern typedef SharedHandle<Request> RequestHandle;
typedef SharedHandle<Request> RequestHandle;
class AuthResolver;
extern typedef SharedHandle<AuthResolver> AuthResolverHandle;
typedef SharedHandle<AuthResolver> AuthResolverHandle;
class AuthConfigFactory {
private:

View File

@ -42,7 +42,7 @@
#define MAX_PEERS 55
class AnnounceTier;
extern typedef SharedHandle<AnnounceTier> AnnounceTierHandle;
typedef SharedHandle<AnnounceTier> AnnounceTierHandle;
typedef deque<AnnounceTierHandle> AnnounceTiers;
class RequestGroup;

View File

@ -38,7 +38,7 @@
#include "Dependency.h"
class RequestGroup;
extern typedef WeakHandle<RequestGroup> RequestGroupWeakHandle;
typedef WeakHandle<RequestGroup> RequestGroupWeakHandle;
class Option;
class Logger;

View File

@ -40,7 +40,7 @@
class RequestGroup;
class DownloadEngine;
class Command;
extern typedef deque<Command*> Commands;
typedef deque<Command*> Commands;
class BtFileAllocationEntry : public FileAllocationEntry {
public:

View File

@ -42,7 +42,7 @@ class RequestGroup;
class DownloadEngine;
class Option;
class Command;
extern typedef deque<Command*> Commands;
typedef deque<Command*> Commands;
class BtSetup {
private:

View File

@ -39,7 +39,7 @@
#include "TimeA2.h"
class CheckIntegrityEntry;
extern typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
class CheckIntegrityCommand : public RealtimeCommand {
private:

View File

@ -38,9 +38,9 @@
#include "RequestGroupEntry.h"
class IteratableValidator;
extern typedef SharedHandle<IteratableValidator> IteratableValidatorHandle;
typedef SharedHandle<IteratableValidator> IteratableValidatorHandle;
class Command;
extern typedef deque<Command*> Commands;
typedef deque<Command*> Commands;
class DownloadEngine;
class CheckIntegrityEntry : public RequestGroupEntry,

View File

@ -38,8 +38,8 @@
#include "common.h"
class CheckIntegrityEntry;
extern typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
extern typedef deque<CheckIntegrityEntryHandle> CheckIntegrityEntries;
typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
typedef deque<CheckIntegrityEntryHandle> CheckIntegrityEntries;
class CheckIntegrityMan {
private:

View File

@ -46,7 +46,7 @@
#include "PeerStorage.h"
class Randomizer;
extern typedef SharedHandle<Randomizer> RandomizerHandle;
typedef SharedHandle<Randomizer> RandomizerHandle;
#define DEFAULT_ANNOUNCE_INTERVAL 1800

View File

@ -41,7 +41,7 @@
#include "List.h"
class Randomizer;
extern typedef SharedHandle<Randomizer> RandomizerHandle;
typedef SharedHandle<Randomizer> RandomizerHandle;
#define INFO_HASH_LENGTH 20
#define PIECE_HASH_LENGTH 20

View File

@ -38,9 +38,9 @@
#include "BtProgressInfoFile.h"
class DownloadContext;
extern typedef SharedHandle<DownloadContext> DownloadContextHandle;
typedef SharedHandle<DownloadContext> DownloadContextHandle;
class PieceStorage;
extern typedef SharedHandle<PieceStorage> PieceStorageHandle;
typedef SharedHandle<PieceStorage> PieceStorageHandle;
class Logger;
class Option;

View File

@ -38,15 +38,15 @@
#include "PieceStorage.h"
class DownloadContext;
extern typedef SharedHandle<DownloadContext> DownloadContextHandle;
typedef SharedHandle<DownloadContext> DownloadContextHandle;
class BitfieldMan;
class Logger;
class Option;
extern typedef deque<PieceHandle> Pieces;
typedef deque<PieceHandle> Pieces;
class DiskWriterFactory;
extern typedef SharedHandle<DiskWriterFactory> DiskWriterFactoryHandle;
typedef SharedHandle<DiskWriterFactory> DiskWriterFactoryHandle;
class FileEntry;
extern typedef SharedHandle<FileEntry> FileEntryHandle;
typedef SharedHandle<FileEntry> FileEntryHandle;
#define END_GAME_PIECE_NUM 20

View File

@ -38,9 +38,9 @@
#include "AbstractCommand.h"
class TransferEncoding;
extern typedef SharedHandle<TransferEncoding> TransferEncodingHandle;
typedef SharedHandle<TransferEncoding> TransferEncodingHandle;
class PeerStat;
extern typedef SharedHandle<PeerStat> PeerStatHandle;
typedef SharedHandle<PeerStat> PeerStatHandle;
class DownloadCommand : public AbstractCommand {
private:

View File

@ -39,20 +39,20 @@
#include "Command.h"
class SocketCore;
extern typedef SharedHandle<SocketCore> SocketHandle;
extern typedef deque<SocketHandle> Sockets;
typedef SharedHandle<SocketCore> SocketHandle;
typedef deque<SocketHandle> Sockets;
class Logger;
class Option;
class NameResolver;
extern typedef SharedHandle<NameResolver> NameResolverHandle;
typedef SharedHandle<NameResolver> NameResolverHandle;
class RequestGroupMan;
extern typedef SharedHandle<RequestGroupMan> RequestGroupManHandle;
typedef SharedHandle<RequestGroupMan> RequestGroupManHandle;
class FileAllocationMan;
extern typedef SharedHandle<FileAllocationMan> FileAllocationManHandle;
typedef SharedHandle<FileAllocationMan> FileAllocationManHandle;
class StatCalc;
extern typedef SharedHandle<StatCalc> StatCalcHandle;
typedef SharedHandle<StatCalc> StatCalcHandle;
class CheckIntegrityMan;
extern typedef SharedHandle<CheckIntegrityMan> CheckIntegrityManHandle;
typedef SharedHandle<CheckIntegrityMan> CheckIntegrityManHandle;
class SocketEntry {
public:

View File

@ -40,10 +40,10 @@
class Logger;
class Option;
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
extern typedef deque<RequestGroupHandle> RequestGroups;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef deque<RequestGroupHandle> RequestGroups;
class DownloadEngine;
extern typedef SharedHandle<DownloadEngine> DownloadEngineHandle;
typedef SharedHandle<DownloadEngine> DownloadEngineHandle;
class DownloadEngineFactory {
private:

View File

@ -39,7 +39,7 @@
#include "TimeA2.h"
class FileAllocationEntry;
extern typedef SharedHandle<FileAllocationEntry> FileAllocationEntryHandle;
typedef SharedHandle<FileAllocationEntry> FileAllocationEntryHandle;
class Exception;
class FileAllocationCommand : public RealtimeCommand {

View File

@ -38,9 +38,9 @@
#include "RequestGroupEntry.h"
class FileAllocationIterator;
extern typedef SharedHandle<FileAllocationIterator> FileAllocationIteratorHandle;
typedef SharedHandle<FileAllocationIterator> FileAllocationIteratorHandle;
class Command;
extern typedef deque<Command*> Commands;
typedef deque<Command*> Commands;
class DownloadEngine;
class FileAllocationEntry : public RequestGroupEntry, public ProgressAwareEntry {

View File

@ -38,8 +38,8 @@
#include "common.h"
class FileAllocationEntry;
extern typedef SharedHandle<FileAllocationEntry> FileAllocationEntryHandle;
extern typedef deque<FileAllocationEntryHandle> FileAllocationEntries;
typedef SharedHandle<FileAllocationEntry> FileAllocationEntryHandle;
typedef deque<FileAllocationEntryHandle> FileAllocationEntries;
class FileAllocationMan {
private:

View File

@ -39,8 +39,8 @@
#include "TimeA2.h"
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
extern typedef deque<RequestGroupHandle> RequestGroups;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef deque<RequestGroupHandle> RequestGroups;
class DownloadEngine;
class FillRequestGroupCommand : public Command {

View File

@ -38,7 +38,7 @@
#include "DownloadCommand.h"
class HttpConnection;
extern typedef SharedHandle<HttpConnection> HttpConnectionHandle;
typedef SharedHandle<HttpConnection> HttpConnectionHandle;
class HttpDownloadCommand : public DownloadCommand {
private:

View File

@ -38,7 +38,7 @@
#include "AbstractCommand.h"
class HttpConnection;
extern typedef SharedHandle<HttpConnection> HttpConnectionHandle;
typedef SharedHandle<HttpConnection> HttpConnectionHandle;
class HttpRequestCommand:public AbstractCommand {
private:

View File

@ -38,10 +38,10 @@
#include "AbstractCommand.h"
class HttpConnection;
extern typedef SharedHandle<HttpConnection> HttpConnectionHandle;
typedef SharedHandle<HttpConnection> HttpConnectionHandle;
class HttpDownloadCommand;
class HttpResponse;
extern typedef SharedHandle<HttpResponse> HttpResponseHandle;
typedef SharedHandle<HttpResponse> HttpResponseHandle;
class HttpResponseCommand : public AbstractCommand {
private:

View File

@ -38,12 +38,12 @@
#include "IteratableValidator.h"
class SingleFileDownloadContext;
extern typedef SharedHandle<SingleFileDownloadContext> SingleFileDownloadContextHandle;
typedef SharedHandle<SingleFileDownloadContext> SingleFileDownloadContextHandle;
class PieceStorage;
extern typedef SharedHandle<PieceStorage> PieceStorageHandle;
typedef SharedHandle<PieceStorage> PieceStorageHandle;
class Logger;
class MessageDigestContext;
extern typedef SharedHandle<MessageDigestContext> MessageDigestContextHandle;
typedef SharedHandle<MessageDigestContext> MessageDigestContextHandle;
class IteratableChecksumValidator:public IteratableValidator
{

View File

@ -38,9 +38,9 @@
#include "IteratableValidator.h"
class DownloadContext;
extern typedef SharedHandle<DownloadContext> DownloadContextHandle;
typedef SharedHandle<DownloadContext> DownloadContextHandle;
class PieceStorage;
extern typedef SharedHandle<PieceStorage> PieceStorageHandle;
typedef SharedHandle<PieceStorage> PieceStorageHandle;
class BitfieldMan;
class Logger;

View File

@ -40,8 +40,8 @@
class Option;
class Logger;
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
extern typedef deque<RequestGroupHandle> RequestGroups;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef deque<RequestGroupHandle> RequestGroups;
class Metalink2RequestGroup {
private:

View File

@ -39,8 +39,8 @@
class Option;
class MetalinkEntry;
extern typedef SharedHandle<MetalinkEntry> MetalinkEntryHandle;
extern typedef deque<MetalinkEntryHandle> MetalinkEntries;
typedef SharedHandle<MetalinkEntry> MetalinkEntryHandle;
typedef deque<MetalinkEntryHandle> MetalinkEntries;
class MetalinkHelper {
private:

View File

@ -39,8 +39,8 @@
class MultiDiskAdaptor;
class FileEntry;
extern typedef SharedHandle<FileEntry> FileEntryHandle;
extern typedef deque<FileEntryHandle> FileEntries;
typedef SharedHandle<FileEntry> FileEntryHandle;
typedef deque<FileEntryHandle> FileEntries;
class MultiFileAllocationIterator:public FileAllocationIterator
{

View File

@ -38,8 +38,8 @@
#include "common.h"
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
extern typedef deque<RequestGroupHandle> RequestGroups;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef deque<RequestGroupHandle> RequestGroups;
class Option;
class Logger;

View File

@ -42,7 +42,7 @@
class DownloadEngine;
class Exception;
class Peer;
extern typedef SharedHandle<Peer> PeerHandle;
typedef SharedHandle<Peer> PeerHandle;
class PeerAbstractCommand : public Command {
private:

View File

@ -38,7 +38,7 @@
#include "PeerAbstractCommand.h"
class PeerConnection;
extern typedef SharedHandle<PeerConnection> PeerConnectionHandle;
typedef SharedHandle<PeerConnection> PeerConnectionHandle;
class PeerReceiveHandshakeCommand:public PeerAbstractCommand
{

View File

@ -40,12 +40,12 @@
#include "IntSequence.h"
class Piece;
extern typedef SharedHandle<Piece> PieceHandle;
extern typedef deque<PieceHandle> Pieces;
typedef SharedHandle<Piece> PieceHandle;
typedef deque<PieceHandle> Pieces;
class Peer;
extern typedef SharedHandle<Peer> PeerHandle;
typedef SharedHandle<Peer> PeerHandle;
class DiskAdaptor;
extern typedef SharedHandle<DiskAdaptor> DiskAdaptorHandle;
typedef SharedHandle<DiskAdaptor> DiskAdaptorHandle;
class PieceStorage {
public:

View File

@ -40,32 +40,32 @@
class DownloadEngine;
class SegmentMan;
extern typedef SharedHandle<SegmentMan> SegmentManHandle;
typedef SharedHandle<SegmentMan> SegmentManHandle;
class SegmentManFactory;
extern typedef SharedHandle<SegmentManFactory> SegmentManFactoryHandle;
typedef SharedHandle<SegmentManFactory> SegmentManFactoryHandle;
class Command;
extern typedef deque<Command*> Commands;
typedef deque<Command*> Commands;
class DownloadContext;
extern typedef SharedHandle<DownloadContext> DownloadContextHandle;
typedef SharedHandle<DownloadContext> DownloadContextHandle;
class PieceStorage;
extern typedef SharedHandle<PieceStorage> PieceStorageHandle;
typedef SharedHandle<PieceStorage> PieceStorageHandle;
class BtProgressInfoFile;
extern typedef SharedHandle<BtProgressInfoFile> BtProgressInfoFileHandle;
typedef SharedHandle<BtProgressInfoFile> BtProgressInfoFileHandle;
class Dependency;
extern typedef SharedHandle<Dependency> DependencyHandle;
typedef SharedHandle<Dependency> DependencyHandle;
class DlAbortEx;
class PostDownloadHandler;
extern typedef SharedHandle<PostDownloadHandler> PostDownloadHandlerHandle;
extern typedef deque<PostDownloadHandlerHandle> PostDownloadHandlers;
typedef SharedHandle<PostDownloadHandler> PostDownloadHandlerHandle;
typedef deque<PostDownloadHandlerHandle> PostDownloadHandlers;
class DiskWriterFactory;
extern typedef SharedHandle<DiskWriterFactory> DiskWriterFactoryHandle;
typedef SharedHandle<DiskWriterFactory> DiskWriterFactoryHandle;
class Option;
class Logger;
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
extern typedef deque<RequestGroupHandle> RequestGroups;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef deque<RequestGroupHandle> RequestGroups;
class CheckIntegrityEntry;
extern typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
class RequestGroup {

View File

@ -40,10 +40,10 @@
class DownloadEngine;
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
extern typedef deque<RequestGroupHandle> RequestGroups;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef deque<RequestGroupHandle> RequestGroups;
class Command;
extern typedef deque<Command*> Commands;
typedef deque<Command*> Commands;
class Logger;
class RequestGroupMan {

View File

@ -38,7 +38,7 @@
#include "common.h"
class Piece;
extern typedef SharedHandle<Piece> PieceHandle;
typedef SharedHandle<Piece> PieceHandle;
class Segment {
public:

View File

@ -38,19 +38,19 @@
#include "common.h"
class Segment;
extern typedef SharedHandle<Segment> SegmentHandle;
extern typedef deque<SegmentHandle> Segments;
typedef SharedHandle<Segment> SegmentHandle;
typedef deque<SegmentHandle> Segments;
class Logger;
class Option;
class PeerStat;
extern typedef SharedHandle<PeerStat> PeerStatHandle;
typedef SharedHandle<PeerStat> PeerStatHandle;
typedef deque<PeerStatHandle> PeerStats;
class DownloadContext;
extern typedef SharedHandle<DownloadContext> DownloadContextHandle;
typedef SharedHandle<DownloadContext> DownloadContextHandle;
class PieceStorage;
extern typedef SharedHandle<PieceStorage> PieceStorageHandle;
typedef SharedHandle<PieceStorage> PieceStorageHandle;
class Piece;
extern typedef SharedHandle<Piece> PieceHandle;
typedef SharedHandle<Piece> PieceHandle;
#define SEGMENT_FILE_EXTENSION ".aria2"

View File

@ -38,11 +38,11 @@
#include "common.h"
class RequestGroupMan;
extern typedef SharedHandle<RequestGroupMan> RequestGroupManHandle;
typedef SharedHandle<RequestGroupMan> RequestGroupManHandle;
class FileAllocationMan;
extern typedef SharedHandle<FileAllocationMan> FileAllocationManHandle;
typedef SharedHandle<FileAllocationMan> FileAllocationManHandle;
class CheckIntegrityMan;
extern typedef SharedHandle<CheckIntegrityMan> CheckIntegrityManHandle;
typedef SharedHandle<CheckIntegrityMan> CheckIntegrityManHandle;
class StatCalc {
public:

View File

@ -39,7 +39,7 @@
#include "TimeA2.h"
class Request;
extern typedef SharedHandle<Request> RequestHandle;
typedef SharedHandle<Request> RequestHandle;
class StreamFileAllocationEntry : public FileAllocationEntry {
private:

View File

@ -41,7 +41,7 @@
class DownloadEngine;
class RequestGroup;
extern typedef SharedHandle<RequestGroup> RequestGroupHandle;
typedef SharedHandle<RequestGroup> RequestGroupHandle;
class TrackerWatcherCommand : public Command,
public BtContextAwareCommand,

View File

@ -39,9 +39,9 @@
class Option;
class DownloadContext;
extern typedef SharedHandle<DownloadContext> DownloadContextHandle;
typedef SharedHandle<DownloadContext> DownloadContextHandle;
class DiskWriterFactory;
extern typedef SharedHandle<DiskWriterFactory> DiskWriterFactoryHandle;
typedef SharedHandle<DiskWriterFactory> DiskWriterFactoryHandle;
class UnknownLengthPieceStorage:public PieceStorage {
private:

View File

@ -44,7 +44,7 @@
#include <ostream>
class Randomizer;
extern typedef SharedHandle<Randomizer> RandomizerHandle;
typedef SharedHandle<Randomizer> RandomizerHandle;
class BitfieldMan;
#define STRTOLL(X) strtoll(X, (char**)NULL, 10)