Bläddra i källkod

Initial Commit

Benoit Sida 6 år sedan
incheckning
f8e382edaf

+ 232
- 0
Mario Sokoban.xcodeproj/project.pbxproj Visa fil

1
+// !$*UTF8*$!
2
+{
3
+	archiveVersion = 1;
4
+	classes = {
5
+	};
6
+	objectVersion = 46;
7
+	objects = {
8
+
9
+/* Begin PBXBuildFile section */
10
+		6AA6E9CB18AF75B800DBBD19 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 6AA6E9CA18AF75B800DBBD19 /* main.c */; };
11
+		6AA6E9CD18AF75B800DBBD19 /* Mario_Sokoban.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6AA6E9CC18AF75B800DBBD19 /* Mario_Sokoban.1 */; };
12
+/* End PBXBuildFile section */
13
+
14
+/* Begin PBXCopyFilesBuildPhase section */
15
+		6AA6E9C518AF75B800DBBD19 /* CopyFiles */ = {
16
+			isa = PBXCopyFilesBuildPhase;
17
+			buildActionMask = 2147483647;
18
+			dstPath = /usr/share/man/man1/;
19
+			dstSubfolderSpec = 0;
20
+			files = (
21
+				6AA6E9CD18AF75B800DBBD19 /* Mario_Sokoban.1 in CopyFiles */,
22
+			);
23
+			runOnlyForDeploymentPostprocessing = 1;
24
+		};
25
+/* End PBXCopyFilesBuildPhase section */
26
+
27
+/* Begin PBXFileReference section */
28
+		6AA6E9C718AF75B800DBBD19 /* Mario Sokoban */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "Mario Sokoban"; sourceTree = BUILT_PRODUCTS_DIR; };
29
+		6AA6E9CA18AF75B800DBBD19 /* main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
30
+		6AA6E9CC18AF75B800DBBD19 /* Mario_Sokoban.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = Mario_Sokoban.1; sourceTree = "<group>"; };
31
+/* End PBXFileReference section */
32
+
33
+/* Begin PBXFrameworksBuildPhase section */
34
+		6AA6E9C418AF75B800DBBD19 /* Frameworks */ = {
35
+			isa = PBXFrameworksBuildPhase;
36
+			buildActionMask = 2147483647;
37
+			files = (
38
+			);
39
+			runOnlyForDeploymentPostprocessing = 0;
40
+		};
41
+/* End PBXFrameworksBuildPhase section */
42
+
43
+/* Begin PBXGroup section */
44
+		6AA6E9BE18AF75B800DBBD19 = {
45
+			isa = PBXGroup;
46
+			children = (
47
+				6AA6E9C918AF75B800DBBD19 /* Mario Sokoban */,
48
+				6AA6E9C818AF75B800DBBD19 /* Products */,
49
+			);
50
+			sourceTree = "<group>";
51
+		};
52
+		6AA6E9C818AF75B800DBBD19 /* Products */ = {
53
+			isa = PBXGroup;
54
+			children = (
55
+				6AA6E9C718AF75B800DBBD19 /* Mario Sokoban */,
56
+			);
57
+			name = Products;
58
+			sourceTree = "<group>";
59
+		};
60
+		6AA6E9C918AF75B800DBBD19 /* Mario Sokoban */ = {
61
+			isa = PBXGroup;
62
+			children = (
63
+				6AA6E9CA18AF75B800DBBD19 /* main.c */,
64
+				6AA6E9CC18AF75B800DBBD19 /* Mario_Sokoban.1 */,
65
+			);
66
+			path = "Mario Sokoban";
67
+			sourceTree = "<group>";
68
+		};
69
+/* End PBXGroup section */
70
+
71
+/* Begin PBXNativeTarget section */
72
+		6AA6E9C618AF75B800DBBD19 /* Mario Sokoban */ = {
73
+			isa = PBXNativeTarget;
74
+			buildConfigurationList = 6AA6E9D018AF75B800DBBD19 /* Build configuration list for PBXNativeTarget "Mario Sokoban" */;
75
+			buildPhases = (
76
+				6AA6E9C318AF75B800DBBD19 /* Sources */,
77
+				6AA6E9C418AF75B800DBBD19 /* Frameworks */,
78
+				6AA6E9C518AF75B800DBBD19 /* CopyFiles */,
79
+			);
80
+			buildRules = (
81
+			);
82
+			dependencies = (
83
+			);
84
+			name = "Mario Sokoban";
85
+			productName = "Mario Sokoban";
86
+			productReference = 6AA6E9C718AF75B800DBBD19 /* Mario Sokoban */;
87
+			productType = "com.apple.product-type.tool";
88
+		};
89
+/* End PBXNativeTarget section */
90
+
91
+/* Begin PBXProject section */
92
+		6AA6E9BF18AF75B800DBBD19 /* Project object */ = {
93
+			isa = PBXProject;
94
+			attributes = {
95
+				LastUpgradeCheck = 0500;
96
+				ORGANIZATIONNAME = "Benoit Sida";
97
+			};
98
+			buildConfigurationList = 6AA6E9C218AF75B800DBBD19 /* Build configuration list for PBXProject "Mario Sokoban" */;
99
+			compatibilityVersion = "Xcode 3.2";
100
+			developmentRegion = English;
101
+			hasScannedForEncodings = 0;
102
+			knownRegions = (
103
+				en,
104
+			);
105
+			mainGroup = 6AA6E9BE18AF75B800DBBD19;
106
+			productRefGroup = 6AA6E9C818AF75B800DBBD19 /* Products */;
107
+			projectDirPath = "";
108
+			projectRoot = "";
109
+			targets = (
110
+				6AA6E9C618AF75B800DBBD19 /* Mario Sokoban */,
111
+			);
112
+		};
113
+/* End PBXProject section */
114
+
115
+/* Begin PBXSourcesBuildPhase section */
116
+		6AA6E9C318AF75B800DBBD19 /* Sources */ = {
117
+			isa = PBXSourcesBuildPhase;
118
+			buildActionMask = 2147483647;
119
+			files = (
120
+				6AA6E9CB18AF75B800DBBD19 /* main.c in Sources */,
121
+			);
122
+			runOnlyForDeploymentPostprocessing = 0;
123
+		};
124
+/* End PBXSourcesBuildPhase section */
125
+
126
+/* Begin XCBuildConfiguration section */
127
+		6AA6E9CE18AF75B800DBBD19 /* Debug */ = {
128
+			isa = XCBuildConfiguration;
129
+			buildSettings = {
130
+				ALWAYS_SEARCH_USER_PATHS = NO;
131
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
132
+				CLANG_CXX_LIBRARY = "libc++";
133
+				CLANG_ENABLE_OBJC_ARC = YES;
134
+				CLANG_WARN_BOOL_CONVERSION = YES;
135
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
136
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
137
+				CLANG_WARN_EMPTY_BODY = YES;
138
+				CLANG_WARN_ENUM_CONVERSION = YES;
139
+				CLANG_WARN_INT_CONVERSION = YES;
140
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
141
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
142
+				COPY_PHASE_STRIP = NO;
143
+				GCC_C_LANGUAGE_STANDARD = gnu99;
144
+				GCC_DYNAMIC_NO_PIC = NO;
145
+				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
146
+				GCC_OPTIMIZATION_LEVEL = 0;
147
+				GCC_PREPROCESSOR_DEFINITIONS = (
148
+					"DEBUG=1",
149
+					"$(inherited)",
150
+				);
151
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
152
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
153
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
154
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
155
+				GCC_WARN_UNINITIALIZED_AUTOS = YES;
156
+				GCC_WARN_UNUSED_FUNCTION = YES;
157
+				GCC_WARN_UNUSED_VARIABLE = YES;
158
+				MACOSX_DEPLOYMENT_TARGET = 10.9;
159
+				ONLY_ACTIVE_ARCH = YES;
160
+				SDKROOT = macosx;
161
+			};
162
+			name = Debug;
163
+		};
164
+		6AA6E9CF18AF75B800DBBD19 /* Release */ = {
165
+			isa = XCBuildConfiguration;
166
+			buildSettings = {
167
+				ALWAYS_SEARCH_USER_PATHS = NO;
168
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
169
+				CLANG_CXX_LIBRARY = "libc++";
170
+				CLANG_ENABLE_OBJC_ARC = YES;
171
+				CLANG_WARN_BOOL_CONVERSION = YES;
172
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
173
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
174
+				CLANG_WARN_EMPTY_BODY = YES;
175
+				CLANG_WARN_ENUM_CONVERSION = YES;
176
+				CLANG_WARN_INT_CONVERSION = YES;
177
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
178
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
179
+				COPY_PHASE_STRIP = YES;
180
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
181
+				ENABLE_NS_ASSERTIONS = NO;
182
+				GCC_C_LANGUAGE_STANDARD = gnu99;
183
+				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
184
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
185
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
186
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
187
+				GCC_WARN_UNINITIALIZED_AUTOS = YES;
188
+				GCC_WARN_UNUSED_FUNCTION = YES;
189
+				GCC_WARN_UNUSED_VARIABLE = YES;
190
+				MACOSX_DEPLOYMENT_TARGET = 10.9;
191
+				SDKROOT = macosx;
192
+			};
193
+			name = Release;
194
+		};
195
+		6AA6E9D118AF75B800DBBD19 /* Debug */ = {
196
+			isa = XCBuildConfiguration;
197
+			buildSettings = {
198
+				PRODUCT_NAME = "$(TARGET_NAME)";
199
+			};
200
+			name = Debug;
201
+		};
202
+		6AA6E9D218AF75B800DBBD19 /* Release */ = {
203
+			isa = XCBuildConfiguration;
204
+			buildSettings = {
205
+				PRODUCT_NAME = "$(TARGET_NAME)";
206
+			};
207
+			name = Release;
208
+		};
209
+/* End XCBuildConfiguration section */
210
+
211
+/* Begin XCConfigurationList section */
212
+		6AA6E9C218AF75B800DBBD19 /* Build configuration list for PBXProject "Mario Sokoban" */ = {
213
+			isa = XCConfigurationList;
214
+			buildConfigurations = (
215
+				6AA6E9CE18AF75B800DBBD19 /* Debug */,
216
+				6AA6E9CF18AF75B800DBBD19 /* Release */,
217
+			);
218
+			defaultConfigurationIsVisible = 0;
219
+			defaultConfigurationName = Release;
220
+		};
221
+		6AA6E9D018AF75B800DBBD19 /* Build configuration list for PBXNativeTarget "Mario Sokoban" */ = {
222
+			isa = XCConfigurationList;
223
+			buildConfigurations = (
224
+				6AA6E9D118AF75B800DBBD19 /* Debug */,
225
+				6AA6E9D218AF75B800DBBD19 /* Release */,
226
+			);
227
+			defaultConfigurationIsVisible = 0;
228
+		};
229
+/* End XCConfigurationList section */
230
+	};
231
+	rootObject = 6AA6E9BF18AF75B800DBBD19 /* Project object */;
232
+}

