示例#1
0
文件: zfs_osx.cpp 项目: rottegift/zfs
#include <sys/zvolIO.h>

#include <sys/zfs_vnops.h>
#include <sys/taskq.h>

#include <libkern/version.h>

#include <libkern/sysctl.h>


extern "C" {
    extern kern_return_t _start(kmod_info_t *ki, void *data);
    extern kern_return_t _stop(kmod_info_t *ki, void *data);

};
__attribute__((visibility("default"))) KMOD_EXPLICIT_DECL(net.lundman.zfs, "1.0.0", _start, _stop)
__private_extern__ kmod_start_func_t *_realmain = 0;
__private_extern__ kmod_stop_func_t  *_antimain = 0;
__private_extern__ int _kext_apple_cc = __APPLE_CC__ ;


/*
 * Can those with more C++ experience clean this up?
 */
static void *global_c_interface = NULL;

/* Notifier for disk removal */
static IONotifier *disk_remove_notifier = NULL;

static bool IOkit_disk_removed_callback(void* target, void* refCon, IOService* newService, IONotifier* notifier);
示例#2
0
/* Test warning from conflicting visibility specifications. */
/* { dg-require-visibility "protected" } */
/* { dg-final { scan-hidden "xyzzy" } } */

extern int 
__attribute__((visibility ("hidden")))
xyzzy; /* { dg-message "previous declaration" } */

int 
__attribute__((visibility ("protected")))
xyzzy = 5; /* { dg-warning "visibility attribute ignored" } */
示例#3
0
文件: 03973.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_3973)

//======================================================================
//
//	_3973, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1304 = 1816
//
//	Time-stamp: 2014-11-28, 05:20:05
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _3973Tiles[326] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x223D2200,0x2D222D22,0x1063402D,0x413F2D07,0x01413D41,0x41112D41,0x002D1141,
	0x0A008407,0x22222D3D,0x222D0120,0x09406360,0x22181000,0x80962239,0x182D0710,0x47183F3F,
	0x4A4A0047,0x5B5B3F3F,0x7C006623,0x5B417A66,0x085B4A5D,0x3F5B2366,0x4A4A1900,0x18180023,
	0x5B231818,0x00D0664A,0x230F0027,0x473F0F10,0x2F41664A,0x4A5B0E00,0x0066324A,0x7C230012,
	0x6632217C,0x230132B1,0x7C49B117,0x0F007C23,0x32232310,0x23231600,0x00D07C21,0x4901600D,
	0x49321820,0xC1008837,0x03324932,0x0003C1C1,0xB132796F,0x17B1497C,0x17280080,0x7C322303,
	0x21404923,0x49213A00,0x212E2323,0x000700F4,0x100F000C,0x4F302139,0x66054A23,0x32327932,
	0x00495D00,0x0400D007,0x10216100,0x1E4747BC,0x104A4047,0x47533F03,0x001E4723,0x2147471E,

	0x473F4747,0x1E331800,0x21331E7C,0xB918025B,0xB91E66B9,0x4C332100,0x18EC001E,0x0005001E,
	0x0AB91E2F,0x3918591E,0x31180E21,0x180F1825,0x10181841,0x3017010E,0xE8FE0007,0x22000F20,
	0x303F07A0,0x5E3F181B,0x614C1800,0x87494A4A,0x1200805E,0x253E4A3F,0x90611818,0x19193601,
	0x214A2711,0x01809332,0x214A4C2E,0x18229BAA,0x4A613F02,0x10C01B23,0x2310213A,0x63104031,
	0xC0154A23,0x87323200,0xC5C53131,0x60320093,0x0B04D678,0x850016CB,0x0BBD0BA3,0x00272782,
示例#4
0
文件: 03645.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_3645)

//======================================================================
//
//	_3645, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1380 = 1892
//
//	Time-stamp: 2014-11-28, 05:20:03
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _3645Tiles[345] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0xD38D8600,0x6E8E6ED7,0x0730806E,0xE2445A5A,0x116EAD2D,0x008E8E8E,0x446EF207,
	0x8D000700,0x44784C2D,0x0844448E,0x8E4CD38D,0x99290710,0x445A084C,0x0720975A,0x008E8E97,
	0x496E6E5A,0x6D494EF5,0x6E788E00,0x4EECCCBA,0x3A008249,0xEA9B328E,0x8E3A0051,0x640C6E04,
	0x5B003F32,0xCE10CECE,0x10103FCE,0x44AFAF8E,0x97530080,0x44CEAF97,0x97009744,0x43CE9797,
	0x0043706D,0xEE4E3E3E,0x43AF6DC2,0x31511000,0xCECE7DEE,0x3E320443,0x009F5B9D,0x004E1022,
	0xAF564E31,0xA71F43CE,0x4E3EA700,0x1F4343AF,0x1F8B008B,0x2743C39D,0x1200120E,0x27100E9D,
	0x004F1654,0x6F1F43A8,0x7D6F6F6F,0x7D7D7D0E,0x100740D6,0x9A10100F,0x9A9A6F00,0x7D45A145,
	0x07108425,0xEE454545,0x6F250740,0xC2C2C201,0x9F4545C2,0x45400700,0x43310700,0x6D320210,

	0xA7242A00,0x1D02931D,0xAF93006D,0x2AAFC73A,0x1D003279,0x93696879,0x00797924,0x6969796D,
	0x64790280,0x69243200,0x69693A45,0x93D10045,0x7A457A7A,0x7A00A93A,0x3A3A7AF7,0x042C807A,
	0xE244DDAC,0x860F11D3,0xD3E2041B,0x10975AAD,0x8803BB07,0x445A1F01,0xCB07204B,0xD3024B44,
	0x26395AD7,0x05071039,0x265A5A00,0xD7D3E2CB,0x5A5A1438,0x4407505A,0xD9700811,0x8686D810,
	0x43CE1701,0x3901393E,0x6DAF5A97,0x1F01434F,0xAFAF5A00,0x444408AF,0x015A4039,0x3939AF2F,
示例#5
0
文件: 01669.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_1669)

