~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to mess/src/osd/osdmini/minimisc.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//============================================================
2
 
//
3
 
//  minimisc.c - Minimal core miscellaneous functions
4
 
//
5
 
//============================================================
6
 
//
7
 
//  Copyright Aaron Giles
8
 
//  All rights reserved.
9
 
//
10
 
//  Redistribution and use in source and binary forms, with or
11
 
//  without modification, are permitted provided that the
12
 
//  following conditions are met:
13
 
//
14
 
//    * Redistributions of source code must retain the above
15
 
//      copyright notice, this list of conditions and the
16
 
//      following disclaimer.
17
 
//    * Redistributions in binary form must reproduce the
18
 
//      above copyright notice, this list of conditions and
19
 
//      the following disclaimer in the documentation and/or
20
 
//      other materials provided with the distribution.
21
 
//    * Neither the name 'MAME' nor the names of its
22
 
//      contributors may be used to endorse or promote
23
 
//      products derived from this software without specific
24
 
//      prior written permission.
25
 
//
26
 
//  THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND
27
 
//  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
 
//  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
29
 
//  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
30
 
//  EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
31
 
//  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32
 
//  DAMAGE (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33
 
//  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
34
 
//  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
35
 
//  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36
 
//  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37
 
//  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
38
 
//  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
 
//
40
 
//============================================================
41
 
 
42
 
#include "osdcore.h"
43
 
#include <stdlib.h>
44
 
 
45
 
 
46
 
//============================================================
47
 
//  osd_malloc
48
 
//============================================================
49
 
 
50
 
void *osd_malloc(size_t size)
51
 
{
52
 
        return malloc(size);
53
 
}
54
 
 
55
 
 
56
 
//============================================================
57
 
//  osd_malloc_array
58
 
//============================================================
59
 
 
60
 
void *osd_malloc_array(size_t size)
61
 
{
62
 
        return malloc(size);
63
 
}
64
 
 
65
 
 
66
 
//============================================================
67
 
//  osd_free
68
 
//============================================================
69
 
 
70
 
void osd_free(void *ptr)
71
 
{
72
 
        free(ptr);
73
 
}
74
 
 
75
 
 
76
 
//============================================================
77
 
//  osd_alloc_executable
78
 
//============================================================
79
 
 
80
 
void *osd_alloc_executable(size_t size)
81
 
{
82
 
        // to use this version of the code, we have to assume that
83
 
        // code injected into a malloc'ed region can be safely executed
84
 
        return malloc(size);
85
 
}
86
 
 
87
 
 
88
 
//============================================================
89
 
//  osd_free_executable
90
 
//============================================================
91
 
 
92
 
void osd_free_executable(void *ptr, size_t size)
93
 
{
94
 
        free(ptr);
95
 
}
96
 
 
97
 
 
98
 
//============================================================
99
 
//  osd_break_into_debugger
100
 
//============================================================
101
 
 
102
 
void osd_break_into_debugger(const char *message)
103
 
{
104
 
        // there is no standard way to do this, so ignore it
105
 
}
106
 
 
107
 
 
108
 
//============================================================
109
 
//  osd_get_clipboard_text
110
 
//============================================================
111
 
 
112
 
char *osd_get_clipboard_text(void)
113
 
{
114
 
        // can't support clipboards generically
115
 
        return NULL;
116
 
}
117
 
 
118
 
 
119
 
//============================================================
120
 
//  osd_get_slider_list
121
 
//============================================================
122
 
 
123
 
const void *osd_get_slider_list()
124
 
{
125
 
        // nothing to slide in mini OSD
126
 
        return NULL;
127
 
}