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
#include "bitboard.h" | |
#include <ctype.h> | |
#include <inttypes.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "bitscan.h" |
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
diff --git a/hphp/hack/src/utils/errors.ml b/hphp/hack/src/utils/errors.ml | |
index 269a36d..cb0c717 100644 | |
--- a/hphp/hack/src/utils/errors.ml | |
+++ b/hphp/hack/src/utils/errors.ml | |
@@ -28,6 +28,42 @@ type t = error list | |
let (is_hh_fixme: (Pos.t -> error_code -> bool) ref) = ref (fun _ _ -> false) | |
+let to_absolute (code, msg_l) = | |
+ let msg_l = List.map (fun (p, s) -> Pos.to_absolute p, s) msg_l in |
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 | |
set -e | |
set -x | |
cd `mktemp -d /tmp/ocamlbuild.XXXXXX` | |
mkdir a | |
mkdir b | |
cat > main.ml <<EOF |
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
h GATEWAY_INTERFACEFastCGI/1.0REQUEST_METHODGET | |
SCRIPT_FILENAME/sleep.php | |
SCRIPT_NAME/sleep.php QUERY_STRING | |
REQUEST_URI/sleep.php | |
DOCUMENT_URI/sleep.phpSERVER_SOFTWAREphp/fcgiclient REMOTE_ADDR127.0.0.1REMOTE_PORT9985 SERVER_ADDR127.0.0.1SERVER_PORT80SERVER_NAMEvagrant-ubuntu-trusty-64SERVER_PROTOCOLHTTP/1.1 CONTENT_TYPECONTENT_LENGTH0 h GATEWAY_INTERFACEFastCGI/1.0REQUEST_METHODGET | |
SCRIPT_FILENAME/sleep.php | |
SCRIPT_NAME/sleep.php QUERY_STRING | |
REQUEST_URI/sleep.php | |
DOCUMENT_URI/sleep.phpSERVER_SOFTWAREphp/fcgiclient REMOTE_ADDR127.0.0.1REMOTE_PORT9985 SERVER_ADDR127.0.0.1SERVER_PORT80SERVER_NAMEvagrant-ubuntu-trusty-64SERVER_PROTOCOLHTTP/1.1 CONTENT_TYPECONTENT_LENGTH0 h GATEWAY_INTERFACEFastCGI/1.0REQUEST_METHODGET | |
SCRIPT_FILENAME/sleep.php |
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
--regex-PHP='/^const +([a-zA-Z0-9_]+) +=/\1/d,constant definitions/' \ | |
--regex-PHP='/^ *(abstract +|final +)*class +([a-zA-Z0-9_]+)/\2/c,class/' \ | |
--regex-PHP='/^ *(abstract +|final +)*class :([a-zA-Z0-9:_\\-]+)/\2/c,class/' \ | |
--regex-PHP='/^ *(abstract +|final +)*class :([a-zA-Z0-9:_\\-]+)/:\2/c,class/' \ | |
--regex-PHP='/^ *(interface|trait|type) +([a-zA-Z0-9_]+)/\2/c,class/' \ | |
--regex-PHP='/^ *(public +|static +|abstract +|protected +|private +|final +)+function +&? *([a-zA-Z0-9_]+)/\2/f,function/' \ |
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
<?hh // strict | |
type t = shape( | |
'x' => ?(function(int):int) | |
); | |
function f(t $t): int { | |
$func = $t['x']; | |
if (!is_null($func)) { | |
return $func(1); |
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/local/bin/python | |
def p(passnum, num): | |
return "$p%d_%d" % (passnum, num) | |
print """<?php | |
function f(&$x, &$y, $z) { | |
$x += $z; |
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
[01:01P][jwatzman@jwatzman-mba:/tmp] $ cat foo.cpp | |
extern "C" void configure_link_extern_weak_test() __attribute__((weak)); | |
int main(int argc, char** argv) { | |
return configure_link_extern_weak_test == nullptr; | |
} | |
[01:01P][jwatzman@jwatzman-mba:/tmp] $ g++-4.8 foo.cpp | |
foo.cpp: In function 'int main(int, char**)': | |
foo.cpp:3:44: error: 'nullptr' was not declared in this scope | |
return configure_link_extern_weak_test == nullptr; | |
^ |
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
==> Downloading https://github.com/facebook/hhvm/archive/5965dc9cac159bbd272e19d0a0da65fc83c16f5d.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/hhvm-3.2.1b.tar.gz | |
==> Verifying hhvm-3.2.1b.tar.gz checksum | |
tar xf /Library/Caches/Homebrew/hhvm-3.2.1b.tar.gz | |
==> Patching | |
patching file hphp/runtime/base/emulate-zend.cpp | |
patching file hphp/runtime/base/program-functions.cpp | |
Hunk #1 succeeded at 1158 (offset 8 lines). | |
==> Downloading https://github.com/hhvm/hhvm-third-party/archive/937bd76f8913a84e21f7237fd0c38cf5596d176d.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/hhvm--third-party-3.2.1b.tar.gz |
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
==> cmake . -DBOOST_INCLUDEDIR=/Users/jwatzman/homebrew/opt/boost/include -DBOOST_LIBRARYDIR=/Users/jwatzman/homebrew/opt/boost/lib -DCCLIENT_INCLUDE_PATH=/Users/jwatzman/homebrew/opt/imap-uw/include/imap -DCMAKE_INCLUDE_PATH="/Users/jwatzman/homebrew/include:/usr/include" -DCMAKE_INSTALL_PREFIX=/Users/jwatzman/homebrew/Cellar/hhvm/3.2.1b -DCMAKE_LIBRARY_PATH="/Users/jwatzman/homebrew/lib:/usr/lib" -DCURL_INCLUDE_DIR=/Users/jwatzman/homebrew/opt/curl/include -DCURL_LIBRARY=/Users/jwatzman/homebrew/opt/curl/lib/libcurl.dylib -DFREETYPE_INCLUDE_DIRS=/Users/jwatzman/homebrew/opt/freetype/include/freetype2 -DFREETYPE_LIBRARIES=/Users/jwatzman/homebrew/opt/freetype/lib/libfreetype.dylib -DICU_DATA_LIBRARY=/Users/jwatzman/homebrew/opt/icu4c/lib/libicudata.dylib -DICU_I18N_LIBRARY=/Users/jwatzman/homebrew/opt/icu4c/lib/libicui18n.dylib -DICU_INCLUDE_DIR=/Users/jwatzman/homebrew/opt/icu4c/include -DICU_LIBRARY=/Users/jwatzman/homebrew/opt/icu4c/lib/libicuuc.dylib -DJEMALLOC_INCLUDE_DIR=/Users/jwatzman/homebrew/opt/je |
NewerOlder