Skip to content

Instantly share code, notes, and snippets.

typedef struct
{
NSString *pstrName;
} sSampleStruct;
sSampleStruct sObject = {@"test"};
NSMutableDictionary *pSampleMap = [[NSMutableDictionary alloc] init];
[pSampleMap setObject:[NSValue valueWithPointer:&sObject]
forKey:[NSNumber numberWithInt:nVar]];
@bluemoon
bluemoon / gist:2652360
Created May 10, 2012 10:39
RPython + ObjC runtime
import sys, pdb, traceback
import os
import autopath
from pypy.rpython.lltypesystem import lltype, rffi
from pypy.rlib.rmmap import alloc, free
from pypy.translator.tool.cbuild import ExternalCompilationInfo
from pypy.translator.c.test.test_genc import compile as compile_c
from pypy.rpython.lltypesystem.rffi import *
from pypy.rpython.lltypesystem.llmemory import *
/vagrant_files/mg_xmpp_platform/apps/journal/lib/journal.ex:1: redefining module Journal
/vagrant_files/mg_xmpp_platform/apps/journal/lib/server.ex:1: redefining module Journal.Server
==> journal
Compiled lib/journal.ex
/vagrant_files/mg_xmpp_platform/apps/journal/lib/server.ex:6: redefining module Journal.Server.State
/vagrant_files/mg_xmpp_platform/apps/journal/lib/supervisor.ex:1: redefining module Journal.Supervisor
Compiled lib/supervisor.ex
Compiled lib/server.ex
Generated journal.app

Keybase proof

I hereby claim:

  • I am bluemoon on github.
  • I am bradford (https://keybase.io/bradford) on keybase.
  • I have a public key whose fingerprint is D884 9455 9E6E C466 9B93 82F8 0471 F74A 4745 9564

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bluemoon on github.
  • I am bradford (https://keybase.io/bradford) on keybase.
  • I have a public key whose fingerprint is 6AD5 F891 0284 8CC9 5CCB BD3A FB0A 95E3 477F 25ED

To claim this, I am signing this object: