** Initialize, load and free a single join */
| 639 | ** Initialize, load and free a single join |
| 640 | */ |
| 641 | void initJoin(joinObj *join) |
| 642 | { |
| 643 | join->numitems = 0; |
| 644 | |
| 645 | join->name = NULL; /* unique join name, used for variable substitution */ |
| 646 | |
| 647 | join->items = NULL; /* array to hold item names for the joined table */ |
| 648 | join->values = NULL; /* arrays of strings to holds one record worth of data */ |
| 649 | |
| 650 | join->table = NULL; |
| 651 | |
| 652 | join->joininfo = NULL; |
| 653 | |
| 654 | join->from = NULL; /* join items */ |
| 655 | join->to = NULL; |
| 656 | |
| 657 | join->header = NULL; |
| 658 | join->template = NULL; /* only html type templates are supported */ |
| 659 | join->footer = NULL; |
| 660 | |
| 661 | join->type = MS_JOIN_ONE_TO_ONE; |
| 662 | |
| 663 | join->connection = NULL; |
| 664 | join->connectiontype = MS_DB_XBASE; |
| 665 | } |
| 666 | |
| 667 | void freeJoin(joinObj *join) |
| 668 | { |
no outgoing calls
no test coverage detected