зеркало из https://github.com/mozilla/gecko-dev.git
bug 230931 - nsFileStreams.h should not #include nsReadLine.h
this forward-declares nsLineBuffer in nsFileStreams.h instead, and turns a typedef struct { ... } nsLineBuffer into struct nsLineBuffer { ... } r=bzbarsky sr=darin
This commit is contained in:
Родитель
bc74f0b352
Коммит
ee39004779
|
@ -35,13 +35,13 @@
|
|||
|
||||
#define kLineBufferSize 1024
|
||||
|
||||
typedef struct {
|
||||
struct nsLineBuffer {
|
||||
char buf[kLineBufferSize+1];
|
||||
char* start;
|
||||
char* current;
|
||||
char* end;
|
||||
PRBool empty;
|
||||
} nsLineBuffer;
|
||||
};
|
||||
|
||||
static nsresult
|
||||
NS_InitLineBuffer (nsLineBuffer ** aBufferPtr) {
|
||||
|
|
|
@ -45,10 +45,11 @@
|
|||
#include "nsISeekableStream.h"
|
||||
#include "nsILineInputStream.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsReadLine.h"
|
||||
#include "prlog.h"
|
||||
#include "prio.h"
|
||||
|
||||
struct nsLineBuffer;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class nsFileStream : public nsISeekableStream
|
||||
|
|
Загрузка…
Ссылка в новой задаче