//======================================================================
//
//	_1669, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1316 = 1828
//
//	Time-stamp: 2014-11-28, 05:19:47
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _1669Tiles[329] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0xF9E74700,0x9F205089,0x04860089,0x01014778,0x9C00DF01,0xEAEAE712,0x00194208,
	0x9F01D0D0,0xA5199F70,0x865C9500,0xE2708972,0x4BFF0055,0x1970785C,0x1910A5A5,0x1E109F08,
	0xDE060619,0x00757520,0x42892001,0x42004242,0x50DFA5A5,0x0020DF70,0x42B94270,0xF150B9B9,
	0x42DF5000,0x20A53B3B,0xF1EE20B4,0xEE701900,0x00F1F1F1,0x20E2A550,0x50EEEEEE,0xB9B92000,
	0x50202070,0x10974038,0x633B3B3C,0x02198854,0xC6B9A519,0x0400A5A5,0x0610A013,0xA5400042,
	0x423B3B55,0x1300B940,0xF0753B13,0x5B0045F0,0x75754A83,0x00EBE097,0x559B57EB,0x0AB5E675,
	0x58234C00,0xE6E63B3B,0xF73A1076,0xA56500E8,0x02551355,0xA555E2C6,0x07001313,0x3900DCC6,
	0x30550100,0xF001F006,0x7E555501,0x30C72055,0xF001F005,0x400C3001,0x062C7536,0xDE0711DE,

	0x7A000510,0x00F07575,0x00022086,0xC6022057,0xE01919E2,0x1F100110,0x68681730,0x0068A588,
	0x089F9F68,0x9F9F9F08,0x3900F941,0x8A063BDE,0x083B1097,0x4854DE3B,0x62623910,0xA53800FC,
	0xA5555588,0x174197A5,0xDC55D200,0x10FCFEB9,0x3B62005B,0x8888978A,0xA5021313,0x8948873B,
	0x57011089,0x1E1EAB00,0x3F640A31,0xB64A0024,0x9D33313A,0xA000468B,0x4C763A3A,0x0009F59D,
	0x761E3ACB,0x2FF53F4C,0x76764A00,0xD3FDDAE8,0x0D130020,0xBB64E876,0xDE00139E,0xBC6CA3A3,
示例#6
0
#include "runtime/types.h"

namespace pyston {

extern "C" {
BoxedClass* frame_cls;
}

// Issues:
// - breaks gdb backtraces
// - breaks c++ exceptions
// - we never free the trampolines
class BoxedFrame : public Box {
private:
    // Call boxFrame to get a BoxedFrame object.
    BoxedFrame(FrameInfo* frame_info) __attribute__((visibility("default")))
    : frame_info(frame_info), _back(NULL), _code(NULL), _globals(NULL), _locals(NULL), _linenumber(-1) {}

public:
    FrameInfo* frame_info;

    Box* _back;
    Box* _code;
    Box* _globals;
    Box* _locals;

    int _linenumber;


    bool hasExited() const { return frame_info == NULL; }
      ? strdup(response)
      : strcat(strcpy(malloc(sizeof(pw) + strlen(response)), pw), response);
    (*resp)->resp_retcode = 0;
    return PAM_SUCCESS;
  }
  return PAM_CONV_ERR;
}

#ifdef sun
#define PAM_CONST
#else
#define PAM_CONST const
#endif
int pam_get_item(const pam_handle_t *pamh, int item_type,
                 PAM_CONST void **item)
  __attribute__((visibility("default")));
