ruby-changes:52518
From: hsbt <ko1@a...>
Date: Thu, 13 Sep 2018 16:46:08 +0900 (JST)
Subject: [ruby-changes:52518] hsbt:r64727: Move win32-unicode-test branch to tags.
hsbt 2018-09-13 16:04:32 +0900 (Thu, 13 Sep 2018) New Revision: 64727 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64727 Log: Move win32-unicode-test branch to tags. Added directories: tags/win32-unicode-test/ Removed directories: branches/win32-unicode-test/ Index: win32-unicode-test/lex.c.blt =================================================================== --- win32-unicode-test/lex.c.blt (revision 64726) +++ win32-unicode-test/lex.c.blt (nonexistent) @@ -1,219 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/win32-unicode-test/lex.c.blt#L0 -/* C code produced by gperf version 3.0.4 */ -/* Command-line: gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k'1,3,$' defs/keywords */ - -#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ - && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ - && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ - && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ - && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ - && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ - && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ - && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ - && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ - && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ - && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ - && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ - && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ - && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ - && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ - && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ - && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ - && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ - && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ - && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ - && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ - && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ - && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) -/* The character set is not based on ISO-646. */ -error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@g...>." -#endif - -#line 1 "defs/keywords" - -struct kwtable {const char *name; int id[2]; enum lex_state_e state;}; -const struct kwtable *rb_reserved_word(const char *, unsigned int); -#ifndef RIPPER -static const struct kwtable *reserved_word(const char *, unsigned int); -#define rb_reserved_word(str, len) reserved_word(str, len) -#line 9 "defs/keywords" -struct kwtable; - -#define TOTAL_KEYWORDS 41 -#define MIN_WORD_LENGTH 2 -#define MAX_WORD_LENGTH 12 -#define MIN_HASH_VALUE 8 -#define MAX_HASH_VALUE 50 -/* maximum key range = 43, duplicates = 0 */ - -#ifdef __GNUC__ -__inline -#else -#ifdef __cplusplus -inline -#endif -#endif -static unsigned int -hash (str, len) - register const char *str; - register unsigned int len; -{ - static const unsigned char asso_values[] = - { - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 26, 51, 51, 14, 51, 16, 8, - 11, 13, 51, 51, 51, 51, 10, 51, 13, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 11, 51, 13, 1, 26, - 4, 1, 8, 28, 51, 23, 51, 1, 1, 27, - 5, 19, 21, 51, 8, 3, 3, 11, 51, 21, - 24, 16, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51 - }; - register int hval = len; - - switch (hval) - { - default: - hval += asso_values[(unsigned char)str[2]]; - /*FALLTHROUGH*/ - case 2: - case 1: - hval += asso_values[(unsigned char)str[0]]; - break; - } - return hval + asso_values[(unsigned char)str[len - 1]]; -} - -#ifdef __GNUC__ -__inline -#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ -__attribute__ ((__gnu_inline__)) -#endif -#endif -const struct kwtable * -rb_reserved_word (str, len) - register const char *str; - register unsigned int len; -{ - static const struct kwtable wordlist[] = - { - {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, -#line 19 "defs/keywords" - {"break", {keyword_break, keyword_break}, EXPR_MID}, -#line 25 "defs/keywords" - {"else", {keyword_else, keyword_else}, EXPR_BEG}, -#line 35 "defs/keywords" - {"nil", {keyword_nil, keyword_nil}, EXPR_END}, -#line 28 "defs/keywords" - {"ensure", {keyword_ensure, keyword_ensure}, EXPR_BEG}, -#line 27 "defs/keywords" - {"end", {keyword_end, keyword_end}, EXPR_END}, -#line 44 "defs/keywords" - {"then", {keyword_then, keyword_then}, EXPR_BEG}, -#line 36 "defs/keywords" - {"not", {keyword_not, keyword_not}, EXPR_ARG}, -#line 29 "defs/keywords" - {"false", {keyword_false, keyword_false}, EXPR_END}, -#line 42 "defs/keywords" - {"self", {keyword_self, keyword_self}, EXPR_END}, -#line 26 "defs/keywords" - {"elsif", {keyword_elsif, keyword_elsif}, EXPR_VALUE}, -#line 39 "defs/keywords" - {"rescue", {keyword_rescue, modifier_rescue}, EXPR_MID}, -#line 45 "defs/keywords" - {"true", {keyword_true, keyword_true}, EXPR_END}, -#line 48 "defs/keywords" - {"until", {keyword_until, modifier_until}, EXPR_VALUE}, -#line 47 "defs/keywords" - {"unless", {keyword_unless, modifier_unless}, EXPR_VALUE}, -#line 41 "defs/keywords" - {"return", {keyword_return, keyword_return}, EXPR_MID}, -#line 22 "defs/keywords" - {"def", {keyword_def, keyword_def}, EXPR_FNAME}, -#line 17 "defs/keywords" - {"and", {keyword_and, keyword_and}, EXPR_VALUE}, -#line 24 "defs/keywords" - {"do", {keyword_do, keyword_do}, EXPR_BEG}, -#line 51 "defs/keywords" - {"yield", {keyword_yield, keyword_yield}, EXPR_ARG}, -#line 30 "defs/keywords" - {"for", {keyword_for, keyword_for}, EXPR_VALUE}, -#line 46 "defs/keywords" - {"undef", {keyword_undef, keyword_undef}, EXPR_FNAME}, -#line 37 "defs/keywords" - {"or", {keyword_or, keyword_or}, EXPR_VALUE}, -#line 32 "defs/keywords" - {"in", {keyword_in, keyword_in}, EXPR_VALUE}, -#line 49 "defs/keywords" - {"when", {keyword_when, keyword_when}, EXPR_VALUE}, -#line 40 "defs/keywords" - {"retry", {keyword_retry, keyword_retry}, EXPR_END}, -#line 31 "defs/keywords" - {"if", {keyword_if, modifier_if}, EXPR_VALUE}, -#line 20 "defs/keywords" - {"case", {keyword_case, keyword_case}, EXPR_VALUE}, -#line 38 "defs/keywords" - {"redo", {keyword_redo, keyword_redo}, EXPR_END}, -#line 34 "defs/keywords" - {"next", {keyword_next, keyword_next}, EXPR_MID}, -#line 43 "defs/keywords" - {"super", {keyword_super, keyword_super}, EXPR_ARG}, -#line 33 "defs/keywords" - {"module", {keyword_module, keyword_module}, EXPR_VALUE}, -#line 18 "defs/keywords" - {"begin", {keyword_begin, keyword_begin}, EXPR_BEG}, -#line 12 "defs/keywords" - {"__LINE__", {keyword__LINE__, keyword__LINE__}, EXPR_END}, -#line 13 "defs/keywords" - {"__FILE__", {keyword__FILE__, keyword__FILE__}, EXPR_END}, -#line 11 "defs/keywords" - {"__ENCODING__", {keyword__ENCODING__, keyword__ENCODING__}, EXPR_END}, -#line 15 "defs/keywords" - {"END", {keyword_END, keyword_END}, EXPR_END}, -#line 16 "defs/keywords" - {"alias", {keyword_alias, keyword_alias}, EXPR_FNAME}, -#line 14 "defs/keywords" - {"BEGIN", {keyword_BEGIN, keyword_BEGIN}, EXPR_END}, -#line 23 "defs/keywords" - {"defined?", {keyword_defined, keyword_defined}, EXPR_ARG}, -#line 21 "defs/keywords" - {"class", {keyword_class, keyword_class}, EXPR_CLASS}, - {""}, {""}, -#line 50 "defs/keywords" - {"while", {keyword_while, modifier_while}, EXPR_VALUE} - }; - - if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) - { - register int key = hash (str, len); - - if (key <= MAX_HASH_VALUE && key >= 0) - { - register const char *s = wordlist[key].name; - - if (*str == *s && !strcmp (str + 1, s + 1)) - return &wordlist[key]; - } - } - return 0; -} -#line 52 "defs/keywords" - -#endif Property changes on: win32-unicode-test/lex.c.blt ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: win32-unicode-test/README =================================================================== --- win32-unicode-test/README (revision 64726) +++ win32-unicode-test/README (nonexistent) @@ -1,114 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/win32-unicode-test/README#L0 -* What's Ruby - -Ruby is the interpreted scripting language for quick and -easy object-oriented programming. It has many features to -process text files and to do system management tasks (as in -Perl). It is simple, straight-forward, and extensible. - - -* Features of Ruby - - + Simple Syntax - + *Normal* Object-Oriented features(ex. class, method calls) - + *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method) - + Operator Overloading - + Exception Handling - + Iterators and Closures - + Garbage Collection - + Dynamic Loading of Object files(on some architecture) - + Highly Portable (works on many Unix-like/POSIX compatible platforms - as well as Windows, Mac OS X, BeOS etc.) - cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatforms - - -* How to get Ruby - -The Ruby distribution files can be found in the following FTP site: - - ftp://ftp.ruby-lang.org/pub/ruby/ - -The trunk of the Ruby source tree can be checked out with the -following command: - - $ svn co http://svn.ruby-lang.org/repos/ruby/trunk/ ruby - -There are some other branches under development. Try the following -command and see the list of branches: - - $ svn ls http://svn.ruby-lang.org/repos/ruby/branches/ - - -* Ruby home-page - -The URL of the Ruby home-page is: - - http://www.ruby-lang.org/ - - -* Mailing list - -There is a mailing list to talk about Ruby. -To subscribe this list, please send the following phrase - - subscribe YourFirstName YourFamilyName -e.g. - subscribe Joseph Smith - -in the mail body (not subject) to the address <ruby-talk-ctl@r...>. - - -* How to compile and install - -This is what you need to do to compile and install Ruby: - - 1. If ./configure does not exist or is older than configure.in, - run autoconf to (re)generate configure. - - 2. Run ./configure, which will generate config.h and Makefile. - - Some C compiler flags may be added by default depending on your - environment. Specify optflags=.. and warnflags=.. as necessary - to override them. - - 3. Edit defines.h if you need. Usually this step will not be needed. - - 4. Remove comment mark(#) before the module names from ext/Setup (or - add module names if not present), if you want to link modules - statically. - - If you don't want to compile non static extension modules - (probably on architectures which does not allow dynamic loading), - remove comment mark from the line "#option nodynamic" in - ext/Setup. - - 5. Run make. - - 6. Optionally, run 'make test' to check whether the compiled Ruby - interpreter works well. If you see the message "test succeeded", - your ruby works as it should (hopefully). - - 7. Run 'make install' - - You may have to be a super user to install ruby. - -If you fail to compile ruby, please send the detailed error report with -the error log and machine/OS type, to help others. - - -* Copying - -See the file COPYING. - - -* The Author - -Feel free to send comments and bug reports to the author. Here is the -author's latest mail address: - - matz@n... - -------------------------------------------------------- -created at: Thu Aug 3 11:57:36 JST 1995 -Local variables: -mode: indented-text -end: Property changes on: win32-unicode-test/README ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: win32-unicode-test/signal.c =================================================================== --- win32-unicode-test/signal.c (revision 64726) +++ win32-unicode-test/signal.c (nonexistent) @@ -1,1166 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/win32-unicode-test/signal.c#L0 -/********************************************************************** - - signal.c - - - $Author$ - created at: Tue Dec 20 10:13:44 JST 1994 - - Copyright (C) 1993-2007 Yukihiro Matsumoto - Copyright (C) 2000 Network Applied Communication Laboratory, Inc. - Copyright (C) 2000 Information-technology Promotion Agency, Japan - -**********************************************************************/ - -#include "ruby/ruby.h" -#include "vm_core.h" -#include <signal.h> -#include <stdio.h> -#include <errno.h> - -#ifdef _WIN32 -typedef LONG rb_atomic_t; - -# define ATOMIC_TEST(var) InterlockedExchange(&(var), 0) -# define ATOMIC_SET(var, val) InterlockedExchange(&(var), (val)) -# define ATOMIC_INC(var) InterlockedIncrement(&(var)) -# define ATOMIC_DEC(var) InterlockedDecrement(&(var)) - -#else -typedef int rb_atomic_t; - -# define ATOMIC_TEST(var) ((var) ? ((var) = 0, 1) : 0) -# define ATOMIC_SET(var, val) ((var) = (val)) -# define ATOMIC_INC(var) (++(var)) -# define ATOMIC_DEC(var) (--(var)) -#endif - -#ifdef __BEOS__ -#undef SIGBUS -#endif - -#if defined HAVE_SIGPROCMASK || defined HAVE_SIGSETMASK -#define USE_TRAP_MASK 1 -#else -#define USE_TRAP_MASK 0 -#endif - -#ifndef NSIG -# define NSIG (_SIGMAX + 1) /* For QNX */ -#endif - -static const struct signals { - const char *signm; - int signo; -} siglist [] = { - {"EXIT", 0}, -#ifdef SIGHUP - {"HUP", SIGHUP}, -#endif - {"INT", SIGINT}, -#ifdef SIGQUIT - {"QUIT", SIGQUIT}, -#endif -#ifdef SIGILL - {"ILL", SIGILL}, -#endif -#ifdef SIGTRAP - {"TRAP", SIGTRAP}, -#endif -#ifdef SIGIOT - {"IOT", SIGIOT}, -#endif -#ifdef SIGABRT - {"ABRT", SIGABRT}, -#endif -#ifdef SIGEMT - {"EMT", SIGEMT}, -#endif -#ifdef SIGFPE - {"FPE", SIGFPE}, -#endif -#ifdef SIGKILL - {"KILL", SIGKILL}, -#endif -#ifdef SIGBUS - {"BUS", SIGBUS}, -#endif -#ifdef SIGSEGV - {"SEGV", SIGSEGV}, -#endif -#ifdef SIGSYS - {"SYS", SIGSYS}, -#endif -#ifdef SIGPIPE - {"PIPE", SIGPIPE}, -#endif -#ifdef SIGALRM - {"ALRM", SIGALRM}, -#endif -#ifdef SIGTERM - {"TERM", SIGTERM}, -#endif -#ifdef SIGURG - {"URG", SIGURG}, -#endif -#ifdef SIGSTOP - {"STOP", SIGSTOP}, -#endif -#ifdef SIGTSTP - {"TSTP", SIGTSTP}, -#endif -#ifdef SIGCONT - {"CONT", SIGCONT}, -#endif -#ifdef SIGCHLD - {"CHLD", SIGCHLD}, -#endif -#ifdef SIGCLD - {"CLD", SIGCLD}, -#else -# ifdef SIGCHLD - {"CLD", SIGCHLD}, -# endif -#endif -#ifdef SIGTTIN - {"TTIN", SIGTTIN}, -#endif -#ifdef SIGTTOU - {"TTOU", SIGTTOU}, -#endif -#ifdef SIGIO - {"IO", SIGIO}, -#endif -#ifdef SIGXCPU - {"XCPU", SIGXCPU}, -#endif -#ifdef SIGXFSZ - {"XFSZ", SIGXFSZ}, -#endif -#ifdef SIGVTALRM - {"VTALRM", SIGVTALRM}, -#endif -#ifdef SIGPROF - {"PROF", SIGPROF}, -#endif -#ifdef SIGWINCH - {"WINCH", SIGWINCH}, -#endif -#ifdef SIGUSR1 - {"USR1", SIGUSR1}, -#endif -#ifdef SIGUSR2 - {"USR2", SIGUSR2}, -#endif -#ifdef SIGLOST - {"LOST", SIGLOST}, -#endif -#ifdef SIGMSG - {"MSG", SIGMSG}, -#endif -#ifdef SIGPWR - {"PWR", SIGPWR}, -#endif -#ifdef SIGPOLL - {"POLL", SIGPOLL}, -#endif -#ifdef SIGDANGER - {"DANGER", SIGDANGER}, -#endif -#ifdef SIGMIGRATE - {"MIGRATE", SIGMIGRATE}, -#endif -#ifdef SIGPRE - {"PRE", SIGPRE}, -#endif -#ifdef SIGGRANT - {"GRANT", SIGGRANT}, -#endif -#ifdef SIGRETRACT - {"RETRACT", SIGRETRACT}, -#endif -#ifdef SIGSOUND - {"SOUND", SIGSOUND}, -#endif -#ifdef SIGINFO - {"INFO", SIGINFO}, -#endif - {NULL, 0} -}; - -static int -signm2signo(const char *nm) -{ - const struct signals *sigs; - - for (sigs = siglist; sigs->signm; sigs++) - if (strcmp(sigs->signm, nm) == 0) - return sigs->signo; - return 0; -} - -static const char* -signo2signm(int no) -{ - const struct signals *sigs; - - for (sigs = siglist; sigs->signm; sigs++) - if (sigs->signo == no) - return sigs->signm; - return 0; -} - -const char * -ruby_signal_name(int no) -{ - return signo2signm(no); -} - -/* - * call-seq: - * SignalException.new(sig) => signal_exception - * - * Construct a new SignalException object. +sig+ should be a known - * signal name, or a signal number. - */ - -static VALUE -esignal_init(int argc, VALUE *argv, VALUE self) -{ - int argnum = 1; - VALUE sig = Qnil; - int signo; - const char *signm; - - if (argc > 0) { - sig = rb_check_to_integer(argv[0], "to_int"); - if (!NIL_P(sig)) argnum = 2; - else sig = argv[0]; - } - if (argc < 1 || argnum < argc) { - rb_raise(rb_eArgError, "wrong number of arguments (%d for %d)", - argc, argnum); - } - if (argnum == 2) { - signo = NUM2INT(sig); - if (signo < 0 || signo > NSIG) { - rb_raise(rb_eArgError, "invalid signal number (%d)", signo); - } - if (argc > 1) { - sig = argv[1]; - } - else { - signm = signo2signm(signo); - if (signm) { - sig = rb_sprintf("SIG%s", signm); - } - else { - sig = rb_sprintf("SIG%u", signo); - } - } - } - else { - signm = SYMBOL_P(sig) ? rb_id2name(SYM2ID(sig)) : StringValuePtr(sig); - if (strncmp(signm, "SIG", 3) == 0) signm += 3; - signo = signm2signo(signm); - if (!signo) { - rb_raise(rb_eArgError, "unsupported name `SIG%s'", signm); - } - sig = rb_sprintf("SIG%s", signm); - } - rb_call_super(1, &sig); - rb_iv_set(self, "signo", INT2NUM(signo)); - - return self; -} - -/* - * call-seq: - * signal_exception.signo => num - * - * Returns a signal number. - */ - -static VALUE -esignal_signo(VALUE self) -{ - return rb_iv_get(self, "signo"); -} - -/* :nodoc: */ -static VALUE -interrupt_init(int argc, VALUE *argv, VALUE self) -{ - VALUE args[2]; - - args[0] = INT2FIX(SIGINT); - rb_scan_args(argc, argv, "01", &args[1]); - return rb_call_super(2, args); -} - -void -ruby_default_signal(int sig) -{ - signal(sig, SIG_DFL); - raise(sig); -} - -/* - * call-seq: - * Process.kill(signal, pid, ...) => fixnum - * - * Sends the given signal to the specified process id(s), or to the - * current process if _pid_ is zero. _signal_ may be an - * integer signal number or a POSIX signal name (either with or without - * a +SIG+ prefix). If _signal_ is negative (or starts - * with a minus sign), kills process groups instead of - * processes. Not all signals are available on all platforms. - * - * pid = fork do - * Signal.trap("HUP") { puts "Ouch!"; exit } - * # ... do some work ... - * end - * # ... - * Process.kill("HUP", pid) - * Process.wait - * - * <em>produces:</em> - * - * Ouch! - * - * If _signal_ is an integer but wrong for signal, - * <code>Errno::EINVAL</code> or +RangeError+ will be raised. - * Otherwise unless _signal_ is a +String+ or a +Symbol+, and a known - * sinal name, +ArgumentError+ will be raised. - * - * Also, <code>Errno::ESRCH</code> or +RangeError+ for invalid _pid_, - * <code>Errno::EPERM</code> when failed because of no privilege, - * will be raised. In these cases, signals (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/