Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2

build. I sure hope that this doesn't break the build for anyone else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-01-23 03:05:15 +00:00
parent 7e359a9b53
commit fb3e35fcec
60 changed files with 399 additions and 342 deletions

View File

@ -46,7 +46,7 @@ All rights reserved.
#define __OPEN_HASH_TABLE__
#include <malloc.h>
#include <new.h>
#include <new>
// don't include <Debug.h>
#define ASSERT(E) (void)0

View File

@ -4,7 +4,7 @@
*/
#include "MasterServerDevice.h"
#include <fstream.h>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -133,7 +133,7 @@ public:
typedef HashTableLink<ThisType> HashLink;
typedef typename Addressing::AddressType AddressType;
typedef MulticastFilter<Addressing> Filter;
typedef AddressSet<AddressType> AddressSet;
typedef ::AddressSet<AddressType> AddressSet;
enum FilterMode {
kInclude,

View File

@ -96,7 +96,7 @@ public:
bool IsActive() const { return fActive; }
void SetActive(bool newValue) { fActive = newValue; }
HashTableLink<UdpEndpoint> *HashTableLink() { return &fLink; }
::HashTableLink<UdpEndpoint> *HashTableLink() { return &fLink; }
private:
UdpDomainSupport *fManager;
@ -143,7 +143,7 @@ struct UdpHashDefinition {
&& endpoint->PeerAddress().EqualTo(key.second, true);
}
HashTableLink<UdpEndpoint> *GetLink(UdpEndpoint *endpoint) const
::HashTableLink<UdpEndpoint> *GetLink(UdpEndpoint *endpoint) const
{
return endpoint->HashTableLink();
}

View File

@ -90,7 +90,7 @@ public:
return fAddress;
}
HashTableLink<UnixEndpoint>* HashTableLink()
::HashTableLink<UnixEndpoint>* HashTableLink()
{
return &fAddressHashLink;
}

View File

@ -1,7 +1,7 @@
//--------This file shamelessly stolen from Jeremy Friesner's excellent MUSCLE---------
/* This file is Copyright 2000 Level Control Systems. See the included LICENSE.txt file for details. */
#include <new.h>
#include <new>
#include <stdio.h>
#include "StringMatcher.h"

View File

@ -6,6 +6,7 @@
#include <Autolock.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#define TRACE_THIS 0
#if TRACE_THIS

View File

@ -6,6 +6,7 @@
#include "OggFormats.h"
#include <Autolock.h>
#include <stdio.h>
#include <string.h>
#define TRACE_THIS 0
#if TRACE_THIS

View File

@ -1,5 +1,6 @@
#include "OggTrack.h"
#include <stdio.h>
#include <string.h>
#define TRACE_THIS 0
#if TRACE_THIS

View File

@ -1,203 +1,205 @@
// Sun, 18 Jun 2000
// Y.Takagi
#include <Button.h>
#include <Rect.h>
#include <TextControl.h>
#include <View.h>
#include <Directory.h>
#include <Alert.h>
#include "URL.h"
#include "IppContent.h"
#include "IppURLConnection.h"
#include "IppSetupDlg.h"
#include "IppDefs.h"
#include "DbgMsg.h"
#define DLG_WIDTH 350
#define DLG_HEIGHT 80
#define BUTTON_WIDTH 70
#define BUTTON_HEIGHT 20
#define URL_H 10
#define URL_V 10
#define URL_WIDTH (DLG_WIDTH - URL_H - URL_H)
#define URL_HEIGHT 20
#define URL_TEXT "URL"
#define OK_H (DLG_WIDTH - BUTTON_WIDTH - 11)
#define OK_V (DLG_HEIGHT - BUTTON_HEIGHT - 11)
#define OK_TEXT "OK"
#define CANCEL_H (OK_H - BUTTON_WIDTH - 12)
#define CANCEL_V OK_V
#define CANCEL_TEXT "Cancel"
const BRect URL_RECT(
URL_H,
URL_V,
URL_H + URL_WIDTH,
URL_V + URL_HEIGHT);
const BRect OK_RECT(
OK_H,
OK_V,
OK_H + BUTTON_WIDTH,
OK_V + BUTTON_HEIGHT);
const BRect CANCEL_RECT(
CANCEL_H,
CANCEL_V,
CANCEL_H + BUTTON_WIDTH,
CANCEL_V + BUTTON_HEIGHT);
enum MSGS {
M_CANCEL = 1,
M_OK
};
class IppSetupView : public BView {
public:
IppSetupView(BRect, BDirectory *);
~IppSetupView() {}
virtual void AttachedToWindow();
bool UpdateViewData();
private:
BTextControl *url;
BDirectory *dir;
};
IppSetupView::IppSetupView(BRect frame, BDirectory *d)
: BView(frame, "", B_FOLLOW_ALL, B_WILL_DRAW), dir(d)
{
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
}
void IppSetupView::AttachedToWindow()
{
/* url box */
url = new BTextControl(URL_RECT, "", URL_TEXT, "", NULL);
AddChild(url);
url->SetDivider(StringWidth(URL_TEXT) + 10);
/* cancel */
BButton *button = new BButton(CANCEL_RECT, "", CANCEL_TEXT, new BMessage(M_CANCEL));
AddChild(button);
/* ok */
button = new BButton(OK_RECT, "", OK_TEXT, new BMessage(M_OK));
AddChild(button);
button->MakeDefault(true);
}
bool IppSetupView::UpdateViewData()
{
string error_msg;
if (*url->Text()) {
IppContent *request = new IppContent;
request->setOperationId(IPP_GET_PRINTER_ATTRIBUTES);
request->setDelimiter(IPP_OPERATION_ATTRIBUTES_TAG);
request->setCharset("attributes-charset", "utf-8");
request->setNaturalLanguage("attributes-natural-language", "en-us");
request->setURI("printer-uri", url->Text());
request->setDelimiter(IPP_END_OF_ATTRIBUTES_TAG);
IppURLConnection conn(URL(url->Text()));
conn.setIppRequest(request);
conn.setRequestProperty("Connection", "close");
HTTP_RESPONSECODE response_code = conn.getResponseCode();
if (response_code == HTTP_OK) {
const char *content_type = conn.getContentType();
if (content_type && !strncasecmp(content_type, "application/ipp", 15)) {
const IppContent *ipp_response = conn.getIppResponse();
if (ipp_response->good()) {
dir->WriteAttr(IPP_URL, B_STRING_TYPE, 0, url->Text(), strlen(url->Text()) + 1);
return true;
} else {
error_msg = ipp_response->getStatusMessage();
}
} else {
error_msg = "cannot get a IPP response.";
}
} else if (response_code != HTTP_UNKNOWN) {
error_msg = conn.getResponseMessage();
} else {
error_msg = "cannot connect to the IPP server.";
}
} else {
error_msg = "please input the printer URL.";
}
BAlert *alert = new BAlert("", error_msg.c_str(), "OK");
alert->Go();
return false;
}
IppSetupDlg::IppSetupDlg(BDirectory *dir)
: BWindow(BRect(100, 100, 100 + DLG_WIDTH, 100 + DLG_HEIGHT),
"IPP Setup", B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL,
B_NOT_RESIZABLE | B_NOT_MINIMIZABLE | B_NOT_ZOOMABLE)
{
result = 0;
Lock();
IppSetupView *view = new IppSetupView(Bounds(), dir);
AddChild(view);
Unlock();
semaphore = create_sem(0, "IppSetupSem");
}
bool IppSetupDlg::QuitRequested()
{
result = B_ERROR;
release_sem(semaphore);
return true;
}
void IppSetupDlg::MessageReceived(BMessage *msg)
{
bool success;
switch (msg->what) {
case M_OK:
Lock();
success = ((IppSetupView *)ChildAt(0))->UpdateViewData();
Unlock();
if (success) {
result = B_NO_ERROR;
release_sem(semaphore);
}
break;
case M_CANCEL:
result = B_ERROR;
release_sem(semaphore);
break;
default:
BWindow::MessageReceived(msg);
break;
}
}
int IppSetupDlg::Go()
{
Show();
acquire_sem(semaphore);
delete_sem(semaphore);
int value = result;
Lock();
Quit();
return value;
}
// Sun, 18 Jun 2000
// Y.Takagi
#include <string.h>
#include <Button.h>
#include <Rect.h>
#include <TextControl.h>
#include <View.h>
#include <Directory.h>
#include <Alert.h>
#include "URL.h"
#include "IppContent.h"
#include "IppURLConnection.h"
#include "IppSetupDlg.h"
#include "IppDefs.h"
#include "DbgMsg.h"
#define DLG_WIDTH 350
#define DLG_HEIGHT 80
#define BUTTON_WIDTH 70
#define BUTTON_HEIGHT 20
#define URL_H 10
#define URL_V 10
#define URL_WIDTH (DLG_WIDTH - URL_H - URL_H)
#define URL_HEIGHT 20
#define URL_TEXT "URL"
#define OK_H (DLG_WIDTH - BUTTON_WIDTH - 11)
#define OK_V (DLG_HEIGHT - BUTTON_HEIGHT - 11)
#define OK_TEXT "OK"
#define CANCEL_H (OK_H - BUTTON_WIDTH - 12)
#define CANCEL_V OK_V
#define CANCEL_TEXT "Cancel"
const BRect URL_RECT(
URL_H,
URL_V,
URL_H + URL_WIDTH,
URL_V + URL_HEIGHT);
const BRect OK_RECT(
OK_H,
OK_V,
OK_H + BUTTON_WIDTH,
OK_V + BUTTON_HEIGHT);
const BRect CANCEL_RECT(
CANCEL_H,
CANCEL_V,
CANCEL_H + BUTTON_WIDTH,
CANCEL_V + BUTTON_HEIGHT);
enum MSGS {
M_CANCEL = 1,
M_OK
};
class IppSetupView : public BView {
public:
IppSetupView(BRect, BDirectory *);
~IppSetupView() {}
virtual void AttachedToWindow();
bool UpdateViewData();
private:
BTextControl *url;
BDirectory *dir;
};
IppSetupView::IppSetupView(BRect frame, BDirectory *d)
: BView(frame, "", B_FOLLOW_ALL, B_WILL_DRAW), dir(d)
{
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
}
void IppSetupView::AttachedToWindow()
{
/* url box */
url = new BTextControl(URL_RECT, "", URL_TEXT, "", NULL);
AddChild(url);
url->SetDivider(StringWidth(URL_TEXT) + 10);
/* cancel */
BButton *button = new BButton(CANCEL_RECT, "", CANCEL_TEXT, new BMessage(M_CANCEL));
AddChild(button);
/* ok */
button = new BButton(OK_RECT, "", OK_TEXT, new BMessage(M_OK));
AddChild(button);
button->MakeDefault(true);
}
bool IppSetupView::UpdateViewData()
{
string error_msg;
if (*url->Text()) {
IppContent *request = new IppContent;
request->setOperationId(IPP_GET_PRINTER_ATTRIBUTES);
request->setDelimiter(IPP_OPERATION_ATTRIBUTES_TAG);
request->setCharset("attributes-charset", "utf-8");
request->setNaturalLanguage("attributes-natural-language", "en-us");
request->setURI("printer-uri", url->Text());
request->setDelimiter(IPP_END_OF_ATTRIBUTES_TAG);
IppURLConnection conn(URL(url->Text()));
conn.setIppRequest(request);
conn.setRequestProperty("Connection", "close");
HTTP_RESPONSECODE response_code = conn.getResponseCode();
if (response_code == HTTP_OK) {
const char *content_type = conn.getContentType();
if (content_type && !strncasecmp(content_type, "application/ipp", 15)) {
const IppContent *ipp_response = conn.getIppResponse();
if (ipp_response->good()) {
dir->WriteAttr(IPP_URL, B_STRING_TYPE, 0, url->Text(), strlen(url->Text()) + 1);
return true;
} else {
error_msg = ipp_response->getStatusMessage();
}
} else {
error_msg = "cannot get a IPP response.";
}
} else if (response_code != HTTP_UNKNOWN) {
error_msg = conn.getResponseMessage();
} else {
error_msg = "cannot connect to the IPP server.";
}
} else {
error_msg = "please input the printer URL.";
}
BAlert *alert = new BAlert("", error_msg.c_str(), "OK");
alert->Go();
return false;
}
IppSetupDlg::IppSetupDlg(BDirectory *dir)
: BWindow(BRect(100, 100, 100 + DLG_WIDTH, 100 + DLG_HEIGHT),
"IPP Setup", B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL,
B_NOT_RESIZABLE | B_NOT_MINIMIZABLE | B_NOT_ZOOMABLE)
{
result = 0;
Lock();
IppSetupView *view = new IppSetupView(Bounds(), dir);
AddChild(view);
Unlock();
semaphore = create_sem(0, "IppSetupSem");
}
bool IppSetupDlg::QuitRequested()
{
result = B_ERROR;
release_sem(semaphore);
return true;
}
void IppSetupDlg::MessageReceived(BMessage *msg)
{
bool success;
switch (msg->what) {
case M_OK:
Lock();
success = ((IppSetupView *)ChildAt(0))->UpdateViewData();
Unlock();
if (success) {
result = B_NO_ERROR;
release_sem(semaphore);
}
break;
case M_CANCEL:
result = B_ERROR;
release_sem(semaphore);
break;
default:
BWindow::MessageReceived(msg);
break;
}
}
int IppSetupDlg::Go()
{
Show();
acquire_sem(semaphore);
delete_sem(semaphore);
int value = result;
Lock();
Quit();
return value;
}

