* This routine allocates a new set of integer templates * initialized to hold 0 classes. * @return The integer templates created. * @note Globals: none * @note Exceptions: none * @note History: Fri Feb 8 08:38:51 1991, DSJ, Created. */
| 721 | * @note History: Fri Feb 8 08:38:51 1991, DSJ, Created. |
| 722 | */ |
| 723 | INT_TEMPLATES NewIntTemplates() { |
| 724 | INT_TEMPLATES T; |
| 725 | int i; |
| 726 | |
| 727 | T = (INT_TEMPLATES) Emalloc (sizeof (INT_TEMPLATES_STRUCT)); |
| 728 | T->NumClasses = 0; |
| 729 | T->NumClassPruners = 0; |
| 730 | |
| 731 | for (i = 0; i < MAX_NUM_CLASSES; i++) |
| 732 | ClassForClassId (T, i) = NULL; |
| 733 | |
| 734 | return (T); |
| 735 | } /* NewIntTemplates */ |
| 736 | |
| 737 | |
| 738 | /*---------------------------------------------------------------------------*/ |
no test coverage detected