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 -r 5bf1a8b3aeea src/cmd/gc/go.y | |
--- a/src/cmd/gc/go.y Thu May 29 13:47:31 2014 -0400 | |
+++ b/src/cmd/gc/go.y Tue Jun 03 11:47:44 2014 +0900 | |
@@ -43,6 +43,7 @@ | |
%token <sym> LIF LIMPORT LINTERFACE LMAP LNAME | |
%token <sym> LPACKAGE LRANGE LRETURN LSELECT LSTRUCT LSWITCH | |
%token <sym> LTYPE LVAR | |
+%token <sym> LRARROW | |
%token LANDAND LANDNOT LBODY LCOMM LDEC LEQ LGE LGT |
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 -r 5bf1a8b3aeea src/cmd/gc/lex.c | |
--- a/src/cmd/gc/lex.c Thu May 29 13:47:31 2014 -0400 | |
+++ b/src/cmd/gc/lex.c Tue Jun 03 12:11:38 2014 +0900 | |
@@ -1309,7 +1313,7 @@ | |
ungetc(c); | |
rune = getr(); | |
// 0xb7 · is used for internal names | |
- if(!isalpharune(rune) && !isdigitrune(rune) && (importpkg == nil || rune != 0xb7)) | |
+ if(!isalpharune(rune) && !isdigitrune(rune) && !isothersymrune(rune) && (importpkg == nil || rune != 0xb7)) | |
yyerror("invalid identifier character U+%04x", rune); |
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
package main | |
import "os" | |
type RefcountedFile proxy[*os.File] struct { | |
f *os.File | |
refcount int | |
} | |
func (f *RefcountedFile) __deref() *os.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
import re | |
encoded_chars = [ | |
'^\100', '^\101', '^\102', '^\103', '^\104', '^\105', '^\106', '^\107', | |
'^\110', '^\111', '^\112', '^\113', '^\114', '^\115', '^\116', '^\117', | |
'^\120', '^\121', '^\122', '^\123', '^\124', '^\125', '^\126', '^\127', | |
'^\130', '^\131', '^\132', '^\133', '^\134', '^\135', '^\136', '^\137', | |
'\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047', | |
'\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057', | |
'\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067', |
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 java.util.List; | |
import java.util.LinkedList; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.FutureTask; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.BufferedReader; | |
import com.sun.jna.Library; | |
import com.sun.jna.Native; |
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 os | |
from struct import pack, unpack | |
from socket import AF_UNIX, IPPROTO_TCP, SOCK_STREAM, socket | |
from base64 import b64encode | |
SSH_AGENT_FAILURE = 5 | |
SSH_AGENT_SUCCESS = 6 | |
SSH2_AGENTC_REQUEST_IDENTITIES = 11 | |
SSH2_AGENTC_SIGN_REQUEST = 13 |
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 -r ffe33f1f1f17 src/cmd/gc/esc.c | |
--- a/src/cmd/gc/esc.c Tue Nov 25 15:41:33 2014 +1100 | |
+++ b/src/cmd/gc/esc.c Sun Nov 30 15:58:50 2014 +0900 | |
@@ -756,6 +756,12 @@ | |
escassign(e, &e->theSink, dst->right); | |
dst = &e->theSink; | |
break; | |
+ case OINDEXINTER: | |
+ // lose track of key and value | |
+ esc(e, dst->left, dst); |
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> | |
BOOL shouldKeepRunning = YES; | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/"]]; | |
NSURLSession *session = [NSURLSession sharedSession]; | |
NSURLSessionDataTask* task = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { |
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 <errno.h> | |
typedef char c;typedef int i;i sprintf(c*,c*,...);i socket();i close();i bind(i,i*,i);i read(i,c*,i);i write(i,c*,i);i***gethostbyname(c*);c*strstr(c*,c*);void*malloc();i open(c*,...);i recvfrom(i,c*,i,i,i*,i*);i sendto(i,c*,i,i,i*,i);i fcntl();i select(i,i*,i*,i*,i*);i listen();i setsockopt();i htonl();i signal();i strlen(c*);double log(double);i main(i e,c**y){i a=socket(2,1,6),o=socket(2,2,17),b[]={htonl(0x02000050),0},d=0,f,g,h=0,j,k[32]={a,o},l,n,p=0,r,t,z;c *s,m[512]=" \r\n\r\nHTTP/1.0 200 OK\r\nContent-Type: image/gif\r\nContent-Length: %d\r\n\r",q[300000],u[]="\0\0\201\200\0\1\0\1\0\0\0\0\3www\6bijint\3com\0\0\1\0\1\300\f\0\1\0\1\0\0\2X\0\4\x7f\x00\x00\x01";if(!--e)return 0;l=strlen(m)+9;f=read(e=open(*++y,0),q+l,sizeof(q)-l),s=q+9-(i)(log(f)/log(10)),s[sprintf(s,m,f)]='\n',l+=f;close(e);signal(13,1);for(e=32;--e>=0;)k[e]=fcntl(f,4,z=setsockopt(f=k[e],65535,4,q,4)?setsockopt(f,1,2,q,4),2048:4),d|=1<<f,p=f>p?f:p;bind(a,b,16);b[0]=htonl(0x02000035);bind(o,b,16);listen(a,5);for(;;){f= |
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: Zend/zend_language_scanner.l | |
=================================================================== | |
RCS file: /repository/ZendEngine2/zend_language_scanner.l,v | |
retrieving revision 1.131.2.11.2.13.2.35 | |
diff -u -r1.131.2.11.2.13.2.35 zend_language_scanner.l | |
--- Zend/zend_language_scanner.l 9 Jan 2009 17:21:12 -0000 1.131.2.11.2.13.2.35 | |
+++ Zend/zend_language_scanner.l 21 Mar 2009 18:39:29 -0000 | |
@@ -1093,6 +1093,9 @@ | |
} | |
OlderNewer