1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

style: align pointer "*" to the right

This commit is contained in:
Alan Wu 2021-09-29 14:58:01 -04:00
parent 5b68d14c2f
commit a10cf74e5c
9 changed files with 515 additions and 515 deletions

View file

@ -5,7 +5,7 @@
#include "yjit_asm.h"
// Save caller-save registers on the stack before a C call
void push_regs(codeblock_t* cb)
void push_regs(codeblock_t *cb)
{
push(cb, RAX);
push(cb, RCX);
@ -20,7 +20,7 @@ void push_regs(codeblock_t* cb)
}
// Restore caller-save registers from the after a C call
void pop_regs(codeblock_t* cb)
void pop_regs(codeblock_t *cb)
{
popfq(cb);
pop(cb, R11);
@ -39,7 +39,7 @@ static void print_int_cfun(int64_t val)
fprintf(stderr, "%lld\n", (long long int)val);
}
void print_int(codeblock_t* cb, x86opnd_t opnd)
void print_int(codeblock_t *cb, x86opnd_t opnd)
{
push_regs(cb);
@ -55,12 +55,12 @@ void print_int(codeblock_t* cb, x86opnd_t opnd)
pop_regs(cb);
}
static void print_ptr_cfun(void* val)
static void print_ptr_cfun(void *val)
{
fprintf(stderr, "%p\n", val);
}
void print_ptr(codeblock_t* cb, x86opnd_t opnd)
void print_ptr(codeblock_t *cb, x86opnd_t opnd)
{
assert (opnd.num_bits == 64);
@ -73,13 +73,13 @@ void print_ptr(codeblock_t* cb, x86opnd_t opnd)
pop_regs(cb);
}
static void print_str_cfun(const char* str)
static void print_str_cfun(const char *str)
{
fprintf(stderr, "%s\n", str);
}
// Print a constant string to stdout
void print_str(codeblock_t* cb, const char* str)
void print_str(codeblock_t *cb, const char *str)
{
//as.comment("printStr(\"" ~ str ~ "\")");
size_t len = strlen(str);