| LEFT | RIGHT |
| 1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
| 3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "go.h" | 5 #include "go.h" |
| 6 #include "md5.h" | 6 #include "md5.h" |
| 7 #include "y.tab.h" | 7 #include "y.tab.h" |
| 8 #include "opnames.h" | 8 #include "opnames.h" |
| 9 #include "yerr.h" | 9 #include "yerr.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 nerr = 0; | 98 nerr = 0; |
| 99 } | 99 } |
| 100 | 100 |
| 101 static void | 101 static void |
| 102 hcrash(void) | 102 hcrash(void) |
| 103 { | 103 { |
| 104 if(debug['h']) { | 104 if(debug['h']) { |
| 105 flusherrors(); | 105 flusherrors(); |
| 106 if(outfile) | 106 if(outfile) |
| 107 unlink(outfile); | 107 unlink(outfile); |
| 108 » » __builtin_trap(); | 108 » » abort(); |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 | 111 |
| 112 void | 112 void |
| 113 yyerrorl(int line, char *fmt, ...) | 113 yyerrorl(int line, char *fmt, ...) |
| 114 { | 114 { |
| 115 va_list arg; | 115 va_list arg; |
| 116 | 116 |
| 117 va_start(arg, fmt); | 117 va_start(arg, fmt); |
| 118 adderr(line, fmt, arg); | 118 adderr(line, fmt, arg); |
| (...skipping 3614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3733 Strlit* | 3733 Strlit* |
| 3734 strlit(char *s) | 3734 strlit(char *s) |
| 3735 { | 3735 { |
| 3736 Strlit *t; | 3736 Strlit *t; |
| 3737 ········ | 3737 ········ |
| 3738 t = mal(sizeof *t + strlen(s)); | 3738 t = mal(sizeof *t + strlen(s)); |
| 3739 strcpy(t->s, s); | 3739 strcpy(t->s, s); |
| 3740 t->len = strlen(s); | 3740 t->len = strlen(s); |
| 3741 return t; | 3741 return t; |
| 3742 } | 3742 } |
| LEFT | RIGHT |