This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alistairlynn$ clang -pipe -### -emit-llvm -c moof.c | |
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 68401) | |
Target: powerpc-apple-darwin9 | |
clang: warning: not using the clang compiler for the 'ppc' architecture | |
"/usr/bin/gcc" "-pipe" "-emit-llvm" "-S" "-arch" "ppc" "-o" "moof.o" "-x" "c" "moof.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <objc/objc.h> | |
#import <dlfcn.h> | |
const char *class_getImageName(Class cls) | |
{ | |
int ok; | |
Dl_info info; | |
if (!cls) return NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function apply_transform ( $source, $transform, $params ) | |
{ | |
$tokens = token_get_all($source); | |
$newContent = ''; | |
foreach ($tokens as $token) | |
{ | |
$newTok = $transform($token, $params); | |
if (is_string($newTok)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cb ( $matches ) | |
{ | |
return ''; | |
} | |
function rep ( $str ) | |
{ | |
return preg_replace_callback('/ /', 'cb', $str); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Draws a star-field that covers the whole screen | |
* @param depth The depth of the star-field, for parallax | |
*/ | |
void DrawStarfield ( float depth ); | |
/** | |
* Sets the 3D ambient lighting environment | |
* @param col The colour of the ambient light | |
* @param angle The angle of the ambient light, in radians | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RPC error: Exception: exception 'xenos_exception' in /Library/WebServer/Documents/xenos/include/db_if/db_battle_if.php:193 | |
Stack trace: | |
#0 /Library/WebServer/Documents/xenos/include/game_if/game_battle_if.php(141): db_battle_if->get_participants(false) | |
#1 /Library/WebServer/Documents/xenos/include/game_if/game_battle_if.php(236): game_battle_if->get_participants(false) | |
#2 /Library/WebServer/Documents/xenos/actions/load_battle.php(7): game_battle_if->get_state(false) | |
#3 /Library/WebServer/Documents/xenos/actions/load_battle.php(35): get_battle_info() | |
#4 /Library/WebServer/Documents/xenos/rpcs/invoke_action.php(21): action_load_battle(NULL) | |
#5 [internal function]: invoke_action('load_battle', NULL) | |
#6 /Library/WebServer/Documents/xenos/include/user_if/xrpc_server.php(69): call_user_func_array('invoke_action', Array) | |
#7 /Library/WebServer/Documents/xenos/rpc.php(89): xrpc_server->handle('["invoke_action...') |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imladris:jitter alynn$ clang -Wall jitter.c -o jitter `llvm-config --cflags --libs --ldflags all` | |
Undefined symbols: | |
"__ZNSs4_Rep10_M_destroyERKSaIcE", referenced from: | |
___tcf_0 in LLVMXCore.o | |
__ZN48_GLOBAL__N_XCoreAsmPrinter.cpp_00000000_385AD08815XCoreAsmPrinter10emitGlobalEPKN4llvm14GlobalVariableE in LLVMXCore.o | |
__ZN48_GLOBAL__N_XCoreAsmPrinter.cpp_00000000_385AD08815XCoreAsmPrinter12printOperandEPKN4llvm12MachineInstrEi in LLVMXCore.o | |
__ZN4llvm19XCoreTargetLowering21LowerGlobalTLSAddressENS_7SDValueERNS_12SelectionDAGE in LLVMXCore.o | |
__ZNK4llvm17XCoreRegisterInfo19eliminateFrameIndexENS_14ilist_iteratorINS_12MachineInstrEEEiPNS_12RegScavengerE in LLVMXCore.o | |
__ZN4llvm14XCoreSubtarget22ParseSubtargetFeaturesERKSsS2_ in LLVMXCore.o | |
__ZN4llvm14XCoreSubtargetC2ERKNS_13TargetMachineERKNS_6ModuleERKSs in LLVMXCore.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple Mastermind Game | |
// Copyright (c) Alistair Lynn <[email protected]>, 2008 | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <stdio.h> | |
// a single playing piece | |
typedef char MM_Piece; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ScanLine ( char* pointer, unsigned long maxlen ) | |
{ | |
#ifdef USE_FGETS | |
fgets(pointer, maxlen, stdin); | |
CleanString(pointer, pointer); | |
#else | |
char ch; | |
unsigned long len = 0; | |
maxlen--; // adjust for space so we can fit a \n in there | |
while (scanf("%c", &ch) && ch != '\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: data/stdshader.cfg | |
=================================================================== | |
--- data/stdshader.cfg (revision 1913) | |
+++ data/stdshader.cfg (working copy) | |
@@ -1538,6 +1538,36 @@ | |
lazyshader 0 "gbr" [ @fsvs END ] [ @fsps MOV result.color, sample.yzxw; END ] | |
lazyshader 0 "bw" [ @fsvs END ] [ @fsps DP3 result.color, sample, 0.333; END ] | |
+lazyshader 4 "desaturate" [ varying vec2 TX; | |
+ |
OlderNewer