unoinfo.cxx (a96a8d21) unoinfo.cxx (c79a0cc3)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 52 unchanged lines hidden (view full) ---

61 wchar_t const * backBegin, std::size_t backLength)
62{
63 wchar_t path[MAX_PATH];
64 wchar_t * end = tools::buildPath(
65 path, frontBegin, frontEnd, backBegin, backLength);
66 if (end == NULL) {
67 exit(EXIT_FAILURE);
68 }
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 52 unchanged lines hidden (view full) ---

61 wchar_t const * backBegin, std::size_t backLength)
62{
63 wchar_t path[MAX_PATH];
64 wchar_t * end = tools::buildPath(
65 path, frontBegin, frontEnd, backBegin, backLength);
66 if (end == NULL) {
67 exit(EXIT_FAILURE);
68 }
69 fprintf(stdout, "%S", path);
69 size_t nWideLen = wcslen(path);
70 fwrite( path, sizeof(wchar_t), nWideLen, stdout);
70}
71
72}
73
74#ifdef __MINGW32__
75int main(int argc, char ** argv, char **) {
76 if (argc == 2 && strcmp(argv[1], "c++") == 0) {
77#else

--- 20 unchanged lines hidden (view full) ---

98 wchar_t * pathEnd = getBrandPath(path);
99 writePath(path, pathEnd, MY_STRING(L""));
100 if (pathEnd == NULL) {
101 exit(EXIT_FAILURE);
102 }
103 writeNull();
104 writePath(path, pathEnd, MY_STRING(L"classes\\unoil.jar"));
105 writeNull();
71}
72
73}
74
75#ifdef __MINGW32__
76int main(int argc, char ** argv, char **) {
77 if (argc == 2 && strcmp(argv[1], "c++") == 0) {
78#else

--- 20 unchanged lines hidden (view full) ---

99 wchar_t * pathEnd = getBrandPath(path);
100 writePath(path, pathEnd, MY_STRING(L""));
101 if (pathEnd == NULL) {
102 exit(EXIT_FAILURE);
103 }
104 writeNull();
105 writePath(path, pathEnd, MY_STRING(L"classes\\unoil.jar"));
106 writeNull();
106 writePath(path, pathEnd, MY_STRING(L"\classes\\ridl.jar"));
107 writePath(path, pathEnd, MY_STRING(L"classes\\ridl.jar"));
107 writeNull();
108 writePath(path, pathEnd, MY_STRING(L"classes\\jurt.jar"));
109 writeNull();
110 writePath(path, pathEnd, MY_STRING(L"classes\\juh.jar"));
111 } else {
112 exit(EXIT_FAILURE);
113 }
114 exit(EXIT_SUCCESS);
115}
108 writeNull();
109 writePath(path, pathEnd, MY_STRING(L"classes\\jurt.jar"));
110 writeNull();
111 writePath(path, pathEnd, MY_STRING(L"classes\\juh.jar"));
112 } else {
113 exit(EXIT_FAILURE);
114 }
115 exit(EXIT_SUCCESS);
116}