[前][次][番号順一覧][スレッド一覧]

ruby-changes:50171

From: nobu <ko1@a...>
Date: Wed, 7 Feb 2018 23:14:02 +0900 (JST)
Subject: [ruby-changes:50171] nobu:r62289 (trunk): mjit.c: untabified [ci skip]

nobu	2018-02-07 23:13:57 +0900 (Wed, 07 Feb 2018)

  New Revision: 62289

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62289

  Log:
    mjit.c: untabified [ci skip]

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 62288)
+++ mjit.c	(revision 62289)
@@ -247,10 +247,10 @@ get_uniq_filename(unsigned long id, cons https://github.com/ruby/ruby/blob/trunk/mjit.c#L247
     ++size;
     str = xmalloc(size);
     if (size <= (int)sizeof(buff)) {
-	memcpy(str, buff, size);
+        memcpy(str, buff, size);
     }
     else {
-	sprint_uniq_filename(str, size, id, prefix, suffix);
+        sprint_uniq_filename(str, size, id, prefix, suffix);
     }
     return str;
 }
@@ -755,9 +755,9 @@ convert_unit_to_func(struct rb_mjit_unit https://github.com/ruby/ruby/blob/trunk/mjit.c#L755
 
     c_file_len = sprint_uniq_filename(c_file_buff, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
     if (c_file_len >= (int)sizeof(c_file_buff)) {
-	++c_file_len;
-	c_file = alloca(c_file_len);
-	c_file_len = sprint_uniq_filename(c_file_buff, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
+        ++c_file_len;
+        c_file = alloca(c_file_len);
+        c_file_len = sprint_uniq_filename(c_file_buff, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
     }
     ++c_file_len;
     so_file = alloca(c_file_len - sizeof(c_ext) + sizeof(so_ext));
@@ -1206,8 +1206,8 @@ system_tmpdir(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L1206
     WCHAR tmppath[_MAX_PATH];
     UINT len = rb_w32_system_tmpdir(tmppath, numberof(tmppath));
     if (len) {
-	tmpdir = rb_w32_wstr_to_mbstr(CP_UTF8, tmppath, -1, NULL);
-	return get_string(tmpdir);
+        tmpdir = rb_w32_wstr_to_mbstr(CP_UTF8, tmppath, -1, NULL);
+        return get_string(tmpdir);
     }
 #elif defined _CS_DARWIN_USER_TEMP_DIR
     #ifndef MAXPATHLEN
@@ -1216,18 +1216,18 @@ system_tmpdir(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L1216
     char path[MAXPATHLEN];
     size_t len = confstr(_CS_DARWIN_USER_TEMP_DIR, path, sizeof(path));
     if (len > 0) {
-	tmpdir = xmalloc(len);
-	if (len > sizeof(path)) {
-	    confstr(_CS_DARWIN_USER_TEMP_DIR, tmpdir, len);
-	}
-	else {
-	    memcpy(tmpdir, path, len);
-	}
-	return tmpdir;
+        tmpdir = xmalloc(len);
+        if (len > sizeof(path)) {
+            confstr(_CS_DARWIN_USER_TEMP_DIR, tmpdir, len);
+        }
+        else {
+            memcpy(tmpdir, path, len);
+        }
+        return tmpdir;
     }
 #endif
     if (!(tmpdir = getenv("TMPDIR")) &&
-	!(tmpdir = getenv("TMP"))) {
+        !(tmpdir = getenv("TMP"))) {
         return get_string("/tmp");
     }
     return get_string(tmpdir);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]