From 88e83272a884b3acf62005a13d352781882f5cff Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 11 2016 04:35:30 +0000 Subject: API redesign 3/10: pe_common_ctx: protect the secondary context structures against direct modification. --- diff --git a/include/perk/perk.h b/include/perk/perk.h index de2ee57..e2001e1 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -121,10 +121,10 @@ struct pe_common_ctx { const char * srcdir; const char * dstdir; const char * tmpdir; - struct pe_symbol_ctx * symctx; - struct pe_output_ctx * outctx; - struct pe_linker_ctx * lnkctx; - struct pe_server_ctx * srvctx; + const struct pe_symbol_ctx * symctx; + const struct pe_output_ctx * outctx; + const struct pe_linker_ctx * lnkctx; + const struct pe_server_ctx * srvctx; }; struct pe_driver_ctx {