Skip to content

Commit

Permalink
Replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed Mar 21, 2015
1 parent e13c9be commit 5587ca3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ jl_methlist_t *jl_method_list_insert(jl_methlist_t **pml, jl_tuple_t *type,
}
item = next;
pitem = pnext;
item_parent = next_parent;
item_parent = next_parent;
}
}
JL_GC_POP();
Expand Down
14 changes: 7 additions & 7 deletions src/support/MurmurHash3.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@

#if defined(_MSC_VER)

#define FORCE_INLINE __forceinline
#define FORCE_INLINE __forceinline

#include <stdlib.h>

#define ROTL32(x,y) _rotl(x,y)
#define ROTL64(x,y) _rotl64(x,y)
#define ROTL32(x,y) _rotl(x,y)
#define ROTL64(x,y) _rotl64(x,y)

#define BIG_CONSTANT(x) (x)

// Other compilers

#else // defined(_MSC_VER)
#else // defined(_MSC_VER)

#define FORCE_INLINE inline __attribute__((always_inline))
#define FORCE_INLINE inline __attribute__((always_inline))

static inline uint32_t rotl32 ( uint32_t x, int8_t r )
{
Expand All @@ -41,8 +41,8 @@ static inline uint64_t rotl64 ( uint64_t x, int8_t r )
return (x << r) | (x >> (64 - r));
}

#define ROTL32(x,y) rotl32(x,y)
#define ROTL64(x,y) rotl64(x,y)
#define ROTL32(x,y) rotl32(x,y)
#define ROTL64(x,y) rotl64(x,y)

#define BIG_CONSTANT(x) (x##LLU)

Expand Down
14 changes: 7 additions & 7 deletions src/support/dtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@
#endif

#ifdef _OS_WINDOWS_
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __PDP_ENDIAN 3412
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __PDP_ENDIAN 3412
#define __BYTE_ORDER __LITTLE_ENDIAN
#define __FLOAT_WORD_ORDER __LITTLE_ENDIAN
#define LITTLE_ENDIAN __LITTLE_ENDIAN
#define BIG_ENDIAN __BIG_ENDIAN
#define PDP_ENDIAN __PDP_ENDIAN
#define BYTE_ORDER __BYTE_ORDER
#define LITTLE_ENDIAN __LITTLE_ENDIAN
#define BIG_ENDIAN __BIG_ENDIAN
#define PDP_ENDIAN __PDP_ENDIAN
#define BYTE_ORDER __BYTE_ORDER
#endif

#if (__STDC_VERSION__ >= 199901L) || defined(__GNUG__)
Expand Down
4 changes: 2 additions & 2 deletions src/support/wcwidth.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ DLLEXPORT int wcwidth(uint32_t ucs)

/* binary search in table of non-spacing characters */
if (bisearch(ucs, combining,
sizeof(combining) / sizeof(struct interval) - 1))
sizeof(combining) / sizeof(struct interval) - 1))
return 0;

/* if we arrive here, ucs is not a combining or C0/C1 control character */
Expand Down Expand Up @@ -298,7 +298,7 @@ int wcwidth_cjk(uint32_t ucs)

/* binary search in table of non-spacing characters */
if (bisearch(ucs, ambiguous,
sizeof(ambiguous) / sizeof(struct interval) - 1))
sizeof(ambiguous) / sizeof(struct interval) - 1))
return 2;

return wcwidth(ucs);
Expand Down
34 changes: 17 additions & 17 deletions test/functional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ end

let i = 0
for j = countfrom(0, 2)
@test j == i*2
i += 1
i <= 10 || break
@test j == i*2
i += 1
i <= 10 || break
end
end

Expand All @@ -83,16 +83,16 @@ let t = take(0:2:8, 10), i = 0
@test length(collect(t)) == 5

for j = t
@test j == i*2
i += 1
@test j == i*2
i += 1
end
@test i == 5
end

let i = 0
for j = take(0:2:100, 10)
@test j == i*2
i += 1
@test j == i*2
i += 1
end
@test i == 10
end
Expand All @@ -102,8 +102,8 @@ end

let i = 0
for j = drop(0:2:10, 2)
@test j == (i+2)*2
i += 1
@test j == (i+2)*2
i += 1
end
@test i == 4
end
Expand All @@ -113,9 +113,9 @@ end

let i = 0
for j = cycle(0:3)
@test j == i % 4
i += 1
i <= 10 || break
@test j == i % 4
i += 1
i <= 10 || break
end
end

Expand All @@ -124,15 +124,15 @@ end

let i = 0
for j = repeated(1, 10)
@test j == 1
i += 1
@test j == 1
i += 1
end
@test i == 10
end
let i = 0
for j = repeated(1)
@test j == 1
i += 1
i <= 10 || break
@test j == 1
i += 1
i <= 10 || break
end
end

0 comments on commit 5587ca3

Please sign in to comment.