History

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.

gus knight committed 11 years ago

Commit d6b64e21 parent 410312210 files · +427 −428Browse files

Showing the changes to tccrun.c (1 of 10 files). Show all

Unified · Split

tccrun.c+9−9
@@ -127,7 +127,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv) · 126 unmodified lines
127 for (i=0; i<argc; ++i)127 for (i=0; i<argc; ++i)
128 bound_new_region(argv[i], strlen(argv[i]));128 bound_new_region(argv[i], strlen(argv[i]));
129 129
130 errno = 0; /* clean errno value */130 errno = 0; /* clean errno value */
131 ret = (*prog_main)(argc, argv);131 ret = (*prog_main)(argc, argv);
132 132
133 /* unmark argv area */133 /* unmark argv area */
@@ -139,7 +139,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv) · 5 unmodified lines
139 } else139 } else
140#endif140#endif
141 {141 {
142 errno = 0; /* clean errno value */142 errno = 0; /* clean errno value */
143 ret = (*prog_main)(argc, argv);143 ret = (*prog_main)(argc, argv);
144 }144 }
145 return ret;145 return ret;
@@ -652,7 +652,7 @@ static long __stdcall cpu_exception_handler(EXCEPTION_POINTERS *ex_info) · 506 unmodified lines
652 if (rt_bound_error_msg && *rt_bound_error_msg)652 if (rt_bound_error_msg && *rt_bound_error_msg)
653 rt_error(uc, *rt_bound_error_msg);653 rt_error(uc, *rt_bound_error_msg);
654 else654 else
655 rt_error(uc, "access violation");655 rt_error(uc, "access violation");
656 break;656 break;
657 case EXCEPTION_STACK_OVERFLOW:657 case EXCEPTION_STACK_OVERFLOW:
658 rt_error(uc, "stack overflow");658 rt_error(uc, "stack overflow");
@@ -697,12 +697,12 @@ static int rt_get_caller_pc(addr_t *paddr, CONTEXT *uc, int level) · 38 unmodified lines
697 fp = uc->Ebp;697 fp = uc->Ebp;
698#endif698#endif
699 if (level > 0) {699 if (level > 0) {
700 for(i=1;i<level;i++) {700 for(i = 1; i < level; i++) {
701 /* XXX: check address validity with program info */701 /* XXX: check address validity with program info */
702 if (fp <= 0x1000 || fp >= 0xc0000000)702 if (fp <= 0x1000 || fp >= 0xc0000000)
703 return -1;703 return -1;
704 fp = ((addr_t*)fp)[0];704 fp = ((addr_t*)fp)[0];
705 }705 }
706 pc = ((addr_t*)fp)[1];706 pc = ((addr_t*)fp)[1];
707 }707 }
708 *paddr = pc;708 *paddr = pc;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t