"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /* Copyright (C) 2004 Ghostgum Software Pty Ltd. All rights reserved.
2
3 This software is provided AS-IS with no warranty, either express or
4 implied.
5
6 This software is distributed under licence and may not be copied,
7 modified or distributed except as expressly authorised under the terms
8 of the licence contained in the file LICENCE in this distribution.
9
10 For more information about licensing, please refer to
11 http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd,
12 218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA,
13 Fax +61 3 9886 6616.
14 */
15
16 /* $Id: xnodll.c,v 1.2 2004/11/29 08:09:33 ghostgum Exp $ */
17 /* Stubs for platforms without shared objects or DLLs */
18
19 #include <stdio.h>
20 #include <string.h>
21 #include "common.h"
22 #include "cdll.h"
23
24 /******************************************************************/
25
26 static int
27 dll_msg(TCHAR *msg, LPCTSTR str, int msglen)
28 {
29 int len = (int)cslen(str);
30 if (len < msglen){
31 csncat(msg, str, len);
32 msglen -= len;
33 }
34 return msglen;
35 }
36
37
38
39 /* platform dependent */
40 /* Load DLL */
41 int
42 dll_open(GGMODULE *hmodule, LPCTSTR name, TCHAR *msg, int msglen)
43 {
44 memset(msg, 0, msglen);
45 msglen = dll_msg(msg, TEXT("Trying to load "), msglen);
46 msglen = dll_msg(msg, name, msglen);
47 msglen = dll_msg(msg, TEXT("\n"), msglen);
48 msglen = dll_msg(msg, TEXT("Can't load libraries on this platform.\n"), msglen);
49 *hmodule = NULL;
50 return -1;
51 }
52
53 /* Unload DLL */
54 int
55 dll_close(GGMODULE *hmodule)
56 {
57 return -1;
58 }
59
60 dll_proc
61 dll_sym(GGMODULE *hmodule, const char *name)
62 {
63 return NULL;
64 }
65
66
67
68 /******************************************************************/