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
127127 for (i=0; i<argc; ++i)
128128 bound_new_region(argv[i], strlen(argv[i]));
129129
130− errno = 0; /* clean errno value */
130+ errno = 0; /* clean errno value */
131131 ret = (*prog_main)(argc, argv);
132132
133133 /* unmark argv area */
@@ -139,7 +139,7 @@ LIBTCCAPI int tcc_run(TCCState *s1, int argc, char **argv) · 5 unmodified lines
139139 } else
140140 #endif
141141 {
142− errno = 0; /* clean errno value */
142+ errno = 0; /* clean errno value */
143143 ret = (*prog_main)(argc, argv);
144144 }
145145 return ret;
@@ -652,7 +652,7 @@ static long __stdcall cpu_exception_handler(EXCEPTION_POINTERS *ex_info) · 506 unmodified lines
652652 if (rt_bound_error_msg && *rt_bound_error_msg)
653653 rt_error(uc, *rt_bound_error_msg);
654654 else
655− rt_error(uc, "access violation");
655+ rt_error(uc, "access violation");
656656 break;
657657 case EXCEPTION_STACK_OVERFLOW:
658658 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
697697 fp = uc->Ebp;
698698 #endif
699699 if (level > 0) {
700− for(i=1;i<level;i++) {
701− /* XXX: check address validity with program info */
702− if (fp <= 0x1000 || fp >= 0xc0000000)
703− return -1;
704− fp = ((addr_t*)fp)[0];
705− }
700+ for(i = 1; i < level; i++) {
701+ /* XXX: check address validity with program info */
702+ if (fp <= 0x1000 || fp >= 0xc0000000)
703+ return -1;
704+ fp = ((addr_t*)fp)[0];
705+ }
706706 pc = ((addr_t*)fp)[1];
707707 }
708708 *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