offsetof 55 include/libc.h #ifndef offsetof offsetof 27 misc/cgo/testcdefs/main.c if(sizeof(t.array1) != sizeof(o.array1) || offsetof(CdefsTest, array1[0]) != offsetof(CdefsOrig, array1[0])) { offsetof 28 misc/cgo/testcdefs/main.c runtime·printf("array1: size, offset = %d, %d, want %d, %d\n", sizeof(t.array1), offsetof(CdefsTest, array1[0]), sizeof(o.array1), offsetof(CdefsOrig, array1[0])); offsetof 31 misc/cgo/testcdefs/main.c if(sizeof(t.array2) != sizeof(o.array2) || offsetof(CdefsTest, array2[0][0]) != offsetof(CdefsOrig, array2[0][0])) { offsetof 32 misc/cgo/testcdefs/main.c runtime·printf("array2: size, offset = %d, %d, want %d, %d\n", sizeof(t.array2), offsetof(CdefsTest, array2[0][0]), sizeof(o.array2), offsetof(CdefsOrig, array2[0][0])); offsetof 35 misc/cgo/testcdefs/main.c if(sizeof(t.array3) != sizeof(o.array3) || offsetof(CdefsTest, array3[0]) != offsetof(CdefsOrig, array3[0])) { offsetof 36 misc/cgo/testcdefs/main.c runtime·printf("array3: size, offset = %d, %d, want %d, %d\n", sizeof(t.array3), offsetof(CdefsTest, array3[0]), sizeof(o.array3), offsetof(CdefsOrig, array3[0])); offsetof 39 misc/cgo/testcdefs/main.c if(sizeof(t.array4) != sizeof(o.array4) || offsetof(CdefsTest, array4[0][0]) != offsetof(CdefsOrig, array4[0][0])) { offsetof 40 misc/cgo/testcdefs/main.c runtime·printf("array4: size, offset = %d, %d, want %d, %d\n", sizeof(t.array4), offsetof(CdefsTest, array4[0][0]), sizeof(o.array4), offsetof(CdefsOrig, array4[0][0])); offsetof 43 misc/cgo/testcdefs/main.c if(sizeof(t.array5) != sizeof(o.array5) || offsetof(CdefsTest, array5[0][0]) != offsetof(CdefsOrig, array5[0][0])) { offsetof 44 misc/cgo/testcdefs/main.c runtime·printf("array5: size, offset = %d, %d, want %d, %d\n", sizeof(t.array5), offsetof(CdefsTest, array5[0][0]), sizeof(o.array5), offsetof(CdefsOrig, array5[0][0])); offsetof 814 src/cmd/ld/data.c datap = listsort(datap, datcmp, offsetof(LSym, next)); offsetof 617 src/cmd/ld/ldelf.c s->sub = listsort(s->sub, valuecmp, offsetof(LSym, sub)); offsetof 658 src/cmd/ld/ldmacho.c s->sub = listsort(s->sub, valuecmp, offsetof(LSym, sub)); offsetof 382 src/cmd/ld/ldpe.c s->sub = listsort(s->sub, valuecmp, offsetof(LSym, sub)); offsetof 224 src/pkg/runtime/runtime.c if(offsetof(struct y1, y) != 1) runtime·throw("bad offsetof y1.y");