dstep icon indicating copy to clipboard operation
dstep copied to clipboard

inline functions

Open russel opened this issue 6 years ago • 1 comments

In the C header file is:

static inline void dvb_file_free(struct dvb_file *dvb_file)
{
        struct dvb_entry *entry = dvb_file->first_entry, *next;
        while (entry) {
                next = entry->next;
                if (entry->channel)
                        free(entry->channel);
                if (entry->vchannel)
                        free(entry->vchannel);
                if (entry->location)
                        free(entry->location);
                if (entry->video_pid)
                        free(entry->video_pid);
                if (entry->audio_pid)
                        free(entry->audio_pid);
                if (entry->other_el_pid)
                        free(entry->other_el_pid);
                if (entry->lnb)
                        free(entry->lnb);
                free(entry);
                entry = next;
        }
        free(dvb_file);
}

this gets translated by DStep to:

void dvb_file_free (dvb_file* dvb_file);

which is understandale. The problem is that the function is not compiled into the shared object so there is no symbol to refer to.

russel avatar Mar 23 '18 15:03 russel

While not impossible, I think it would require quite a lot of work to support inline functions. As a workaround I would recommend translating this function manually and use the --skip flag.

jacob-carlborg avatar Mar 24 '18 08:03 jacob-carlborg