This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 28a22e06cf pre-commit(mixed-line-ending): autofix `.c` files (#327)
28a22e06cf is described below
commit 28a22e06cf78ec6401ce9dbba873b39a4e86d10b
Author: John Bampton <[email protected]>
AuthorDate: Wed Mar 5 01:23:53 2025 +1000
pre-commit(mixed-line-ending): autofix `.c` files (#327)
---
.pre-commit-config.yaml | 2 +-
main/sal/osl/os2/debug_printf.c | 152 ++++++++++++++++-----------------
main/vcl/os2/source/app/debug_printf.c | 150 ++++++++++++++++----------------
3 files changed, 152 insertions(+), 152 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8ef972f979..5c5d5badc3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -36,7 +36,7 @@ repos:
files:
(m|M)akefile$|\.(bat|c|cxx|dxp|h|hrc|hxx|idl|in|ini|java|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
- id: fix-byte-order-marker
- id: mixed-line-ending
- files:
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(dxp|h|hrc|idl|in|ini|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
+ files:
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(c|dxp|h|hrc|idl|in|ini|md|mk|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
- id: trailing-whitespace
files: \.(bat|ini|pl|rc|sh|xcs|xdl|xmi|xsd|ya?ml)$
- repo: https://github.com/codespell-project/codespell
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