Kaydet (Commit) 920447d4 authored tarafından Noel Grandin's avatar Noel Grandin

tdf#114952 filep is still used in soltools/mkdepend/parse.c

regression from

    commit 18f51314
    Date:   Tue Jun 20 19:54:23 2017 +0200
    loplugin:unusedfields store..svl

somewhat tricky to reproduce on linux, I had to do

    make soltools CPPFLAGS=-DDEBUG

Change-Id: I4b1989efc02b9e864432b96cf4f71a29e581bcdb
Reviewed-on: https://gerrit.libreoffice.org/47755Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 307b16c7
......@@ -34,7 +34,7 @@ char *hash_lookup( char *symbol, struct symhash *symbols );
void hash_undefine( char *symbol, struct symhash *symbols );
int gobble( struct filepointer *filep, struct inclist *file,
struct inclist *file_red, struct symhash *symbols );
int deftype ( char *line, struct inclist *file,
int deftype ( char *line, struct filepointer *filep, struct inclist *file,
int parse_it, struct symhash *symbols);
int zero_value(char const *exp, struct symhash *symbols);
......@@ -47,7 +47,7 @@ int find_includes(struct filepointer *filep, struct inclist *file, struct inclis
boolean recfailOK;
while ((line = get_line(filep))) {
switch(type = deftype(line, file, TRUE, symbols)) {
switch(type = deftype(line, filep, file, TRUE, symbols)) {
case IF:
doif:
type = find_includes(filep, file,
......@@ -170,7 +170,7 @@ int gobble(struct filepointer *filep,
int type;
while ((line = get_line(filep))) {
switch(type = deftype(line, file, FALSE, symbols)) {
switch(type = deftype(line, filep, file, FALSE, symbols)) {
case IF:
case IFFALSE:
case IFGUESSFALSE:
......@@ -215,12 +215,12 @@ int gobble(struct filepointer *filep,
/*
* Decide what type of # directive this line is.
*/
int deftype (char *line, struct inclist *file, int parse_it, struct symhash *symbols)
int deftype (char *line, struct filepointer *filep, struct inclist *file, int parse_it, struct symhash *symbols)
{
char *p;
char *directive, savechar;
int ret;
(void)filep;
/*
* Parse the directive...
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment