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
int a; |
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
echo inc.sh: | |
if [ "${#BASH_SOURCE[@]}" -le 1 ];then | |
echo I am the main script file. | |
else | |
echo I am being called from another file. | |
fi | |
func1() | |
{ | |
echo env on func1 called from $1: | |
set |
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: src/lib/platform/COSXKeyState.cpp | |
=================================================================== | |
--- src/lib/platform/COSXKeyState.cpp (revision 1471) | |
+++ src/lib/platform/COSXKeyState.cpp (working copy) | |
@@ -243,6 +243,35 @@ | |
} | |
KeyModifierMask | |
+COSXKeyState::mapModifiersFromCarbon(UInt32 mask) const | |
+{ |
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
From 24b77f1f639727cb02cd0ef5b594aec94daeebfc Mon Sep 17 00:00:00 2001 | |
From: Eduardo Habkost <ehabkost@raisama.net> | |
Date: Tue, 19 Jun 2012 19:46:52 -0300 | |
Subject: [PATCH 1/3] remove NX_NUMPROCS case | |
1) NX_NUMPROCS isn't supposed to be an event number, but just the number of | |
events from NX_FIRSTEVENT to NX_LASTEVENT | |
2) NX_NUMPROCS is > NX_LASTEVENT, so the "default:" branch already | |
handles it (and shows a warning) |
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
From a88cd3fb96e8c53853e65f58a7ef6105cda70341 Mon Sep 17 00:00:00 2001 | |
From: Eduardo Habkost <ehabkost@raisama.net> | |
Date: Sat, 23 Jun 2012 15:20:42 -0300 | |
Subject: [PATCH] extra debug messages to debug dead key handing on OS X | |
Signed-off-by: Eduardo Habkost <ehabkost@raisama.net> | |
--- | |
src/lib/platform/COSXKeyState.cpp | 9 +++++++++ | |
1 files changed, 9 insertions(+), 0 deletions(-) |
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
#!/bin/bash | |
pname="$(basename $0)" | |
function usage() | |
{ | |
echo "Usage: $pname [OPTIONS] PATTERN [FILES and/or GREP_OPTIONS...] | |
Colorize all matches for PATTERN, an extended regular expression. | |
Non-matching lines are still printed. |
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
#!/usr/bin/env python | |
import re | |
feature_names = { | |
'': [ | |
"fpu", "vme", "de", "pse", | |
"tsc", "msr", "pae", "mce", | |
"cx8", "apic", None, "sep", | |
"mtrr", "pge", "mca", "cmov", | |
"pat", "pse36", "pn", "clflush", |
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
typedef struct BDRVReopenState { | |
BlockDriverState *bs; | |
int flags; | |
void *opaque; | |
} BDRVReopenState; | |
void bdrv_iostatus_enable(BlockDriverState *bs); | |
void bdrv_iostatus_reset(BlockDriverState *bs); | |
void bdrv_iostatus_disable(BlockDriverState *bs); |
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
# usage: sed -i -f cpu-feature-array.sed $(git grep -E -l -- '->cpuid_|CPUX86State') | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*ext_features\([^\[]\|$\)/\1features[FEAT_1_ECX]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*ext2_features\([^\[]\|$\)/\1features[FEAT_8000_0001_EDX]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*ext3_features\([^\[]\|$\)/\1features[FEAT_8000_0001_ECX]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*ext4_features\([^\[]\|$\)/\1features[FEAT_C000_0001_EDX]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*kvm_features\([^\[]\|$\)/\1features[FEAT_KVM]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*svm_features\([^\[]\|$\)/\1features[FEAT_SVM]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*7_0_ebx_features\([^\[]\|$\)/\1features[FEAT_7_0_EBX]\3/g | |
s/\(env->\|env\.\|cpu->\|def->\|def\.\|^ *\.\)\(cpuid_\)*features\([^\[]\|$\)/\1features[FEAT_1_EDX]\3/g |
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
Searching 6027 files for "^( +)[^ \n][^\n][^\n][^\n][^\n][^\n][^\n][^(\n][^(\n][^(\n][^\n]*= *\n\1 [^ ]" (regex) | |
qemu/block.c: | |
3762 static void bdrv_aio_cancel_em(BlockDriverAIOCB *blockacb) | |
3763 { | |
3764: BlockDriverAIOCBSync *acb = | |
3765: container_of(blockacb, BlockDriverAIOCBSync, common); | |
3766 qemu_bh_delete(acb->bh); | |
3767 acb->bh = NULL; | |
.... |