Lines Matching defs:lf
35 Dwarf_LineFile lf;
43 if ((lf = malloc(sizeof(struct _Dwarf_LineFile))) == NULL) {
48 lf->lf_fullpath = NULL;
49 lf->lf_fname = (char *) src;
50 src += strlen(lf->lf_fname) + 1;
51 lf->lf_dirndx = _dwarf_decode_uleb128(&src);
52 if (lf->lf_dirndx > li->li_inclen) {
53 free(lf);
59 if (*lf->lf_fname != '/') {
60 filepath = open_memstream(&lf->lf_fullpath, &slen);
62 free(lf);
67 if (lf->lf_dirndx > 0)
68 incdir = li->li_incdirs[lf->lf_dirndx - 1];
80 fprintf(filepath, "%s", lf->lf_fname);
82 free(lf);
88 lf->lf_mtime = _dwarf_decode_uleb128(&src);
89 lf->lf_size = _dwarf_decode_uleb128(&src);
90 STAILQ_INSERT_TAIL(&li->li_lflist, lf, lf_next);
272 Dwarf_LineFile lf, tlf;
436 STAILQ_FOREACH_SAFE(lf, &li->li_lflist, lf_next, tlf) {
437 STAILQ_REMOVE(&li->li_lflist, lf, _Dwarf_LineFile, lf_next);
438 if (lf->lf_fullpath)
439 free(lf->lf_fullpath);
440 free(lf);
455 Dwarf_LineFile lf, tlf;
460 STAILQ_FOREACH_SAFE(lf, &li->li_lflist, lf_next, tlf) {
461 STAILQ_REMOVE(&li->li_lflist, lf,
463 if (lf->lf_fullpath)
464 free(lf->lf_fullpath);
465 free(lf);
654 Dwarf_LineFile lf;
723 STAILQ_FOREACH(lf, &li->li_lflist, lf_next) {
724 RCHECK(WRITE_STRING(lf->lf_fname));
725 RCHECK(WRITE_ULEB128(lf->lf_dirndx));
726 RCHECK(WRITE_ULEB128(lf->lf_mtime));
727 RCHECK(WRITE_ULEB128(lf->lf_size));
764 Dwarf_LineFile lf, tlf;
773 STAILQ_FOREACH_SAFE(lf, &li->li_lflist, lf_next, tlf) {
774 STAILQ_REMOVE(&li->li_lflist, lf, _Dwarf_LineFile,
776 if (lf->lf_fname)
777 free(lf->lf_fname);
778 free(lf);