Lines Matching defs:tag

44     /* array of event tags, sorted numerically by tag index */
53 static int scanTagLine(char** pData, EventTag* tag, int lineNum);
61 * We create a private mapping because we want to terminate the log tag
124 * The entries are sorted by tag number, so we can do a binary search.
126 const char* android_lookupEventTag(const EventTagMap* map, int tag)
137 cmp = map->tagArray[mid].tagIndex - tag;
139 /* tag is bigger */
142 /* tag is smaller */
164 * Determine whether "c" is a valid tag char.
184 * Crunch through the file, parsing the contents and creating a tag index.
190 /* get a tag count */
197 /* allocate storage for the tag index array */
202 /* parse the file, null-terminating tag strings */
217 * comments, or possibly have a tag entry.
223 * Returns the number of potential tag entries found.
241 /* looks like a tag to me */
245 /* might be leading whitespace before tag num, keep going */
290 /* looks like a tag; scan it out */
305 "%s: unexpected chars (0x%02x) in tag number on line %d\n",
325 * Scan one tag line.
327 * "*pData" should be pointing to the first digit in the tag number. On
329 * tag line (i.e. the character before the start of the next line).
333 static int scanTagLine(char** pData, EventTag* tag, int lineNum)
350 tag->tagIndex = val;
357 "%s: missing tag string on line %d\n", OUT_TAG, lineNum);
361 tag->tagStr = cp;
374 TODO: read the tag description that follows the tag name
380 "%s: invalid tag chars on line %d\n", OUT_TAG, lineNum);
386 //printf("+++ Line %d: got %d '%s'\n", lineNum, tag->tagIndex, tag->tagStr);
402 * Sort the EventTag array so we can do fast lookups by tag index. After
403 * the sort we do a quick check for duplicate tag indices.
415 fprintf(stderr, "%s: duplicate tag entries (%d:%s and %d:%s)\n",
427 * Dump the tag array for debugging.
434 const EventTag* tag = &map->tagArray[i];
435 printf(" %3d: %6d '%s'\n", i, tag->tagIndex, tag->tagStr);