ObjFW  Check-in [c7035e7dd2]

Overview
Comment:OFApplication: Reduce scope of some variables
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c7035e7dd27a3e10e183084571e039ca228d5c556117e88e1c513e41d3182988
User & Date: js on 2023-08-23 08:55:10
Other Links: manifest | tags
Context
2023-08-23
12:44
Add OFStrFTime() consistent with OFStrPTime() check-in: 05d675eb07 user: js tags: trunk
08:55
OFApplication: Reduce scope of some variables check-in: c7035e7dd2 user: js tags: trunk
2023-08-22
16:16
Don't require a regular file to init an object check-in: 8471999204 user: js tags: trunk
Changes

Modified src/OFApplication.m from [594a3c0f6e] to [8c20d43cf6].

113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130



131

132
133
134
135
136
137
138
113
114
115
116
117
118
119





120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137







-
-
-
-
-






+
+
+

+







	OFSocketDeinit();
#endif
}

int
OFApplicationMain(int *argc, char **argv[], id <OFApplicationDelegate> delegate)
{
#ifdef OF_WINDOWS
	wchar_t **wargv, **wenvp;
	int wargc, si = 0;
#endif

	[[OFLocale alloc] init];

	app = [[OFApplication alloc] of_init];

#ifdef OF_WINDOWS
	if ([OFSystemInfo isWindowsNT]) {
		wchar_t **wargv, **wenvp;
		int wargc, si = 0;

		__wgetmainargs(&wargc, &wargv, &wenvp, _CRT_glob, &si);

		[app of_setArgumentCount: argc
		       andArgumentValues: argv
		    andWideArgumentCount: wargc
		   andWideArgumentValues: wargv];
	} else
#endif
		[app of_setArgumentCount: argc andArgumentValues: argv];