int pam_get_item(const pam_handle_t *pamh, int item_type,
                 PAM_CONST void **item) {
  switch (item_type) {
    case PAM_SERVICE: {
      static const char *service = "google_authenticator_unittest";
      memcpy(item, &service, sizeof(service));
      return PAM_SUCCESS;
    }
    case PAM_USER: {
      char *user = getenv("USER");
      memcpy(item, &user, sizeof(user));
      return PAM_SUCCESS;
    }
    case PAM_CONV: {
      static struct pam_conv conv = { .conv = conversation }, *p_conv = &conv;
#include <errno.h>
#include <utime.h>
#include <sys/types.h>
#include <sys/wait.h>

#include "dalvik.h"
#include "common.h"

static JNIEnv* jni_env;
static ClassObject* classJavaLangObjectArray;
static jclass NPEClazz;
static jclass CastEClazz;
static jmethodID jInvokeMethod;
static jmethodID jClassMethod;

extern jboolean __attribute__ ((visibility ("hidden"))) dalvik_setup(
		JNIEnv* env, int apilevel) {
	jni_env = env;
	void* dvm_hand = dlopen("libdvm.so", RTLD_NOW);
	if (dvm_hand) {
		dvmComputeMethodArgsSize_fnPtr = dvm_dlsym(dvm_hand,
				apilevel > 10 ?
						"_Z24dvmComputeMethodArgsSizePK6Method" :
						"dvmComputeMethodArgsSize");
		if (!dvmComputeMethodArgsSize_fnPtr) {
			throwNPE(env, "dvmComputeMethodArgsSize_fnPtr");
			return JNI_FALSE;
		}
		dvmCallMethod_fnPtr = dvm_dlsym(dvm_hand,
				apilevel > 10 ?
						"_Z13dvmCallMethodP6ThreadPK6MethodP6ObjectP6JValuez" :
示例#9
0
 * newly allocated memory.  The algorithm is to walk the configuration strings
 * and build a table of each key/value pair. The pairs are sorted based on the
 * name and the configuration string in which they were found, and a final
 * configuration string is built from the result. Additionally, a configuration
 * string can be specified and those configuration values are removed from the
 * final string.
 *
 * Note:
 *	Nested structures are parsed and merged. For example, if configuration
 *	strings "key=(k1=v1,k2=v2)" and "key=(k1=v2)" appear, the result will
 *	be "key=(k1=v2,k2=v2)" because the nested values are merged.
 */
int
__wt_config_merge(WT_SESSION_IMPL *session,
    const char **cfg, const char *cfg_strip, const char **config_ret)
    WT_GCC_FUNC_ATTRIBUTE((visibility("default")))
{
	WT_CONFIG_MERGE merge;
	WT_DECL_RET;
	size_t i;

	/* Start out with a reasonable number of entries. */
	WT_CLEAR(merge);

	WT_RET(__wt_realloc_def(
	    session, &merge.entries_allocated, 100, &merge.entries));

	/*
	 * Scan the configuration strings, entering them into the array. The
	 * list of configuration values to be removed must be scanned last
	 * so their generation numbers are the highest.
示例#10
0
   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <http://www.gnu.org/licenses/>.  */

/* Define multiple versions only for the definition in libc.  */
#if IS_IN (libc)
# define strrchr __redirect_strrchr
# include <string.h>
# undef strrchr

# define SYMBOL_NAME strrchr
# include "ifunc-avx2.h"

libc_ifunc_redirected (__redirect_strrchr, strrchr, IFUNC_SELECTOR ());
weak_alias (strrchr, rindex);
# ifdef SHARED
__hidden_ver1 (strrchr, __GI_strrchr, __redirect_strrchr)
  __attribute__((visibility ("hidden"))) __attribute_copy__ (strrchr);
# endif
#endif
示例#11
0
文件: pr65248-2.c 项目: 0day-ci/gcc
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fpic" } */

/* Weak common symbol with -fpic.  */
__attribute__((weak, visibility("protected")))
int xxx;

int
foo ()
{
  return xxx;
}

/* { dg-final { scan-assembler-not "xxx\\(%rip\\)" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler "[email protected]" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-not "[email protected]" { target ia32 } } } */
/* { dg-final { scan-assembler "[email protected]\\(" { target ia32 } } } */
示例#12
0
#include <sys/mman.h>
#include <elf.h>

/* The Android NDK headers define those */
#undef Elf_Ehdr
#undef Elf_Addr

#if defined(__LP64__)
#define Elf_Ehdr Elf64_Ehdr
#define Elf_Addr Elf64_Addr
#else
#define Elf_Ehdr Elf32_Ehdr
#define Elf_Addr Elf32_Addr
#endif

extern __attribute__((visibility("hidden"))) void original_init(int argc, char **argv, char **env);

extern __attribute__((visibility("hidden"))) Elf32_Rel relhack[];
extern __attribute__((visibility("hidden"))) Elf_Ehdr elf_header;

extern __attribute__((visibility("hidden"))) int (*mprotect_cb)(void *addr, size_t len, int prot);
extern __attribute__((visibility("hidden"))) char relro_start[];
extern __attribute__((visibility("hidden"))) char relro_end[];

static inline __attribute__((always_inline))
void do_relocations(void)
{
    Elf32_Rel *rel;
    Elf_Addr *ptr, *start;
    for (rel = relhack; rel->r_offset; rel++) {
        start = (Elf_Addr *)((intptr_t)&elf_header + rel->r_offset);
示例#13
0
文件: 00812.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_0812)

//======================================================================
//
//	_0812, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1416 = 1928
//
//	Time-stamp: 2014-11-28, 05:19:41
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _0812Tiles[354] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x20382000,0x76F37D20,0x060080B8,0xB8F30620,0x006438B8,0xBAF9208F,0x38BCB8B8,
	0x7D070080,0xCEEAD176,0xB0008F8F,0xFBBF8922,0x008FF9BA,0xFF2DEEB0,0xD40C01D9,0x9922D600,
	0xB8336DBE,0xFCD6000C,0x5143BD99,0xA200A851,0x61C25E5E,0x00A851E1,0x4C4C5E7E,0x6EA2E1BF,
	0xFE989800,0x46BF60FE,0x7C5900A2,0xFF46857C,0xDD004859,0xA6DD1212,0x008A4837,0xC512DD12,
	0x1E1E63BE,0xC31E1E00,0x02B76608,0x240200C3,0xC2C2531E,0xDB00BD78,0x78754646,0x00BD4678,
	0x2978783B,0xBD785985,0x75292900,0xA65959B6,0xDB2902DB,0x666675DB,0x08BD0E00,0x6885755E,
	0xDBDB1700,0x53C708DB,0x1600BDBD,0x00C5C5DB,0xDB98DB29,0x5E7575C9,0x5B020080,0x29B63C4D,
	0xB6187575,0x0700A3B6,0xA3A30500,0x757500A3,0x4DB6A34D,0x5E20A3A3,0xA30D10DB,0x75984C4D,

	0x84A37510,0x4CA20700,0x0B00A5C2,0x4C5E3C3C,0xA15E46A2,0x003C2F00,0x6C3C7001,0xE107304D,
	0x13200E20,0x3C3C1930,0x1A20A34D,0x05303C58,0x70224070,0x33013307,0x5050C800,0xC801689D,
	0x860100D1,0x01CA9750,0xAD0033C8,0x6B883089,0x00F70133,0xDA259401,0xF7B8D19D,0x4351F700,
	0xB8339779,0x43D900F7,0xD917996E,0xF700C8F7,0xA9996E51,0x001BD961,0x2ADC6EDC,0x08B74854,
	0xE7A00800,0xB7481A35,0x1AC40072,0xC4F47AE4,0x8D001EC3,0xE47A7AE4,0x001E7268,0xE88D4AD2,
示例#14
0
#include <stdlib.h>

volatile int func() { return 4; }
volatile int func2() __attribute__((visibility("hidden"), alias("func")));

int main() {
  if (func2() != 4) {
    abort();
  }
}
#include <dlfcn.h>
#include <errno.h>
#include <libgen.h>
#include <mach-o/dyld.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "chrome/common/chrome_version.h"

typedef int (*ChromeMainPtr)(int, char**);

__attribute__((visibility("default"))) int main(int argc, char* argv[]) {
#if defined(HELPER_EXECUTABLE)
  const char* const rel_path =
      "../../../" PRODUCT_FULLNAME_STRING
      " Framework.framework/" PRODUCT_FULLNAME_STRING " Framework";
#else
  const char* const rel_path =
#if defined(VIVALDI_BUILD)
#define LOCAL_VERSION_STRING VIVALDI_VERSION_STRING
#else
#define LOCAL_VERSION_STRING CHROME_VERSION_STRING
#endif
      "../Versions/" LOCAL_VERSION_STRING "/" PRODUCT_FULLNAME_STRING
      " Framework.framework/" PRODUCT_FULLNAME_STRING " Framework";
#endif  // defined(HELPER_EXECUTABLE)
示例#16
0
文件: aeabi_div0.c 项目: Zeke-OS/zeke
 * Run-time ABI for the ARM Architecture.
 *
 * ===----------------------------------------------------------------------===
 */

/*
 * RTABI 4.3.2 - Division by zero
 *
 * The *div0 functions:
 * - Return the value passed to them as a parameter
 * - Or, return a fixed value defined by the execution environment (such as 0)
 * - Or, raise a signal (often SIGFPE) or throw an exception, and do not return
 *
 * An application may provide its own implementations of the *div0 functions to
 * for a particular behaviour from the *div and *divmod functions called out of
 * line.
 */

/* provide an unused declaration to pacify pendantic compilation */
extern unsigned char declaration;

int __attribute__((weak)) __attribute__((visibility("hidden")))
__aeabi_idiv0(int return_value) {
  return return_value;
}

long long __attribute__((weak)) __attribute__((visibility("hidden")))
__aeabi_ldiv0(long long return_value) {
  return return_value;
}
示例#17
0
文件: 04914.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_4914)

//======================================================================
//
//	_4914, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1452 = 1964
//
//	Time-stamp: 2014-11-28, 05:20:13
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _4914Tiles[363] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x9D9D9D00,0x09161616,0x0730842A,0xB9B9F9F9,0x309D1100,0x6F6FC412,0x9CC40710,
	0x20C40F30,0x17207DF8,0x309CEA9C,0xC43000F9,0x30EAC416,0xC420092A,0xBC0700F7,0x3A5E4FCB,
	0xBF1AD200,0xD25503CB,0xC03A00D2,0x1AC7CBCA,0x6D003A7E,0x01BCF2BF,0x003A7E7E,0x3F7FCA32,
	0xB035CF83,0x7FCA6700,0xAB3583FA,0x456C006D,0x2F7F1E76,0x15002F15,0x76F52145,0x00152DCE,
	0x204521CE,0x832BF2A9,0x27272500,0x9E3D4545,0x91EE005E,0x7FF27627,0x0081A00F,0x76F2F210,
	0x205EA0AA,0xA03D0007,0xA941B59E,0x3D00A9A9,0xE1399EC6,0x00BEA9A9,0x76B132CA,0x178C8CF0,
	0x224A7F00,0x8B8BF039,0x9595069B,0x0095DE95,0x9B081007,0x0710BD40,0xBDDEDEBD,0x2080E627,
	0x368B2707,0xDE95C336,0x948BDE00,0xC336F6F6,0xF19B009B,0x3636D35D,0xDE00BB65,0x36365DF1,

	0x00BB3636,0xC39BC3DE,0x14E13FC3,0xC3C30200,0x811353C3,0x37CF0054,0x4FBBBD37,0x35004CCA,
	0xBBBB3737,0x82B0C0BE,0x14120710,0x0069696D,0x04088017,0x002F2F6D,0x2DB8C759,0xDE069200,
	0x6BC7C750,0x8D8D00CD,0x4394DFEF,0xC400F9C4,0xDDDD9BFC,0x00F9F936,0x6001EAC4,0x6189273B,
	0x688AA600,0x6127C83B,0x8AA60029,0xBF9EAAAA,0x6600E1E5,0xD2585848,0x009E58D2,0xD2D203C8,
	0xC0027171,0x1AACB510,0xCA1A0700,0x1100EBBC,0x2D339AB7,0x0082822D,0x0E33AF11,0xA1823338,
示例#18
0
};

void MCAndroidPlayerControl::HandlePropertyAvailableEvent(const char *p_property)
{
	MCObject *t_target;
	t_target = GetOwner();
	if (t_target != nil)
	{
		MCNativeControl *t_old_target;
		t_old_target = ChangeTarget(this);
		t_target -> message_with_args(MCM_player_property_available, p_property);
		ChangeTarget(t_old_target);
	}
}

extern "C" JNIEXPORT void JNICALL Java_com_runrev_android_nativecontrol_VideoControl_doPlayerFinished(JNIEnv *env, jobject object) __attribute__((visibility("default")));
JNIEXPORT void JNICALL Java_com_runrev_android_nativecontrol_VideoControl_doPlayerFinished(JNIEnv *env, jobject object)
{
    MCLog("doPlayerFinished", nil);
    MCAndroidControl *t_control = nil;
    
    if (MCAndroidControl::FindByView(object, t_control))
        t_control->PostNotifyEvent(MCM_player_finished);
}

extern "C" JNIEXPORT void JNICALL Java_com_runrev_android_nativecontrol_VideoControl_doPlayerError(JNIEnv *env, jobject object) __attribute__((visibility("default")));
JNIEXPORT void JNICALL Java_com_runrev_android_nativecontrol_VideoControl_doPlayerError(JNIEnv *env, jobject object)
{
    MCLog("doPlayerError", nil);
    MCAndroidControl *t_control = nil;
    
示例#19
0
文件: 00038.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_0038)

//======================================================================
//
//	_0038, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1288 = 1800
//
//	Time-stamp: 2014-11-28, 05:19:35
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _0038Tiles[322] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x1A373700,0x5A373737,0x07F0C294,0x37280770,0x07301F5A,0x2264005B,0x37222222,
	0xAE104831,0x07005F5F,0x0BAE4821,0x25484A00,0x54544A73,0x486E08BC,0x07002625,0x14486EA8,
	0x0073692E,0x07005007,0x54252426,0x25070096,0x66070002,0x69100700,0x07003224,0x2425480E,
	0x66233200,0x48344828,0x54320026,0x1D1D1D54,0x541F5454,0x07803254,0x17401020,0x20001F10,
	0x1D323218,0x2D202900,0x10125432,0x006D5512,0x8A8A1236,0x8A6E0012,0x42314869,0x24042121,
	0x4248696E,0x314C0730,0x21212106,0x07002454,0x22541700,0x07302624,0x20257354,0x7300120F,
	0x2142344C,0x20121231,0x07102524,0x2121365F,0x19210F2D,0x0740361B,0x4A000FD0,0x37111F00,
	0x08105F1B,0x20284221,0x21211006,0x0D074037,0x00373131,0x48213137,0x37313747,0x71423100,

	0x31377425,0x00425031,0x4C014707,0x484F4242,0x28284700,0x865A2848,0x2E961017,0x5A17012E,
	0x004C9210,0x664C4C4C,0x3CAF6B5A,0x5A253C08,0x64070043,0x8D018D66,0x243C398D,0x2900BD33,
	0x263C4803,0x004848C1,0x02073001,0x264C3939,0x08105A70,0x9426204B,0x244C0720,0x006656A9,
	0x8C394B5A,0x66A59A0A,0x43434301,0x6D6D122C,0x12000901,0xA3A36A6A,0x401D6D0F,0x0F070054,
	0x557A0F0F,0x2012402F,0x55551D07,0x01590F1D,0x9953537A,0x10131399,0x99530007,0x60605359,
示例#20
0
void UmlOperation::gen_uml_decl()
{
    if (isAbstract())
        fw.write("abstract, ");

    if (isClassMember())
        fw.write("static, ");

    write(visibility());
    writeq(name());

    const Q3ValueList<UmlParameter> & pa = params();
    unsigned npa = pa.count();
    unsigned rank;
    const char * sep = "(";

    for (rank = 0; rank != npa; rank += 1) {
        const UmlParameter & p = pa[rank];

        fw.write(sep);
        sep = ", ";

        switch (p.dir) {
        case InputOutputDirection:
            fw.write("inout ");
            break;

        case InputDirection:
            fw.write("in ");
            break;

        default:
            // OutputDirection
            fw.write("out ");
        }

        writeq(p.name);
        fw.write(" : ");
        write(p.type);

        Q3CString s = p.default_value;

        if (!s.isEmpty()) {
            if (s[0] != '=')
                fw.write(" = ");

            writeq(s);
        }
    }

    fw.write((rank == 0) ? "() : " : ") : ");
    write(returnType());

    sep = ",  exceptions : ";

    const Q3ValueList<UmlTypeSpec> e = exceptions();
    unsigned n = e.count();

    for (unsigned index2 = 0; index2 != n; index2 += 1) {
        fw.write(sep);
        sep = ", ";
        write(e[index2]);
    }
}
示例#21
0
文件: 03301.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_3301)

//======================================================================
//
//	_3301, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1404 = 1916
//
//	Time-stamp: 2014-11-28, 05:20:00
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _3301Tiles[351] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x33330900,0x3B858A33,0x0720883B,0x103B4B8A,0x4B090905,0x16102064,0x853B0700,
	0x856D1730,0x4B0800A0,0x85850720,0x20204B4B,0x0800331F,0x1F6D7314,0x4B14006D,0xD8D82273,
	0x6D006D55,0x55A23B73,0x016DC3C3,0x16813B6D,0x103A3AC3,0xD8C30007,0x3B1F3AC3,0x3A488173,
	0x14200F10,0x4B140730,0x1F6D003B,0x4B4A2083,0x74004BD5,0x6D74BFD5,0x004A823B,0x9229F734,
	0x82826D4A,0x29343400,0x666D1F27,0x202B401F,0x2B1F1F07,0x2027802B,0x0F102020,0x74749280,
	0x66200071,0xBFF6292B,0x2F007474,0xBACED2D2,0x00BF7474,0x5BD22F2F,0xE9F8941E,0x8C696900,
	0x773EAD2C,0x17B92869,0x00430710,0xAD7CB907,0x17DB9402,0x0047B9B9,0x00804307,0x7C7CEB07,
	0xA317B1A0,0x70B91700,0xCD8F4370,0x061700B9,0x8F8F5DA3,0xB9002C24,0xD15D0606,0x00248446,

	0xDDC221B0,0x8499EF89,0x48F98800,0x59C489C2,0xCF77205C,0xB1ED0730,0x007CC221,0xA0585759,
	0x5CF221DB,0x64573700,0x2121B15C,0x64AA0070,0xF8773E57,0x5C00A0F8,0x32645759,0x008AB188,
	0x7373854B,0x0916164A,0x3B0700A0,0x4B1D0700,0x043B3B14,0x1DC3C34A,0x760E104B,0x018A4176,
	0xD8C34A24,0x2C014BD8,0x76228100,0x73738AC3,0x16810281,0x4B8A163A,0x0B4A0720,0x14D5146D,
	0x01BF0701,0x02071047,0x4B141F74,0x0F00D54B,0x4B20004A,0x741474D5,0x140016BF,0x3B148A8A,
示例#22
0
void UmlOperation::gen_cpp_decl(Q3CString s, bool descr)
{
    const char * p = bypass_comment(s);

    if (! descr) {
        write((cppVisibility() == DefaultVisibility)
              ? visibility() : cppVisibility(),
              cppLanguage);
        fw.write(": ");
        p = bypass_comment(s);
    }
    else
        p = s;

    const Q3ValueList<UmlParameter> & pa = params();
    unsigned npa = pa.count();
    unsigned rank;

    while (*p) {
        if (!strncmp(p, "${comment}", 10))
            p += 10;
        else if (!strncmp(p, "${description}", 14))
            p += 14;
        else if (!strncmp(p, "${friend}", 9)) {
            p += 9;

            if (isCppFriend())
                fw.write("friend ");
        }
        else if (!strncmp(p, "${static}", 9)) {
            p += 9;

            if (isClassMember())
                fw.write("static ");
        }
        else if (!strncmp(p, "${inline}", 9)) {
            p += 9;

            if (isCppInline())
                fw.write("inline ");
        }
        else if (!strncmp(p, "${virtual}", 10)) {
            p += 10;

            if (isCppVirtual())
                fw.write("virtual ");
        }
        else if (!strncmp(p, "${type}", 7)) {
            p += 7;
            write(returnType(), cppLanguage);
        }
        else if (!strncmp(p, "${name}", 7)) {
            p += 7;
            writeq(compute_name(cppNameSpec()));
        }
        else if (!strncmp(p, "${(}", 4)) {
            p += 4;
            fw.write('(');
        }
        else if (!strncmp(p, "${)}", 4)) {
            p += 4;
            fw.write(')');
        }
        else if (!strncmp(p, "${const}", 8)) {
            p += 8;

            if (isCppConst())
                fw.write(" const");
        }
        else if (!strncmp(p, "${volatile}", 11)) {
            p += 11;

            if (isVolatile())
                fw.write(" volatile");
        }
        else if (!strncmp(p, "${throw}", 8)) {
            p += 8;

            const char * sep = " throw (";
            Q3ValueList<UmlTypeSpec> e = exceptions();
            unsigned n = e.count();
            unsigned index2;

            for (index2 = 0; index2 != n; index2 += 1) {
                fw.write(sep);
                sep = ", ";
                write(e[index2], cppLanguage);
            }

            if (index2 != 0)
                fw.write(')');
            else if (CppSettings::operationForceThrow())
                fw.write(" throw ()");
        }
        else if (sscanf(p, "${t%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank < npa)
                write(pa[rank].type, cppLanguage);
            else
                fw.write("???");
        }
        else if (sscanf(p, "${p%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank < pa.count())
                writeq(pa[rank].name);
            else
                fw.write("???");
        }
        else if (sscanf(p, "${v%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank >= pa.count())
                fw.write("???");
            else if (! pa[rank].default_value.isEmpty()) {
                fw.write(" = ");
                writeq(pa[rank].default_value);
            }
        }
        else if (!strncmp(p, "${abstract}", 11)) {
            if (isAbstract())
                fw.write("= 0 ");

            break;
        }
        else if (!strncmp(p, "${stereotype}", 13)) {
            p += 13;
            // get/set relation with multiplicity > 1
            UmlClassMember * m = getOf();

            if ((m != 0) || ((m = setOf()) != 0))
                writeq(CppSettings::relationAttributeStereotype(m->stereotype()));
        }
        else if (!strncmp(p, "${association}", 14)) {
            p += 14;
            // get/set relation with multiplicity > 1
            UmlClassMember * m = getOf();

            if (((m != 0) || ((m = setOf()) != 0)) &&
                (m->kind() == aRelation))
                write(((UmlRelation *) m)->association(), cppLanguage);
        }
        else if (*p == '\r')
            p += 1;
        else if (*p == '\n') {
            if (descr) {
                fw.write("<br />");
                p += 1;
            }
            else {
                fw.write(' ');

                do
                    p += 1;

                while ((*p != 0) && (*p <= ' '));
            }
        }
        else if ((*p == '{') || (*p == ';')) {
            if (descr)
                fw.write(*p++);
            else
                break;
        }
        else if (*p == '@')
            manage_alias(p);
        else
            writeq(*p++);
    }
}
示例#23
0
文件: 05356.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_5356)

//======================================================================
//
//	_5356, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1464 = 1976
//
//	Time-stamp: 2014-11-28, 05:20:16
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _5356Tiles[366] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x8E20F000,0xC2C25A86,0xF08D045A,0x00977B20,0x001B6907,0xACAC6A5B,0x54C35A3F,
	0x506A4C00,0x395A3F53,0x3B3B00D3,0xE7E7927A,0xF210272F,0x07009239,0x12124693,0x4165AB00,
	0xE5939341,0x000A49E5,0x105A5A07,0x60979701,0x0A209407,0x07405397,0x5A012097,0x1F40804E,
	0x2B2BDBDB,0x04BE4141,0x56DBDBBE,0xBE011056,0x534E00BE,0x7F08F376,0x9700FF2A,0xCE7FFCDB,
	0x08957108,0x0E1E7697,0xF7640720,0x0808010E,0xBE4EF071,0x00072008,0x31F764DB,0x95437F08,
	0x16DEF300,0x7B404071,0x76960049,0xEF402A7C,0x20003486,0x8EA7A720,0x81F5347B,0x1BA70710,
	0x5F20AE86,0xF5400700,0xA75F1700,0x7B895F89,0xC9BC7B00,0x30890202,0x70820082,0xBC303070,
	0x8200825B,0xA2A22525,0x00CB2525,0x17C6C66F,0x6FC6ADC6,0xAB866F00,0x5656BE2B,0x71990899,

	0x0710BE65,0x007AAE80,0x80A34741,0x7A8E9BFE,0x41475600,0x4F9BFEA3,0xD0D0007A,0xE9E99B9B,
	0xD00092F0,0x3CBDE980,0x4092FF3C,0xD0074087,0x3CE942D0,0x6666103C,0x990711FB,0x00A56666,
	0x99ABB0EA,0x12EAEAA3,0x1D6C4800,0x48488080,0x0C070048,0xAA9B800C,0x3900F2F9,0x9B9BF398,
	0x0039AAB3,0x9BF34E3E,0x141414E9,0x76DB1400,0x14D35D5D,0xDB880488,0x31CC5DC1,0x08646407,
	0x47475656,0x47470710,0x2C800080,0x2C64642C,0x8001802C,0x5151C5C5,0x0710C584,0x84D6EC00,
示例#24
0
void UmlOperation::gen_java_decl(Q3CString s, bool descr)
{
    const char * p = bypass_comment(s);
    const Q3ValueList<UmlParameter> & pa = params();
    unsigned npa = pa.count();
    unsigned rank;

    while (*p) {
        if (!strncmp(p, "${comment}", 10))
            p += 10;
        else if (!strncmp(p, "${description}", 14))
            p += 14;
        else if (!strncmp(p, "${final}", 8)) {
            p += 8;

            if (isJavaFinal())
                fw.write("final ");
        }
        else if (!strncmp(p, "${visibility}", 13)) {
            p += 13;
            UmlItem::write(visibility(), javaLanguage);
            fw.write(' ');
        }
        else if (!strncmp(p, "${static}", 9)) {
            p += 9;

            if (isClassMember())
                fw.write("static ");
        }
        else if (!strncmp(p, "${abstract}", 11)) {
            p += 11;

            if (isAbstract())
                fw.write("abstract ");
        }
        else if (!strncmp(p, "${synchronized}", 15)) {
            p += 15;

            if (isJavaSynchronized())
                fw.write("synchronized ");
        }
        else if (!strncmp(p, "${type}", 7)) {
            p += 7;
            write(returnType(), javaLanguage);
        }
        else if (!strncmp(p, "${name}", 7)) {
            p += 7;
            writeq(compute_name(javaNameSpec()));
        }
        else if (!strncmp(p, "${(}", 4)) {
            p += 4;
            fw.write('(');
        }
        else if (!strncmp(p, "${)}", 4)) {
            p += 4;
            fw.write(')');
        }
        else if (!strncmp(p, "${throws}", 9)) {
            p += 9;

            const char * sep = " throws ";
            const Q3ValueList<UmlTypeSpec> e = exceptions();
            unsigned n = e.count();

            for (unsigned index2 = 0; index2 != n; index2 += 1) {
                fw.write(sep);
                sep = ", ";
                write(e[index2], javaLanguage);
            }
        }
        else if (!strncmp(p, "${staticnl}", 11))
            break;
        else if (sscanf(p, "${t%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank < npa)
                write(pa[rank].type, javaLanguage);
            else
                fw.write("???");
        }
        else if (sscanf(p, "${p%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank < npa)
                writeq(pa[rank].name);
            else
                fw.write("???");
        }
        else if (!strncmp(p, "${stereotype}", 13)) {
            p += 13;
            // get/set relation with multiplicity > 1
            UmlClassMember * m = getOf();

            if ((m != 0) || ((m = setOf()) != 0))
                writeq(JavaSettings::relationAttributeStereotype(m->stereotype()));
        }
        else if (!strncmp(p, "${association}", 14)) {
            p += 14;
            // get/set relation with multiplicity > 1
            UmlClassMember * m = getOf();

            if (((m != 0) || ((m = setOf()) != 0)) &&
                (m->kind() == aRelation))
                write(((UmlRelation *) m)->association(), javaLanguage);
        }
        else if (!strncmp(p, "${@}", 4))
            p += 4;
        else if (*p == '\r')
            p += 1;
        else if (*p == '\n') {
            if (descr) {
                fw.write("<br />");
                p += 1;
            }
            else {
                fw.write(' ');

                do
                    p += 1;

                while ((*p != 0) && (*p <= ' '));
            }
        }
        else if ((*p == '{') || (*p == ';')) {
            if (descr)
                fw.write(*p++);
            else
                break;
        }
        else if (*p == '@')
            manage_alias(p);
        else
            writeq(*p++);
    }
}
示例#25
0
文件: 00430.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_0430)

//======================================================================
//
//	_0430, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1508 = 2020
//
//	Time-stamp: 2014-11-28, 05:19:38
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _0430Tiles[377] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x0A345A00,0xF70A0A0A,0x34D00823,0x08102067,0x000A4E4E,0x230A0A5F,0xFE747431,
	0x675F0A02,0x006E50D0,0xB8005F06,0x0A0A6FC0,0x00B8B85F,0x0A875762,0xC03C670A,0x876FD200,
	0x8686800A,0x6F5700C0,0x2846C387,0x8500855C,0xB6588585,0x82BDBD28,0xC7310800,0x0085288D,
	0x50004608,0xC9C24650,0x008D8585,0x4931B5A5,0x6D8528C9,0x31306D00,0xE3C266E9,0x87C90066,
	0x5CBDD36A,0x9500A353,0xC9D3B550,0x00BD5C5C,0x4093E385,0x85797979,0x5C5C8501,0xABAB8F49,
	0x53000600,0x9D9D0E82,0x005C85BD,0x0E0EADE3,0x935C8579,0x15DB8500,0x53E30E79,0xDB930053,
	0xDB8F4F5E,0xA100A1DB,0x15BA5E18,0x00A19393,0x8F8CBAD9,0x72F94ABA,0xF9F97200,0x51F9CA6B,
	0x0F72000F,0x51298EB2,0x72405171,0xB9B20800,0x2FB271B2,0xBB9E7200,0xB2F98E0E,0x9E9E00B2,

	0x9C0E9CBB,0x710072CA,0xB90ECE9E,0x048E0E6B,0xDC257272,0x6C24008F,0x722500B2,0xBBBB9ECE,
	0x2110BBBB,0x2400BBB2,0x56217DBB,0xCEBB5600,0x7DCE2F83,0x0700887D,0x108302E4,0x2972BB1B,
	0x9EBB6C04,0x1800CECE,0x9E00BBCE,0xB2CE8383,0x80832F2F,0xCE9E1000,0xB729A88E,0xD2D20080,
	0x31D28686,0x3C020AB7,0x23868686,0x23351186,0x0A802312,0x67673611,0x00740700,0x5F5F5F4B,
	0x74746780,0x000600E2,0x4E0E2011,0x15108BB8,0x8B4E005F,0xB6A3875A,0xC900A3B5,0x8D30E393,
示例#26
0
void UmlOperation::gen_php_decl(Q3CString s, bool descr)
{
    Q3CString cl_stereotype =
        PhpSettings::classStereotype(parent()->stereotype());
    const char * p = bypass_comment(s);
    const Q3ValueList<UmlParameter> & pa = params();
    unsigned npa = pa.count();
    unsigned rank;

    while (*p) {
        if (!strncmp(p, "${comment}", 10))
            p += 10;
        else if (!strncmp(p, "${description}", 14))
            p += 14;
        else if (!strncmp(p, "${final}", 8)) {
            p += 8;

            if (isPhpFinal())
                fw.write("final ");
        }
        else if (!strncmp(p, "${visibility}", 13)) {
            p += 13;
            UmlItem::write(visibility(), phpLanguage);
            fw.write(' ');
        }
        else if (!strncmp(p, "${static}", 9)) {
            p += 9;

            if (isClassMember())
                fw.write("static ");
        }
        else if (!strncmp(p, "${abstract}", 11)) {
            p += 11;

            if (isAbstract() && (cl_stereotype != "interface"))
                fw.write("abstract ");
        }
        else if (!strncmp(p, "${name}", 7)) {
            p += 7;
            writeq(compute_name(phpNameSpec()));
        }
        else if (!strncmp(p, "${(}", 4)) {
            p += 4;
            fw.write('(');
        }
        else if (!strncmp(p, "${)}", 4)) {
            p += 4;
            fw.write(')');
        }
        else if (!strncmp(p, "${staticnl}", 11))
            break;
        else if (sscanf(p, "${t%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank < npa)
                write(pa[rank].type, phpLanguage);
            else
                fw.write("???");
        }
        else if (sscanf(p, "${p%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank < npa) {
                fw.write('$');
                writeq(pa[rank].name);
            }
            else
                fw.write("???");
        }
        else if (sscanf(p, "${v%u}", &rank) == 1) {
            p = strchr(p, '}') + 1;

            if (rank >= npa)
                fw.write("???");
            else if (! pa[rank].default_value.isEmpty()) {
                fw.write(" = ");
                writeq(pa[rank].default_value);
            }
        }
        else if (*p == '\r')
            p += 1;
        else if (*p == '\n') {
            if (descr) {
                fw.write("<br />");
                p += 1;
            }
            else {
                fw.write(' ');

                do
                    p += 1;

                while ((*p != 0) && (*p <= ' '));
            }
        }
        else if ((*p == '{') || (*p == ';')) {
            if (descr)
                fw.write(*p++);
            else
                break;
        }
        else if (*p == '@')
            manage_alias(p);
        else
            writeq(*p++);
    }
}
示例#27
0
文件: 02897.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_2897)

//======================================================================
//
//	_2897, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1600 = 2112
//
//	Time-stamp: 2014-11-28, 05:19:57
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _2897Tiles[400] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0xDB0FEF00,0x3015A0DD,0x56CA0036,0x0CEF2020,0x35007BA0,0xFB89E556,0x0089EF35,
	0x20DDAD35,0xCB30DEFB,0xDD0CE010,0xCB300F00,0xDD006407,0x9F2BD520,0x00BD0F89,0x8703309F,
	0xA556306E,0x6ECAF200,0x309E9BDE,0xEA360036,0xD06389CB,0x7B00CB11,0x63207B9E,0x0020DB2F,
	0x2036637B,0xCB8FD5A2,0x36857B00,0x8F2FA289,0x0FCB00CB,0x2FA2E57B,0x36000711,0xA220070F,
	0x009E0F2F,0x9FE28103,0x6ECA5635,0xCA1C6400,0xD5C86BCA,0x774C0067,0x44C397F6,0x7F009977,
	0x264FEC4F,0x00D7D044,0x53EC4F77,0xD7D0A280,0xF41B1B00,0xD08B8BEC,0x331B0024,0x9C8B4949,
	0x97004D2F,0x6797496F,0x00DE448B,0x4FA84D24,0xAE55998B,0x263D3D00,0x7A352B1B,0x94B900F1,
	0x3514AD0C,0xE000B999,0xB0359896,0x009799DE,0xAD988511,0xEC262BCC,0x9485A000,0xC3AA6B35,

	0x857E0044,0xAAC635CA,0x7E00A28B,0x6B351599,0x00A28BC7,0xA4AA9A63,0x262B5575,0x2B2B2600,
	0x15F731C8,0xB1B1000C,0x22A614AA,0xAD009A0C,0x1CB022AD,0x000C1522,0x14AD9A9A,0xCACAADA6,
	0x9A0C0C00,0x96B1C7C6,0x090088CA,0x000C22C6,0x34AD0C0E,0x35ADA600,0x3CAADE35,0x3CC800AE,
	0xA4A4DE35,0x7900752B,0x9BA56455,0x0014BD6E,0xB4AB810C,0xA1C61CC6,0x1981AD00,0xC7BDC6BD,
	0x6E9B001C,0x81BDBDCA,0x540014C7,0xC7F7AA4A,0x00EDC764,0xC8ADC614,0x28C70F0C,0xC81CC600,
示例#28
0
文件: 01707.c 项目: GovanifY/GBA-Rick
//{{BLOCK(_1707)

//======================================================================
//
//	_1707, [email protected], 
//	+ palette 256 entries, not compressed
//	+ 25 tiles lz77 compressed
//	Total size: 512 + 1384 = 1896
//
//	Time-stamp: 2014-11-28, 05:19:48
//	Exported by Cearn's GBA Image Transmogrifier, v0.8.12
//	( http://www.coranac.com/projects/#grit )
//
//======================================================================

const unsigned int _1707Tiles[346] __attribute__((aligned(4))) __attribute__((visibility("hidden")))=
{
	0x00064010,0x0FCDFA00,0x3F363FC0,0x717100CD,0x893F0F69,0xE600C73F,0xC1C4C4C4,0x00C0C056,
	0xD8487490,0xC7C7CDC4,0xD8D8C400,0x69E6747B,0x4878000F,0x55744874,0x71006955,0xBBBB5555,
	0x000FE655,0xC73F3E3E,0xC00F56C0,0x5A83CD00,0xC75A3F5A,0x833F08C7,0x07103F5A,0x633F83C7,
	0x2001003F,0x68686806,0x06100300,0xC7683E08,0x890D00C7,0x10863E89,0x93893E07,0x101C1093,
	0x00848308,0x3E3E681B,0x6807403E,0x1720E083,0x07400800,0x9393933E,0x681F0068,0x68419368,
	0x00801F93,0x35C76807,0xCA523A3A,0x4168CA02,0x00CC3A35,0x3E2D6808,0x3E251036,0x07702B20,
	0x9D52009D,0x363E1830,0x28300740,0x10368B00,0x07108032,0x50503689,0x04256E6E,0xF2D4410B,
	0x95072038,0x9DF20026,0x47DD250B,0xA3003141,0xDD25259D,0x00E39393,0xDDDD3E31,0xEA833EDD,

	0x06008660,0x71860700,0x025050DD,0x86C5DDDD,0x07105071,0x56560847,0x01000303,0x02898994,
	0x941A1A1A,0xB230361A,0x3F9D013E,0x9D3E363F,0xE084109D,0x08200D11,0x363E0D20,0x01F9B2B2,
	0x9494F9F9,0x10C0C094,0xCDCD0801,0xDC008989,0x0089683E,0x1F1F6868,0x8989893E,0x3E0F0182,
	0x5454893E,0x723EF910,0x0007103E,0x36070006,0x891C0036,0x00545930,0x596D003A,0x00CDCD54,
	0xA4FAFACD,0xCA59DBA4,0xEB858500,0x5959BEA7,0xC2040010,0xCABC17F8,0x45008510,0xC35D8CFE,
示例#29
0
文件: fptr.c 项目: austinsc/GCCXML
#define SIGN_EXTEND(VAL,BITS) \
  ((int) ((VAL) >> ((BITS) - 1) ? (-1 << (BITS)) | (VAL) : (VAL)))

struct link_map;
typedef int (*fptr_t) (void);
typedef int (*fixup_t) (struct link_map *, unsigned int);
extern unsigned int _GLOBAL_OFFSET_TABLE_;

/* __canonicalize_funcptr_for_compare must be hidden so that it is not
   placed in the dynamic symbol table.  Like millicode functions, it
   must be linked into all binaries in order access the got table of 
   that binary.  However, we don't use the millicode calling convention
   and the routine must be a normal function so that it can be compiled
   as pic code.  */
unsigned int __canonicalize_funcptr_for_compare (fptr_t)
      __attribute__ ((visibility ("hidden")));

unsigned int
__canonicalize_funcptr_for_compare (fptr_t fptr)
{
  static unsigned int fixup_plabel[2];
  static fixup_t fixup;
  unsigned int *plabel, *got;

  /* -1 and page 0 are special.  -1 is used in crtend to mark the end of
     a list of function pointers.  Also return immediately if the plabel
     bit is not set in the function pointer.  In this case, the function
     pointer points directly to the function.  */
  if ((int) fptr == -1 || (unsigned int) fptr < 4096 || !((int) fptr & 2))
    return (unsigned int) fptr;
示例#30
0
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation;
 * version 2.1 of the License.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 */

/* Test compiler support for weak symbols with hidden visibility. */
int __tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));
void *__tracepoint_test_symbol2 __attribute__((weak, visibility("hidden")));
struct {
	char a[24];
} __tracepoint_test_symbol3 __attribute__((weak, visibility("hidden")));

__attribute__((visibility("hidden")))
void *lttng_ust_tp_check_weak_hidden1(void)
{
	return &__tracepoint_test_symbol1;
}

__attribute__((visibility("hidden")))
void *lttng_ust_tp_check_weak_hidden2(void)
{
	return &__tracepoint_test_symbol2;