Improve const-correctness in printing API.

Most of the functions in printing.c do not modify their 'document *'
argument, and therefore can declare them as 'const'.
This commit is contained in:
Asher Gordon
2019-12-29 03:31:34 -05:00
committed by Simon Tatham
parent b443a84efe
commit 79a5378b5a
2 changed files with 11 additions and 11 deletions

View File

@ -527,11 +527,11 @@ document *document_new(int pw, int ph, float userscale);
void document_free(document *doc);
void document_add_puzzle(document *doc, const game *game, game_params *par,
game_state *st, game_state *st2);
int document_npages(document *doc);
void document_begin(document *doc, drawing *dr);
void document_end(document *doc, drawing *dr);
void document_print_page(document *doc, drawing *dr, int page_nr);
void document_print(document *doc, drawing *dr);
int document_npages(const document *doc);
void document_begin(const document *doc, drawing *dr);
void document_end(const document *doc, drawing *dr);
void document_print_page(const document *doc, drawing *dr, int page_nr);
void document_print(const document *doc, drawing *dr);
/*
* ps.c