Lines Matching refs:lf

35 	Dwarf_LineFile lf;
42 if ((lf = malloc(sizeof(struct _Dwarf_LineFile))) == NULL) {
47 lf->lf_fullpath = NULL;
48 lf->lf_fname = (char *) src;
49 src += strlen(lf->lf_fname) + 1;
50 lf->lf_dirndx = _dwarf_decode_uleb128(&src);
51 if (lf->lf_dirndx > li->li_inclen) {
52 free(lf);
58 if (*lf->lf_fname != '/') {
60 if (lf->lf_dirndx > 0)
61 dirname = li->li_incdirs[lf->lf_dirndx - 1];
63 slen = strlen(dirname) + strlen(lf->lf_fname) + 2;
64 if ((lf->lf_fullpath = malloc(slen)) == NULL) {
65 free(lf);
69 snprintf(lf->lf_fullpath, slen, "%s/%s", dirname,
70 lf->lf_fname);
74 lf->lf_mtime = _dwarf_decode_uleb128(&src);
75 lf->lf_size = _dwarf_decode_uleb128(&src);
76 STAILQ_INSERT_TAIL(&li->li_lflist, lf, lf_next);
258 Dwarf_LineFile lf, tlf;
422 STAILQ_FOREACH_SAFE(lf, &li->li_lflist, lf_next, tlf) {
423 STAILQ_REMOVE(&li->li_lflist, lf, _Dwarf_LineFile, lf_next);
424 if (lf->lf_fullpath)
425 free(lf->lf_fullpath);
426 free(lf);
441 Dwarf_LineFile lf, tlf;
446 STAILQ_FOREACH_SAFE(lf, &li->li_lflist, lf_next, tlf) {
447 STAILQ_REMOVE(&li->li_lflist, lf,
449 if (lf->lf_fullpath)
450 free(lf->lf_fullpath);
451 free(lf);
640 Dwarf_LineFile lf;
709 STAILQ_FOREACH(lf, &li->li_lflist, lf_next) {
710 RCHECK(WRITE_STRING(lf->lf_fname));
711 RCHECK(WRITE_ULEB128(lf->lf_dirndx));
712 RCHECK(WRITE_ULEB128(lf->lf_mtime));
713 RCHECK(WRITE_ULEB128(lf->lf_size));
750 Dwarf_LineFile lf, tlf;
759 STAILQ_FOREACH_SAFE(lf, &li->li_lflist, lf_next, tlf) {
760 STAILQ_REMOVE(&li->li_lflist, lf, _Dwarf_LineFile,
762 if (lf->lf_fname)
763 free(lf->lf_fname);
764 free(lf);