Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 153363
Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +12 lines)
Line  Link Here
0
-- a/headers/lang/ReadWriteMacros.h
0
++ b/headers/lang/ReadWriteMacros.h
Lines 289-331 public: Link Here
289
289
290
290
291
// core routines
291
// core routines
292
template <>
292
inline void SC_IOStream<FILE*>::readData(char *data, int size)
293
inline void SC_IOStream<FILE*>::readData(char *data, int size)
293
{
294
{
294
    fread(data, 1, size, s);
295
    fread(data, 1, size, s);
295
}
296
}
296
297
298
template <>
297
inline uint8 SC_IOStream<FILE*>::readUInt8()
299
inline uint8 SC_IOStream<FILE*>::readUInt8()
298
{
300
{
299
    return (uint8)fgetc(s);
301
    return (uint8)fgetc(s);
300
}
302
}
301
303
304
template <>
302
inline void SC_IOStream<FILE*>::writeData(char *data, int size)
305
inline void SC_IOStream<FILE*>::writeData(char *data, int size)
303
{
306
{
304
    fwrite(data, 1, size, s);
307
    fwrite(data, 1, size, s);
305
}
308
}
306
309
310
template <>
307
inline void SC_IOStream<FILE*>::writeUInt8(uint8 inInt)
311
inline void SC_IOStream<FILE*>::writeUInt8(uint8 inInt)
308
{
312
{
309
    fputc(inInt, s);
313
    fputc(inInt, s);
310
}
314
}
311
315
312
// core routines
316
// core routines
317
template <>
313
inline void SC_IOStream<char*>::readData(char *data, int size)
318
inline void SC_IOStream<char*>::readData(char *data, int size)
314
{
319
{
315
    memcpy(data, s, size);
320
    memcpy(data, s, size);
316
    s += size;
321
    s += size;
317
}
322
}
323
324
template <>
318
inline uint8 SC_IOStream<char*>::readUInt8()
325
inline uint8 SC_IOStream<char*>::readUInt8()
319
{
326
{
320
    return (uint8)*s++;
327
    return (uint8)*s++;
321
}
328
}
322
329
330
template <>
323
inline void SC_IOStream<char*>::writeData(char *data, int size)
331
inline void SC_IOStream<char*>::writeData(char *data, int size)
324
{
332
{
325
    memcpy(s, data, size);
333
    memcpy(s, data, size);
326
        s += size;
334
        s += size;
327
}
335
}
328
336
337
template <>
329
inline void SC_IOStream<char*>::writeUInt8(uint8 inInt)
338
inline void SC_IOStream<char*>::writeUInt8(uint8 inInt)
330
{
339
{
331
    *s++ = (inInt & 255);
340
    *s++ = (inInt & 255);
332
-- a/source/lang/LangSource/SC_LanguageClient.cpp
341
++ b/source/lang/LangSource/SC_LanguageClient.cpp
Lines 105-111 void SC_LanguageClient::compileLibrary() Link Here
105
	::compileLibrary();
105
	::compileLibrary();
106
}
106
}
107
107
108
extern void ::shutdownLibrary();
108
extern void shutdownLibrary();
109
void SC_LanguageClient::shutdownLibrary()
109
void SC_LanguageClient::shutdownLibrary()
110
{
110
{
111
	::shutdownLibrary();
111
	::shutdownLibrary();

Return to bug 153363