equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
59 |
59 |
60 #define INVOKE(name,def) _INVOKE(name,def,return) |
60 #define INVOKE(name,def) _INVOKE(name,def,return) |
61 #define INVOKEV(name) _INVOKE(name, ,;) |
61 #define INVOKEV(name) _INVOKE(name, ,;) |
62 |
62 |
63 int DoSplashLoadMemory(void* pdata, int size) { |
63 int DoSplashLoadMemory(void* pdata, int size) { |
64 INVOKE(SplashLoadMemory, NULL)(pdata, size); |
64 INVOKE(SplashLoadMemory, 0)(pdata, size); |
65 } |
65 } |
66 |
66 |
67 int DoSplashLoadFile(const char* filename) { |
67 int DoSplashLoadFile(const char* filename) { |
68 INVOKE(SplashLoadFile, NULL)(filename); |
68 INVOKE(SplashLoadFile, 0)(filename); |
69 } |
69 } |
70 |
70 |
71 void DoSplashInit(void) { |
71 void DoSplashInit(void) { |
72 INVOKEV(SplashInit)(); |
72 INVOKEV(SplashInit)(); |
73 } |
73 } |