+ 7
- 0
Mario Sokoban.xcodeproj/project.xcworkspace/contents.xcworkspacedata Visa fil

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Workspace
3
+   version = "1.0">
4
+   <FileRef
5
+      location = "self:Mario Sokoban.xcodeproj">
6
+   </FileRef>
7
+</Workspace>

+ 86
- 0
Mario Sokoban.xcodeproj/xcuserdata/Coldiary.xcuserdatad/xcschemes/Mario Sokoban.xcscheme Visa fil

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "0500"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
8
+      <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "6AA6E9C618AF75B800DBBD19"
18
+               BuildableName = "Mario Sokoban"
19
+               BlueprintName = "Mario Sokoban"
20
+               ReferencedContainer = "container:Mario Sokoban.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+      </BuildActionEntries>
24
+   </BuildAction>
25
+   <TestAction
26
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28
+      shouldUseLaunchSchemeArgsEnv = "YES"
29
+      buildConfiguration = "Debug">
30
+      <Testables>
31
+      </Testables>
32
+      <MacroExpansion>
33
+         <BuildableReference
34
+            BuildableIdentifier = "primary"
35
+            BlueprintIdentifier = "6AA6E9C618AF75B800DBBD19"
36
+            BuildableName = "Mario Sokoban"
37
+            BlueprintName = "Mario Sokoban"
38
+            ReferencedContainer = "container:Mario Sokoban.xcodeproj">
39
+         </BuildableReference>
40
+      </MacroExpansion>
41
+   </TestAction>
42
+   <LaunchAction
43
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
44
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
45
+      launchStyle = "0"
46
+      useCustomWorkingDirectory = "NO"
47
+      buildConfiguration = "Debug"
48
+      ignoresPersistentStateOnLaunch = "NO"
49
+      debugDocumentVersioning = "YES"
50
+      allowLocationSimulation = "YES">
51
+      <BuildableProductRunnable>
52
+         <BuildableReference
53
+            BuildableIdentifier = "primary"
54
+            BlueprintIdentifier = "6AA6E9C618AF75B800DBBD19"
55
+            BuildableName = "Mario Sokoban"
56
+            BlueprintName = "Mario Sokoban"
57
+            ReferencedContainer = "container:Mario Sokoban.xcodeproj">
58
+         </BuildableReference>
59
+      </BuildableProductRunnable>
60
+      <AdditionalOptions>
61
+      </AdditionalOptions>
62
+   </LaunchAction>
63
+   <ProfileAction
64
+      shouldUseLaunchSchemeArgsEnv = "YES"
65
+      savedToolIdentifier = ""
66
+      useCustomWorkingDirectory = "NO"
67
+      buildConfiguration = "Release"
68
+      debugDocumentVersioning = "YES">
69
+      <BuildableProductRunnable>
70
+         <BuildableReference
71
+            BuildableIdentifier = "primary"
72
+            BlueprintIdentifier = "6AA6E9C618AF75B800DBBD19"
73
+            BuildableName = "Mario Sokoban"
74
+            BlueprintName = "Mario Sokoban"
75
+            ReferencedContainer = "container:Mario Sokoban.xcodeproj">
76
+         </BuildableReference>
77
+      </BuildableProductRunnable>
78
+   </ProfileAction>
79
+   <AnalyzeAction
80
+      buildConfiguration = "Debug">
81
+   </AnalyzeAction>
82
+   <ArchiveAction
83
+      buildConfiguration = "Release"
84
+      revealArchiveInOrganizer = "YES">
85
+   </ArchiveAction>
86
+</Scheme>

