aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
authorgus knight <waddlesplash@gmail.com>2015-07-27 14:14:41 -0400
committergus knight <waddlesplash@gmail.com>2015-07-27 14:14:41 -0400
commitd6b64e2574bb4bc3c19e472b83073ff4d8786df2 (patch)
treecfe63534d235f8c357e2ef16eb90869116decdb8 /tccrun.c
parent41031221c82384f40b5664b5e12b1a81eefcdfe6 (diff)
downloadtinycc-d6b64e2574bb4bc3c19e472b83073ff4d8786df2.tar.gz
tinycc-d6b64e2574bb4bc3c19e472b83073ff4d8786df2.tar.bz2
Clean up lots of rogue tabs.
Still some more tabs to be taken care of. arm-gen.c and tcccoff.c have so many style issues that I'm just going to throw clang-format at them.
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tccrun.c b/tccrun.c
index 55db310..cb98392 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -127,7 +127,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv)
for (i=0; i<argc; ++i)
bound_new_region(argv[i], strlen(argv[i]));
- errno = 0; /* clean errno value */
+ errno = 0; /* clean errno value */
ret = (*prog_main)(argc, argv);
/* unmark argv area */
@@ -139,7 +139,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv)
} else
#endif
{
- errno = 0; /* clean errno value */
+ errno = 0; /* clean errno value */
ret = (*prog_main)(argc, argv);
}
return ret;
@@ -652,7 +652,7 @@ static long __stdcall cpu_exception_handler(EXCEPTION_POINTERS *ex_info)
if (rt_bound_error_msg && *rt_bound_error_msg)
rt_error(uc, *rt_bound_error_msg);
else
- rt_error(uc, "access violation");
+ rt_error(uc, "access violation");
break;
case EXCEPTION_STACK_OVERFLOW:
rt_error(uc, "stack overflow");
@@ -697,12 +697,12 @@ static int rt_get_caller_pc(addr_t *paddr, CONTEXT *uc, int level)
fp = uc->Ebp;
#endif
if (level > 0) {
- for(i=1;i<level;i++) {
- /* XXX: check address validity with program info */
- if (fp <= 0x1000 || fp >= 0xc0000000)
- return -1;
- fp = ((addr_t*)fp)[0];
- }
+ for(i = 1; i < level; i++) {
+ /* XXX: check address validity with program info */
+ if (fp <= 0x1000 || fp >= 0xc0000000)
+ return -1;
+ fp = ((addr_t*)fp)[0];
+ }
pc = ((addr_t*)fp)[1];
}
*paddr = pc;