| 553 | |
| 554 | |
| 555 | void Service_Participant::parse_env() |
| 556 | { |
| 557 | #if defined (ACE_WIN32) |
| 558 | LPTCH env_strings = GetEnvironmentStrings(); |
| 559 | |
| 560 | // If the returned pointer is NULL, exit. |
| 561 | if (!env_strings) { |
| 562 | if (log_level >= LogLevel::Error) { |
| 563 | ACE_ERROR((LM_ERROR, |
| 564 | "(%P|%t) ERROR: Service_Participant::parse_env: Could not get environment strings\n")); |
| 565 | } |
| 566 | return; |
| 567 | } |
| 568 | |
| 569 | LPTSTR env_string = (LPTSTR) env_strings; |
| 570 | |
| 571 | while (*env_string) { |
| 572 | parse_env(ACE_TEXT_ALWAYS_CHAR(env_string)); |
| 573 | env_string += lstrlen(env_string) + 1; |
| 574 | } |
| 575 | FreeEnvironmentStrings(env_strings); |
| 576 | |
| 577 | #else |
| 578 | |
| 579 | for (char** e = environ; *e; ++e) { |
| 580 | parse_env(*e); |
| 581 | } |
| 582 | |
| 583 | #endif |
| 584 | } |
| 585 | |
| 586 | void Service_Participant::parse_env(const String& p) |
| 587 | { |
nothing calls this directly
no test coverage detected