Lines Matching refs:nid
90 nid, err := strconv.Atoi(fields[1])
94 if nid < 0 {
99 if name == "undef" && nid == 0 {
107 if _, ok := nidsSeen[nid]; ok {
108 return nil, 0, withLine(fmt.Errorf("duplicate NID %d", nid))
111 nameToNID[name] = nid
112 nidsSeen[nid] = struct{}{}
114 if nid >= numNIDs {
115 numNIDs = nid + 1
333 nid, ok := nameToNID[obj.name]
335 nid = len(objs.byNID)
339 objs.byNID[nid] = obj
340 objs.nameToNID[obj.name] = nid
365 for nid, obj := range objs.byNID {
369 if _, err := fmt.Fprintf(out, "%s\t\t%d\n", obj.name, nid); err != nil {
474 for nid, obj := range objs.byNID {
485 fmt.Fprintf(&b, "#define NID_%s %d\n", obj.name, nid)
490 if nid == 0 {
610 for nid, obj := range objs.byNID {
612 offsets[nid] = -1
616 offsets[nid] = nextOffset
628 for nid, obj := range objs.byNID {
635 if offset := offsets[nid]; offset >= 0 {
645 for nid, obj := range objs.byNID {
649 nids = append(nids, nid)
654 for _, nid := range nids {
655 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].shortName)
661 for nid, obj := range objs.byNID {
665 nids = append(nids, nid)
670 for _, nid := range nids {
671 fmt.Fprintf(&b, "%d /* %s */,\n", nid, objs.byNID[nid].longName)
677 for nid, obj := range objs.byNID {
681 nids = append(nids, nid)
695 for _, nid := range nids {
696 obj := objs.byNID[nid]
697 fmt.Fprintf(&b, "%d /* ", nid)