This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 3adf18b8b3e53178d557cc3873a20cbb5b6b4429
Author: John Bampton <[email protected]>
AuthorDate: Wed Mar 5 01:23:53 2025 +1000

    pre-commit(mixed-line-ending): autofix `.c` files (#327)
    
    (cherry picked from commit 28a22e06cf78ec6401ce9dbba873b39a4e86d10b)
---
 main/sal/osl/os2/debug_printf.c        | 152 ++++++++++++++++-----------------
 main/vcl/os2/source/app/debug_printf.c | 150 ++++++++++++++++----------------
 2 files changed, 151 insertions(+), 151 deletions(-)

diff --git a/main/sal/osl/os2/debug_printf.c b/main/sal/osl/os2/debug_printf.c
index 6cf03a6e5c..d4b9549a6f 100644
--- a/main/sal/osl/os2/debug_printf.c
+++ b/main/sal/osl/os2/debug_printf.c
@@ -1,76 +1,76 @@
-/*************************************************************************
-
-   Copyright 2011 Yuri Dario <[email protected]>
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
- ************************************************************************/
-
-#define INCL_DOS
-#ifdef OS2
-#include <svpm.h>
-#else
-#include <os2.h>
-#endif
-#include <dlfcn.h>
-#include <stdarg.h>
-#include <stdlib.h>
-#ifdef TESTME
-#include <stdio.h>
-#endif
-#include "sal/types.h"
-
-typedef APIRET _PMPRINTF(const char*, ...);
-typedef _PMPRINTF* PMPRINTF;
-
-static void*   hmodPmPrintf = NULL;
-static PMPRINTF        pfnPmPrintf = NULL;
-
-int SAL_DLLPUBLIC_EXPORT debug_printf( const char* format, ...)
-{
-       va_list args;
-       int             cnt;
-
-       if (hmodPmPrintf == NULL) {
-               // try dll loading
-               hmodPmPrintf = dlopen( "PMPRINTF", 0);
-               if (hmodPmPrintf == NULL)
-                       return -1;
-
-               // search function
-               pfnPmPrintf = dlsym(hmodPmPrintf, "PmPrintfVa");
-               if (!pfnPmPrintf)
-                       return -1;
-
-       }
-
-       // function loaded, print data
-       va_start(args, format);
-       cnt = pfnPmPrintf(format, args);
-       va_end(args);
-
-       return cnt;
-}
-
-
-#ifdef TESTME
-int main( void)
-{
-       printf( "Test PMPRINTF.DLL output, check PM window.\n");
-       debug_printf( "Test PMPRINTF.DLL output, check PM window.");
-       debug_printf( "Test PMPRINTF.DLL output: integer %d", 12345);
-       debug_printf( "Test PMPRINTF.DLL output: float %f", 123.45);
-       debug_printf( "Test PMPRINTF.DLL output: string '%s'", "Hello World");
-       exit(0);
-}
-#endif // TESTME
+/*************************************************************************
+
+   Copyright 2011 Yuri Dario <[email protected]>
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ ************************************************************************/
+
+#define INCL_DOS
+#ifdef OS2
+#include <svpm.h>
+#else
+#include <os2.h>
+#endif
+#include <dlfcn.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#ifdef TESTME
+#include <stdio.h>
+#endif
+#include "sal/types.h"
+
+typedef APIRET _PMPRINTF(const char*, ...);
+typedef _PMPRINTF* PMPRINTF;
+
+static void*   hmodPmPrintf = NULL;
+static PMPRINTF        pfnPmPrintf = NULL;
+
+int SAL_DLLPUBLIC_EXPORT debug_printf( const char* format, ...)
+{
+       va_list args;
+       int             cnt;
+
+       if (hmodPmPrintf == NULL) {
+               // try dll loading
+               hmodPmPrintf = dlopen( "PMPRINTF", 0);
+               if (hmodPmPrintf == NULL)
+                       return -1;
+
+               // search function
+               pfnPmPrintf = dlsym(hmodPmPrintf, "PmPrintfVa");
+               if (!pfnPmPrintf)
+                       return -1;
+
+       }
+
+       // function loaded, print data
+       va_start(args, format);
+       cnt = pfnPmPrintf(format, args);
+       va_end(args);
+
+       return cnt;
+}
+
+
+#ifdef TESTME
+int main( void)
+{
+       printf( "Test PMPRINTF.DLL output, check PM window.\n");
+       debug_printf( "Test PMPRINTF.DLL output, check PM window.");
+       debug_printf( "Test PMPRINTF.DLL output: integer %d", 12345);
+       debug_printf( "Test PMPRINTF.DLL output: float %f", 123.45);
+       debug_printf( "Test PMPRINTF.DLL output: string '%s'", "Hello World");
+       exit(0);
+}
+#endif // TESTME
diff --git a/main/vcl/os2/source/app/debug_printf.c 
b/main/vcl/os2/source/app/debug_printf.c
index 2bca746053..307b5df393 100644
--- a/main/vcl/os2/source/app/debug_printf.c
+++ b/main/vcl/os2/source/app/debug_printf.c
@@ -1,75 +1,75 @@
-/*************************************************************************
-
-   Copyright 2011 Yuri Dario <[email protected]>
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
- ************************************************************************/
-
-#define INCL_DOS
-#ifdef OS2
-#include <svpm.h>
-#else
-#include <os2.h>
-#endif
-#include <dlfcn.h>
-#include <stdarg.h>
-#include <stdlib.h>
-#ifdef TESTME
-#include <stdio.h>
-#endif
-
-typedef APIRET _PMPRINTF(const char*, ...);
-typedef _PMPRINTF* PMPRINTF;
-
-static void*   hmodPmPrintf = NULL;
-static PMPRINTF        pfnPmPrintf = NULL;
-
-int _Export debug_printf( const char* format, ...)
-{
-       va_list args;
-       int             cnt;
-
-       if (hmodPmPrintf == NULL) {
-               // try dll loading
-               hmodPmPrintf = dlopen( "PMPRINTF", 0);
-               if (hmodPmPrintf == NULL)
-                       return -1;
-
-               // search function
-               pfnPmPrintf = dlsym(hmodPmPrintf, "PmPrintfVa");
-               if (!pfnPmPrintf)
-                       return -1;
-
-       }
-
-       // function loaded, print data
-       va_start(args, format);
-       cnt = pfnPmPrintf(format, args);
-       va_end(args);
-
-       return cnt;
-}
-
-
-#ifdef TESTME
-int main( void)
-{
-       printf( "Test PMPRINTF.DLL output, check PM window.\n");
-       debug_printf( "Test PMPRINTF.DLL output, check PM window.");
-       debug_printf( "Test PMPRINTF.DLL output: integer %d", 12345);
-       debug_printf( "Test PMPRINTF.DLL output: float %f", 123.45);
-       debug_printf( "Test PMPRINTF.DLL output: string '%s'", "Hello World");
-       exit(0);
-}
-#endif // TESTME
+/*************************************************************************
+
+   Copyright 2011 Yuri Dario <[email protected]>
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+ ************************************************************************/
+
+#define INCL_DOS
+#ifdef OS2
+#include <svpm.h>
+#else
+#include <os2.h>
+#endif
+#include <dlfcn.h>
+#include <stdarg.h>
+#include <stdlib.h>
+#ifdef TESTME
+#include <stdio.h>
+#endif
+
+typedef APIRET _PMPRINTF(const char*, ...);
+typedef _PMPRINTF* PMPRINTF;
+
+static void*   hmodPmPrintf = NULL;
+static PMPRINTF        pfnPmPrintf = NULL;
+
+int _Export debug_printf( const char* format, ...)
+{
+       va_list args;
+       int             cnt;
+
+       if (hmodPmPrintf == NULL) {
+               // try dll loading
+               hmodPmPrintf = dlopen( "PMPRINTF", 0);
+               if (hmodPmPrintf == NULL)
+                       return -1;
+
+               // search function
+               pfnPmPrintf = dlsym(hmodPmPrintf, "PmPrintfVa");
+               if (!pfnPmPrintf)
+                       return -1;
+
+       }
+
+       // function loaded, print data
+       va_start(args, format);
+       cnt = pfnPmPrintf(format, args);
+       va_end(args);
+
+       return cnt;
+}
+
+
+#ifdef TESTME
+int main( void)
+{
+       printf( "Test PMPRINTF.DLL output, check PM window.\n");
+       debug_printf( "Test PMPRINTF.DLL output, check PM window.");
+       debug_printf( "Test PMPRINTF.DLL output: integer %d", 12345);
+       debug_printf( "Test PMPRINTF.DLL output: float %f", 123.45);
+       debug_printf( "Test PMPRINTF.DLL output: string '%s'", "Hello World");
+       exit(0);
+}
+#endif // TESTME

Reply via email to