diff options
author | Leo Ufimtsev | 2016-08-26 20:59:45 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-09-08 07:19:58 +0000 |
commit | 0302f7be79e97cd7830c11c0d6e8ababa18167b6 (patch) | |
tree | f9e35e911524b326fa6d5cbd6e0138fea86abf6e /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa | |
parent | 064b7951f64dfa7c0006d42ed2edc3782eb005dd (diff) | |
download | eclipse.platform.swt-0302f7be79e97cd7830c11c0d6e8ababa18167b6.tar.gz eclipse.platform.swt-0302f7be79e97cd7830c11c0d6e8ababa18167b6.tar.xz eclipse.platform.swt-0302f7be79e97cd7830c11c0d6e8ababa18167b6.zip |
Bug 500363: Native auto generated files should mention that they are
auto generated
When doing work with native files, it's not clear as to which files are
auto generated and which files are written manually. Especially when you
are just starting to work with native C code.
I added a method to JNIGenerator.java that inserts a note to every
generated file about the file being auto-generated.
[Update Patchset 3]
- The updated patchset updates contains auto-generated files for all
platforms.
- Fixed typo and added name of generator class.
Change-Id: I7fdac972eb2cb829316d0e970601ed4c87e6008b
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=500363
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa')
5 files changed, 20 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c index adcb6f8f79..6d13033cb9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,9 @@ * IBM Corporation - initial API and implementation *******************************************************************************/ +/* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */ +/* DO NOT EDIT - your changes will be lost. */ + #include "swt.h" #include "os_structs.h" #include "os_stats.h" diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c index 0bea38227f..307695a9b1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,9 @@ * IBM Corporation - initial API and implementation *******************************************************************************/ +/* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */ +/* DO NOT EDIT - your changes will be lost. */ + #include "swt.h" #include "os_stats.h" diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h index dabf7e2a72..546b8b682b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,9 @@ * IBM Corporation - initial API and implementation *******************************************************************************/ +/* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */ +/* DO NOT EDIT - your changes will be lost. */ + #ifdef NATIVE_STATS extern int OS_nativeFunctionCount; extern int OS_nativeFunctionCallCount[]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.c index b4eb10de59..67573735af 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2010 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,9 @@ * IBM Corporation - initial API and implementation *******************************************************************************/ +/* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */ +/* DO NOT EDIT - your changes will be lost. */ + #include "swt.h" #include "os_structs.h" diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.h b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.h index 101e37531c..bc159429d8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_structs.h @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2010 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,9 @@ * IBM Corporation - initial API and implementation *******************************************************************************/ +/* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */ +/* DO NOT EDIT - your changes will be lost. */ + #include "os.h" #ifndef NO_CFRange |