@@ -296,15 +296,15 @@ func (p *Package) guessKinds(f *File) []*Name {
296
296
// For each name, we generate these lines, where xxx is the index in toSniff plus one.
297
297
//
298
298
// #line xxx "not-declared"
299
- // void __cgo_f_xxx_1(void) { __typeof__(name) *__cgo_undefined__ ; }
299
+ // void __cgo_f_xxx_1(void) { __typeof__(name) *__cgo_undefined__1 ; }
300
300
// #line xxx "not-type"
301
- // void __cgo_f_xxx_2(void) { name *__cgo_undefined__ ; }
301
+ // void __cgo_f_xxx_2(void) { name *__cgo_undefined__2 ; }
302
302
// #line xxx "not-int-const"
303
- // void __cgo_f_xxx_3(void) { enum { __cgo_undefined__ = (name)*1 }; }
303
+ // void __cgo_f_xxx_3(void) { enum { __cgo_undefined__3 = (name)*1 }; }
304
304
// #line xxx "not-num-const"
305
- // void __cgo_f_xxx_4(void) { static const double x = (name); }
305
+ // void __cgo_f_xxx_4(void) { static const double __cgo_undefined__4 = (name); }
306
306
// #line xxx "not-str-lit"
307
- // void __cgo_f_xxx_5(void) { static const char x [] = (name); }
307
+ // void __cgo_f_xxx_5(void) { static const char __cgo_undefined__5 [] = (name); }
308
308
// #line xxx "not-signed-int-const"
309
309
// #if 0 < -(name)
310
310
// #line xxx "not-signed-int-const"
@@ -327,15 +327,15 @@ func (p *Package) guessKinds(f *File) []*Name {
327
327
328
328
for i , n := range names {
329
329
fmt .Fprintf (& b , "#line %d \" not-declared\" \n " +
330
- "void __cgo_f_%d_1(void) { __typeof__(%s) *__cgo_undefined__ ; }\n " +
330
+ "void __cgo_f_%d_1(void) { __typeof__(%s) *__cgo_undefined__1 ; }\n " +
331
331
"#line %d \" not-type\" \n " +
332
- "void __cgo_f_%d_2(void) { %s *__cgo_undefined__ ; }\n " +
332
+ "void __cgo_f_%d_2(void) { %s *__cgo_undefined__2 ; }\n " +
333
333
"#line %d \" not-int-const\" \n " +
334
- "void __cgo_f_%d_3(void) { enum { __cgo_undefined__ = (%s)*1 }; }\n " +
334
+ "void __cgo_f_%d_3(void) { enum { __cgo_undefined__3 = (%s)*1 }; }\n " +
335
335
"#line %d \" not-num-const\" \n " +
336
- "void __cgo_f_%d_4(void) { static const double x = (%s); }\n " +
336
+ "void __cgo_f_%d_4(void) { static const double __cgo_undefined__4 = (%s); }\n " +
337
337
"#line %d \" not-str-lit\" \n " +
338
- "void __cgo_f_%d_5(void) { static const char s [] = (%s); }\n " +
338
+ "void __cgo_f_%d_5(void) { static const char __cgo_undefined__5 [] = (%s); }\n " +
339
339
"#line %d \" not-signed-int-const\" \n " +
340
340
"#if 0 < (%s)\n " +
341
341
"#line %d \" not-signed-int-const\" \n " +
0 commit comments