* @brief Allocates a new SYMBOL and returns the reference to it * * @return PSYMBOL */
| 3663 | * @return PSYMBOL |
| 3664 | */ |
| 3665 | PSYMBOL |
| 3666 | NewSymbol(void) |
| 3667 | { |
| 3668 | PSYMBOL Symbol; |
| 3669 | Symbol = (PSYMBOL)malloc(sizeof(SYMBOL)); |
| 3670 | |
| 3671 | if (Symbol == NULL) |
| 3672 | { |
| 3673 | // |
| 3674 | // There was an error allocating buffer |
| 3675 | // |
| 3676 | return NULL; |
| 3677 | } |
| 3678 | |
| 3679 | Symbol->Value = 0; |
| 3680 | Symbol->Len = 0; |
| 3681 | Symbol->Type = 0; |
| 3682 | return Symbol; |
| 3683 | } |
| 3684 | |
| 3685 | /** |
| 3686 | * @brief Allocates a new SYMBOL with string type and returns the reference to it |
no outgoing calls
no test coverage detected