View File

@ -8,6 +8,7 @@
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "URL.h"

View File

@ -1,102 +1,103 @@
// Sun, 18 Jun 2000
// Y.Takagi
#include <cstring>
#include "URL.h"
URL::URL(const char *spec)
{
// __protocol = "http";
// __host = "localhost";
// __file = "/";
__port = -1;
if (spec) {
char *temp_spec = new char[strlen(spec) + 1];
strcpy(temp_spec, spec);
char *p1;
char *p2;
char *p3;
char *p4;
p1 = strstr(temp_spec, "//");
if (p1) {
*p1 = '\0';
p1 += 2;
__protocol = temp_spec;
} else {
p1 = temp_spec;
}
p3 = strstr(p1, "/");
if (p3) {
p4 = strstr(p3, "#");
if (p4) {
__ref = p4 + 1;
*p4 = '\0';
}
__file = p3;
*p3 = '\0';
} else {
__file = "/";
}
p2 = strstr(p1, ":");
if (p2) {
__port = atoi(p2 + 1);
*p2 = '\0';
}
__host = p1;
delete [] temp_spec;
}
// if (__port == -1) {
// if (__protocol == "http") {
// __port = 80;
// } else if (__protocol == "ipp") {
// __port = 631;
// }
// }
}
URL::URL(const char *protocol, const char *host, int port, const char *file)
{
__protocol = protocol;
__host = host;
__file = file;
__port = port;
}
URL::URL(const char *protocol, const char *host, const char *file)
{
__protocol = protocol;
__host = host;
__file = file;
}
URL::URL(const URL &url)
{
__protocol = url.__protocol;
__host = url.__host;
__file = url.__file;
__ref = url.__ref;
__port = url.__port;
}
URL &URL::operator = (const URL &url)
{
__protocol = url.__protocol;
__host = url.__host;
__file = url.__file;
__ref = url.__ref;
__port = url.__port;
return *this;
}
bool URL::operator == (const URL &url)
{
return (__protocol == url.__protocol) && (__host == url.__host) && (__file == url.__file) &&
(__ref == url.__ref) && (__port == url.__port);
}
// Sun, 18 Jun 2000
// Y.Takagi
#include <cstring>
#include <stdlib.h>
#include "URL.h"
URL::URL(const char *spec)
{
// __protocol = "http";
// __host = "localhost";
// __file = "/";
__port = -1;
if (spec) {
char *temp_spec = new char[strlen(spec) + 1];
strcpy(temp_spec, spec);
char *p1;
char *p2;
char *p3;
char *p4;
p1 = strstr(temp_spec, "//");
if (p1) {
*p1 = '\0';
p1 += 2;
__protocol = temp_spec;
} else {
p1 = temp_spec;
}
p3 = strstr(p1, "/");
if (p3) {
p4 = strstr(p3, "#");
if (p4) {
__ref = p4 + 1;
*p4 = '\0';
}
__file = p3;
*p3 = '\0';
} else {
__file = "/";
}
p2 = strstr(p1, ":");
if (p2) {
__port = atoi(p2 + 1);
*p2 = '\0';
}
__host = p1;
delete [] temp_spec;
}
// if (__port == -1) {
// if (__protocol == "http") {
// __port = 80;
// } else if (__protocol == "ipp") {
// __port = 631;
// }
// }
}
URL::URL(const char *protocol, const char *host, int port, const char *file)
{
__protocol = protocol;
__host = host;
__file = file;
__port = port;
}
URL::URL(const char *protocol, const char *host, const char *file)
{
__protocol = protocol;
__host = host;
__file = file;
}
URL::URL(const URL &url)
{
__protocol = url.__protocol;
__host = url.__host;
__file = url.__file;
__ref = url.__ref;
__port = url.__port;
}
URL &URL::operator = (const URL &url)
{
__protocol = url.__protocol;
__host = url.__host;
__file = url.__file;
__ref = url.__ref;
__port = url.__port;
return *this;
}
bool URL::operator == (const URL &url)
{
return (__protocol == url.__protocol) && (__host == url.__host) && (__file == url.__file) &&
(__ref == url.__ref) && (__port == url.__port);
}

