praat_library.cpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* praat_library.cpp
  2. *
  3. * Copyright (C) 2016,2018 Paul Boersma
  4. *
  5. * This code is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This code is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. * See the GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include "praatP.h"
  19. #include "praat_version.h"
  20. void praat_library_createC (bool isInHeaderFile, bool includeCreateAPI, bool includeReadAPI, bool includeSaveAPI,
  21. bool includeQueryAPI, bool includeModifyAPI, bool includeToAPI,
  22. bool includeRecordAPI, bool includePlayAPI,
  23. bool includeDrawAPI, bool includeHelpAPI, bool includeWindowAPI,
  24. bool /* includeDemoAPI */)
  25. {
  26. MelderInfo_open ();
  27. MelderInfo_writeLine (U"/* praatlib.h");
  28. MelderInfo_writeLine (U" *");
  29. MelderInfo_writeLine (U" * Copyright (C) 2016-2018 Paul Boersma and David Weenink");
  30. MelderInfo_writeLine (U" *");
  31. MelderInfo_writeLine (U" * This code is free software; you can redistribute it and/or modify");
  32. MelderInfo_writeLine (U" * it under the terms of the GNU General Public License as published by");
  33. MelderInfo_writeLine (U" * the Free Software Foundation; either version 3 of the License, or (at");
  34. MelderInfo_writeLine (U" * your option) any later version.");
  35. MelderInfo_writeLine (U" *");
  36. MelderInfo_writeLine (U" * This code is distributed in the hope that it will be useful, but");
  37. MelderInfo_writeLine (U" * WITHOUT ANY WARRANTY; without even the implied warranty of");
  38. MelderInfo_writeLine (U" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.");
  39. MelderInfo_writeLine (U" * See the GNU General Public License for more details.");
  40. MelderInfo_writeLine (U" *");
  41. MelderInfo_writeLine (U" * You should have received a copy of the GNU General Public License");
  42. MelderInfo_writeLine (U" * along with this work. If not, see <http://www.gnu.org/licenses/>.");
  43. MelderInfo_writeLine (U" */");
  44. #define xstr(s) str(s)
  45. #define str(s) #s
  46. MelderInfo_writeLine (U"/* C API, version ", U"" xstr (PRAAT_MONTH), U" ", PRAAT_DAY, U", ", PRAAT_YEAR, U" */");
  47. praat_menuCommands_writeC (true, includeCreateAPI, includeReadAPI,
  48. includeRecordAPI, includePlayAPI, includeDrawAPI, includeHelpAPI, includeWindowAPI);
  49. praat_actions_writeC (true, includeSaveAPI,
  50. includeQueryAPI, includeModifyAPI, includeToAPI,
  51. includePlayAPI, includeDrawAPI, includeHelpAPI, includeWindowAPI);
  52. MelderInfo_close ();
  53. }
  54. /* End of file praat_statistics.cpp */