libcm is a C development framework with an emphasis on audio signal processing applications.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

cmCtx.c 725B

123456789101112131415161718192021222324
  1. //| Copyright: (C) 2009-2020 Kevin Larke <contact AT larke DOT org>
  2. //| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
  3. #include "cmPrefix.h"
  4. #include "cmGlobal.h"
  5. #include "cmRpt.h"
  6. #include "cmErr.h"
  7. #include "cmCtx.h"
  8. void cmCtxSetup(
  9. cmCtx_t* ctx,
  10. const cmChar_t* title,
  11. cmRptPrintFunc_t prtFunc,
  12. cmRptPrintFunc_t errFunc,
  13. void* cbPtr,
  14. unsigned guardByteCnt,
  15. unsigned alignByteCnt,
  16. unsigned mmFlags )
  17. {
  18. cmRptSetup(&ctx->rpt,prtFunc,errFunc,cbPtr);
  19. cmErrSetup(&ctx->err,&ctx->rpt,title);
  20. ctx->guardByteCnt = guardByteCnt;
  21. ctx->alignByteCnt = alignByteCnt;
  22. ctx->mmFlags = mmFlags;
  23. }