+ 22
- 0
Mario Sokoban.xcodeproj/xcuserdata/Coldiary.xcuserdatad/xcschemes/xcschememanagement.plist Visa fil

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>SchemeUserState</key>
6
+	<dict>
7
+		<key>Mario Sokoban.xcscheme</key>
8
+		<dict>
9
+			<key>orderHint</key>
10
+			<integer>0</integer>
11
+		</dict>
12
+	</dict>
13
+	<key>SuppressBuildableAutocreation</key>
14
+	<dict>
15
+		<key>6AA6E9C618AF75B800DBBD19</key>
16
+		<dict>
17
+			<key>primary</key>
18
+			<true/>
19
+		</dict>
20
+	</dict>
21
+</dict>
22
+</plist>

+ 79
- 0
Mario Sokoban/Mario_Sokoban.1 Visa fil

1
+.\"Modified from man(1) of FreeBSD, the NetBSD mdoc.template, and mdoc.samples.
2
+.\"See Also:
3
+.\"man mdoc.samples for a complete listing of options
4
+.\"man mdoc for the short list of editing options
5
+.\"/usr/share/misc/mdoc.template
6
+.Dd 2014-02-15               \" DATE 
7
+.Dt Mario Sokoban 1      \" Program name and manual section number 
8
+.Os Darwin
9
+.Sh NAME                 \" Section Header - required - don't modify 
10
+.Nm Mario Sokoban,
11
+.\" The following lines are read in generating the apropos(man -k) database. Use only key
12
+.\" words here as the database is built based on the words here and in the .ND line. 
13
+.Nm Other_name_for_same_program(),
14
+.Nm Yet another name for the same program.
15
+.\" Use .Nm macro to designate other names for the documented program.
16
+.Nd This line parsed for whatis database.
17
+.Sh SYNOPSIS             \" Section Header - required - don't modify
18
+.Nm
19
+.Op Fl abcd              \" [-abcd]
20
+.Op Fl a Ar path         \" [-a path] 
21
+.Op Ar file              \" [file]
22
+.Op Ar                   \" [file ...]
23
+.Ar arg0                 \" Underlined argument - use .Ar anywhere to underline
24
+arg2 ...                 \" Arguments
25
+.Sh DESCRIPTION          \" Section Header - required - don't modify
26
+Use the .Nm macro to refer to your program throughout the man page like such:
27
+.Nm
28
+Underlining is accomplished with the .Ar macro like this:
29
+.Ar underlined text .
30
+.Pp                      \" Inserts a space
31
+A list of items with descriptions:
32
+.Bl -tag -width -indent  \" Begins a tagged list 
33
+.It item a               \" Each item preceded by .It macro
34
+Description of item a
35
+.It item b
36
+Description of item b
37
+.El                      \" Ends the list
38
+.Pp
39
+A list of flags and their descriptions:
40
+.Bl -tag -width -indent  \" Differs from above in tag removed 
41
+.It Fl a                 \"-a flag as a list item
42
+Description of -a flag
43
+.It Fl b
44
+Description of -b flag
45
+.El                      \" Ends the list
46
+.Pp
47
+.\" .Sh ENVIRONMENT      \" May not be needed
48
+.\" .Bl -tag -width "ENV_VAR_1" -indent \" ENV_VAR_1 is width of the string ENV_VAR_1
49
+.\" .It Ev ENV_VAR_1
50
+.\" Description of ENV_VAR_1
51
+.\" .It Ev ENV_VAR_2
52
+.\" Description of ENV_VAR_2
53
+.\" .El                      
54
+.Sh FILES                \" File used or created by the topic of the man page
55
+.Bl -tag -width "/Users/joeuser/Library/really_long_file_name" -compact
56
+.It Pa /usr/share/file_name
57
+FILE_1 description
58
+.It Pa /Users/joeuser/Library/really_long_file_name
59
+FILE_2 description
60
+.El                      \" Ends the list
61
+.\" .Sh DIAGNOSTICS       \" May not be needed
62
+.\" .Bl -diag
63
+.\" .It Diagnostic Tag
64
+.\" Diagnostic informtion here.
65
+.\" .It Diagnostic Tag
66
+.\" Diagnostic informtion here.
67
+.\" .El
68
+.Sh SEE ALSO 
69
+.\" List links in ascending order by section, alphabetically within a section.
70
+.\" Please do not reference files that do not exist without filing a bug report
71
+.Xr a 1 , 
72
+.Xr b 1 ,
73
+.Xr c 1 ,
74
+.Xr a 2 ,
75
+.Xr b 2 ,
76
+.Xr a 3 ,
77
+.Xr b 3 
78
+.\" .Sh BUGS              \" Document known, unremedied bugs 
79
+.\" .Sh HISTORY           \" Document history if command behaves in a unique manner

+ 18
- 0
Mario Sokoban/main.c Visa fil

1
+//
2
+//  main.c
3
+//  Mario Sokoban
4
+//
5
+//  Created by Benoit Sida on 2014-02-15.
6
+//  Copyright (c) 2014 Benoit Sida. All rights reserved.
7
+//
8
+
9
+#include <stdio.h>
10
+
11
+int main(int argc, const char * argv[])
12
+{
13
+
14
+    // insert code here...
15
+    printf("Hello, World!\n");
16
+    return 0;
17
+}
18
+