View File

@ -9,6 +9,7 @@
#include <Alert.h>
#include <algorithm>
#include <string.h>
#include "LpsClient.h"
#include "LprSetupDlg.h"

View File

@ -9,9 +9,10 @@
#include <netdb.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <iomanip>
#include <sstream>
#include <sstream>
#include "LpsClient.h"
#include "LprSetupDlg.h"

View File

@ -8,7 +8,9 @@
# include <net/socket.h>
# include <net/netdb.h>
#endif
#include <errno.h>
#include <string.h>
#include <iomanip>
#include <algorithm>

View File

@ -10,6 +10,7 @@
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "Socket.h"

View File

@ -9,6 +9,7 @@
#include "BMPTranslator.h"
#include "BMPView.h"
#include <algorithm>
#include <new>
#include <stdio.h>
#include <stdlib.h>
@ -16,6 +17,7 @@
using std::nothrow;
using std::min;
//#define INFO(x) printf(x);
#define INFO(x)
@ -1706,12 +1708,12 @@ BMPTranslator::translate_from_bmp(BPositionIO *inSource, uint32 outType,
if (!frommsformat && os2skip)
inSource->Seek(os2skip, SEEK_CUR);
rd = min(1024, fileHeader.fileSize - rdtotal);
rd = min((size_t)1024, fileHeader.fileSize - rdtotal);
rd = inSource->Read(buf, rd);
while (rd > 0) {
outDestination->Write(buf, rd);
rdtotal += rd;
rd = min(1024, fileHeader.fileSize - rdtotal);
rd = min((size_t)1024, fileHeader.fileSize - rdtotal);
rd = inSource->Read(buf, rd);
}
if (rd == 0)

View File

@ -17,6 +17,7 @@
#include <String.h>
#include <UTF8.h>
#include <algorithm>
#include <new>
#include <string.h>
#include <stdio.h>
@ -24,6 +25,7 @@
using namespace BPrivate;
using namespace std;
#define READ_BUFFER_SIZE 32768
@ -970,7 +972,7 @@ translate_from_stxt(BPositionIO *inSource, BPositionIO *outDestination,
// When outputting B_STYLED_TEXT_FORMAT, the loop stops when all
// of the data from inSource has been read and written.
if (btoplain)
nreed = min(READ_BUFFER_SIZE,
nreed = min((size_t)READ_BUFFER_SIZE,
txtheader.header.data_size - ntotalread);
else
nreed = READ_BUFFER_SIZE;
@ -982,7 +984,7 @@ translate_from_stxt(BPositionIO *inSource, BPositionIO *outDestination,
if (btoplain) {
ntotalread += nread;
nreed = min(READ_BUFFER_SIZE,
nreed = min((size_t)READ_BUFFER_SIZE,
txtheader.header.data_size - ntotalread);
} else
nreed = READ_BUFFER_SIZE;

View File

@ -1,5 +1,8 @@
#include "FtpClient.h"
#include <stdlib.h>
#include <string.h>
FtpClient::FtpClient()
: FileUploadClient(),
fState(0),

View File

@ -12,7 +12,7 @@
#include <Debug.h>
#include <String.h>
#include <ostream.h>
#include <ostream>
#include <list>
#include <utility>

View File

@ -22,7 +22,7 @@
#include "ImportContext.h"
#include "ExportContext.h"
#include <ostream.h>
#include <ostream>
#include "cortex_defs.h"
__BEGIN_CORTEX_NAMESPACE

View File

@ -8,9 +8,10 @@
*/
#include "InfoWindow.h"
#include <pair.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <utility>
#include <vector>
#include <StringView.h>
@ -22,6 +23,7 @@
using std::string;
using std::vector;
using std::pair;
LeftView::LeftView(BRect frame, BBitmap* icon)
: BView(frame, NULL, B_FOLLOW_NONE, B_WILL_DRAW),

View File

@ -8,6 +8,9 @@
*/
#include "Scanner.h"
#include <stdlib.h>
#include <string.h>
#include <Directory.h>
#include "Common.h"

View File

@ -9,6 +9,7 @@
#include "Snapshot.h"
#include <stdio.h>
#include <string.h>
#include <Directory.h>
#include <Mime.h>

View File

@ -9,7 +9,7 @@
#ifndef COMMAND_STACK_H
#define COMMAND_STACK_H
#include <stack.h>
#include <stack>
#include <Locker.h>
@ -39,7 +39,7 @@ class CommandStack : public BLocker,
private:
status_t _AddCommand(Command* command);
typedef stack<Command*> command_stack;
typedef std::stack<Command*> command_stack;
command_stack fUndoHistory;
command_stack fRedoHistory;

View File

@ -9,7 +9,7 @@
#include "ScrollView.h"
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include <string.h>
@ -24,6 +24,7 @@
#include "Scrollable.h"
#include "ScrollCornerBitmaps.h"
using namespace std;
// #pragma mark - InternalScrollBar

View File

@ -8,11 +8,13 @@
#include "Scrollable.h"
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include "Scroller.h"
using namespace std;
// constructor
Scrollable::Scrollable()
: fDataRect(0.0, 0.0, 0.0, 0.0),

View File

@ -8,6 +8,8 @@
#include "StateView.h"
#include <new>
#include <Message.h>
#include <MessageFilter.h>
#include <TextView.h>

View File

@ -8,6 +8,7 @@
#include "PathListView.h"
#include <new>
#include <stdio.h>
#include <Application.h>

View File

@ -8,6 +8,7 @@
#include "StyleListView.h"
#include <new>
#include <stdio.h>
#include <Application.h>

View File

@ -8,6 +8,8 @@
#include "StyleView.h"
#include <new>
#if __HAIKU__
# include "GridLayout.h"
# include "GroupLayout.h"

View File

@ -9,6 +9,7 @@
#include "Exporter.h"
#include <fs_attr.h>
#include <new>
#include <stdio.h>
#include <Alert.h>

View File

@ -9,6 +9,7 @@
#include "RDefExporter.h"
#include <stdio.h>
#include <string.h>
#include <DataIO.h>

View File

@ -9,6 +9,7 @@
#include "SourceExporter.h"
#include <stdio.h>
#include <string.h>
#include <DataIO.h>

View File

@ -19,6 +19,7 @@
#include <Window.h>
#include <map>
#include <string.h>
#include "TransportButton.h"
#include "DrawingTidbits.h"

View File

@ -1,6 +1,6 @@
// PlaybackManager.cpp
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include <Message.h>
@ -13,6 +13,8 @@
#include "PlaybackManager.h"
using namespace std;
//#define TRACE_NODE_MANAGER
#ifdef TRACE_NODE_MANAGER
# define TRACE(x...) printf(x)

View File

@ -5,7 +5,6 @@
#include "AudioAdapter.h"
#include <new>
#include <algobase.h>
#include <stdio.h>
#include <string.h>

View File

@ -5,7 +5,6 @@
#include "AudioChannelConverter.h"
#include <new>
#include <algobase.h>
#include <stdio.h>
#include <string.h>

View File

@ -6,8 +6,6 @@
#include "AudioFormatConverter.h"
#include <algobase.h>
#include <ByteOrder.h>
#include <MediaDefs.h>

View File

@ -2,11 +2,13 @@
* Copyright © 2000-2006 Ingo Weinhold <ingo_weinhold@gmx.de>
* All rights reserved. Distributed under the terms of the MIT licensce.
*/
#include <algobase.h>
#include <algorithm>
#include <string.h>
#include "AudioReader.h"
using std::swap;
AudioReader::AudioReader()
: fFormat(),

View File

@ -4,7 +4,6 @@
*/
#include "AudioResampler.h"
#include <algobase.h>
#include <stdio.h>
#include "SampleBuffer.h"

View File

@ -22,7 +22,7 @@
#include "Playlist.h"
#include <debugger.h>
#include <new.h>
#include <new>
#include <stdio.h>
#include <Autolock.h>

View File

@ -6,15 +6,14 @@
#include "MediaTrackAudioSupplier.h"
#include <new>
#include <algobase.h>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <MediaFile.h>
#include <MediaTrack.h>
using std::nothrow;
using namespace std;
//#define TRACE_AUDIO_SUPPLIER
#ifdef TRACE_AUDIO_SUPPLIER

View File

@ -4,7 +4,7 @@
*/
#include "ProxyAudioSupplier.h"
#include <algobase.h>
#include <algorithm>
#include <new>
#include <stdio.h>
#include <string.h>
@ -18,6 +18,7 @@
#include "PlaybackManager.h"
using std::nothrow;
using std::swap;
//#define TRACE_PROXY_AUDIO_SUPPLIER

View File

@ -8,7 +8,7 @@
#ifndef COMMAND_STACK_H
#define COMMAND_STACK_H
#include <stack.h>
#include <stack>
#include "Notifier.h"
@ -38,7 +38,7 @@ class CommandStack : public Notifier {
RWLocker* fLocker;
typedef stack<Command*> command_stack;
typedef std::stack<Command*> command_stack;
command_stack fUndoHistory;
command_stack fRedoHistory;

View File

@ -9,6 +9,7 @@
#include <SupportDefs.h>
#include <stdlib.h>
template<class T> class Stack {
public:

View File

@ -11,6 +11,8 @@
#include "SudokuSolver.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
SudokuGenerator::SudokuGenerator()
{

View File

@ -46,7 +46,7 @@ const uint32 kMsgExportAs = 'expt';
class GenerateSudoku {
public:
GenerateSudoku(SudokuField& target, int32 level, BMessenger progress,
GenerateSudoku(SudokuField& field, int32 level, BMessenger progress,
BMessenger target);
~GenerateSudoku();

View File

@ -10,6 +10,7 @@
#include <sys/stat.h>
#include <string>
#include <string.h>
#include <debugger.h>

View File

@ -9,6 +9,8 @@
#include "TypeHandler.h"
#include <string.h>
#include "Context.h"
#include "MemoryReader.h"
#include "Syscall.h"

View File

@ -8,6 +8,8 @@
#include "AddOnMonitorHandler.h"
#include <string.h>
#include <Directory.h>

View File

@ -7,6 +7,7 @@
#include <InterfaceDefs.h>
#include <math.h>
#include <memory>
#include <string.h>
#include "Halftone.h"
#include "ValidRect.h"
#include "DbgMsg.h"

View File

@ -10,8 +10,8 @@
#include <Bitmap.h>
#include <stdio.h>
#include <algo.h>
#include <stack.h>
#include <algorithm>
#include <stack>
#include "DrawState.h"
#include "GlyphLayoutEngine.h"
@ -489,7 +489,7 @@ DrawingEngine::CopyRegion(/*const*/ BRegion* region,
}
}
// put all nodes onto a stack that have an "indegree" count of zero
stack<node*> inDegreeZeroNodes;
std::stack<node*> inDegreeZeroNodes;
for (int32 i = 0; i < count; i++) {
if (nodes[i].in_degree == 0) {
inDegreeZeroNodes.push(&nodes[i]);

View File

@ -17,6 +17,8 @@
#include <netdb.h>
#include <netinet/in.h>
#include <new>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <vector>

View File

@ -6,6 +6,7 @@
#include <map>
#include <new>
#include <set>
#include <string.h>
#include <AutoDeleter.h>
#include <Autolock.h>

View File

@ -22,6 +22,8 @@
#include <Roster.h>
#include <storage_support.h>
#include <string.h>
#define DBG(x) (x)
//#define DBG(x)
#define OUT printf

View File

@ -4,6 +4,7 @@
*/
#include <new>
#include <string.h>
#include <signal.h>
#include <unistd.h>

View File

@ -24,6 +24,7 @@
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "AppInfoListMessagingTargetSet.h"
#include "Debug.h"

View File

@ -11,6 +11,7 @@
#include "CreateAppMetaMimeThread.h"
#include <stdio.h>
#include <stdlib.h>
#include <AppFileInfo.h>
#include <Bitmap.h>

View File

@ -9,6 +9,9 @@
#include "UpdateMimeInfoThread.h"
#include <stdlib.h>
#include <string.h>
#include <AppFileInfo.h>
#include <Bitmap.h>
#include <fs_attr.h>