Lines Matching refs:objs

196 	objs := &objects{
201 objs.byNID[0] = object{
208 objs.nameToNID["undef"] = 0
335 nid = len(objs.byNID)
336 objs.byNID = append(objs.byNID, object{})
339 objs.byNID[nid] = obj
340 objs.nameToNID[obj.name] = nid
350 return objs, nil
353 func writeNumbers(path string, objs *objects) error {
360 for nid, obj := range objs.byNID {
383 func writeHeader(path string, objs *objects) error {
469 for nid, obj := range objs.byNID {
523 objs *objects member
527 func (a nidSorter) obj(i int) object { return a.objs.byNID[a.nids[i]] }
532 func sortNIDs(nids []int, objs *objects, cmp func(a, b object) bool) {
533 sort.Sort(&nidSorter{nids, objs, cmp})
536 func writeData(path string, objs *objects) error {
599 fmt.Fprintf(&b, "#define NUM_NID %d\n", len(objs.byNID))
603 offsets := make([]int, len(objs.byNID))
605 for nid, obj := range objs.byNID {
623 for nid, obj := range objs.byNID {
640 for nid, obj := range objs.byNID {
646 sortNIDs(nids, objs, func(a, b object) bool { return a.shortName < b.shortName })
650 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].shortName)
656 for nid, obj := range objs.byNID {
662 sortNIDs(nids, objs, func(a, b object) bool { return a.longName < b.longName })
666 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].longName)
672 for nid, obj := range objs.byNID {
678 sortNIDs(nids, objs, func(a, b object) bool {
691 obj := objs.byNID[nid]
712 objs, err := readObjects("obj_mac.num", "objects.txt")
718 if err := writeNumbers("obj_mac.num", objs); err != nil {
723 if err := writeHeader("../../include/openssl/nid.h", objs); err != nil {
728 if err := writeData("obj_dat.h", objs); err != nil {