File tree 7 files changed +37
-10
lines changed
7 files changed +37
-10
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ msbuild/nuget.exe
8
8
msbuild /Win32
9
9
msbuild /x64
10
10
msbuild /packages
11
+
12
+ .build
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ add_library(mcpp STATIC
18
18
"eval.c"
19
19
"expand.c"
20
20
"internal.H"
21
- "main .c"
21
+ "mcpp_main .c"
22
22
"mbchar.c"
23
23
"support.c"
24
24
"system.c"
@@ -32,9 +32,9 @@ target_sources(mcpp PUBLIC
32
32
33
33
if (UNIX )
34
34
include (GNUInstallDirs)
35
-
36
- set_property (TARGET mcpp PROPERTY PUBLIC_HEADER
37
- "mcpp_lib.h"
35
+
36
+ set_property (TARGET mcpp PROPERTY PUBLIC_HEADER
37
+ "mcpp_lib.h"
38
38
"mcpp_out.h"
39
39
)
40
40
@@ -56,7 +56,7 @@ if(UNIX)
56
56
elseif (WIN32 )
57
57
# define character set - not set, per shipped project files
58
58
add_definitions (-D_SBCS)
59
-
59
+
60
60
target_compile_definitions (mcpp PRIVATE
61
61
"_WIN32_WINNT=0x600"
62
62
"WIN32_LEAN_AND_MEAN"
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ ifeq ($(UNAME),AIX)
48
48
CC ?= xlc_r
49
49
endif
50
50
51
- OBJS = directive.o eval.o expand.o main .o mbchar.o support.o system.o
51
+ OBJS = directive.o eval.o expand.o mcpp_main .o mbchar.o support.o system.o
52
52
53
53
$(LIBDIR ) /libmcpp.a : $(OBJS )
54
54
-mkdir -p $(LIBDIR )
Original file line number Diff line number Diff line change
1
+ // swift-tools-version: 5.10
2
+
3
+ import PackageDescription
4
+
5
+ let package = Package (
6
+ name: " mcpp " ,
7
+ defaultLocalization: " en " ,
8
+ platforms: [
9
+ . macOS( . v14) ,
10
+ . iOS( . v12) ,
11
+ ] ,
12
+ products: [
13
+ . library( name: " mcpp " , targets: [ " mcpp " ] )
14
+ ] ,
15
+ targets: [
16
+ . target(
17
+ name: " mcpp " ,
18
+ path: " ./ " ,
19
+ publicHeadersPath: " . " ,
20
+ cSettings: [
21
+ . unsafeFlags( [ " -Wno-implicit-function-declaration " , " -Wno-deprecated-non-prototype " ] )
22
+ ]
23
+ )
24
+ ]
25
+ )
Original file line number Diff line number Diff line change 94
94
#define OP_LPA 2 /* ( */
95
95
/* The following are unary. */
96
96
#define FIRST_UNOP OP_PLU /* First unary operator */
97
- #define OP_PLU 3 /* + */
97
+ #define OP_PLU 3 /* + */
98
98
#define OP_NEG 4 /* - */
99
99
#define OP_COM 5 /* ~ */
100
100
#define OP_NOT 6 /* ! */
@@ -320,7 +320,7 @@ extern struct std_limits_ {
320
320
int inc_nest ; /* Least maximum of include nest*/
321
321
long n_macro ; /* Least maximum of num of macro*/
322
322
long line_num ; /* Maximum source line number */
323
- } std_limits ;
323
+ } std_limits ;
324
324
/* The boolean flags specified by the execution options. */
325
325
extern struct option_flags_ {
326
326
int c ; /* -C option (keep comments) */
@@ -370,7 +370,7 @@ extern FILEINFO * sh_file;
370
370
extern int sh_line ;
371
371
/* Temporary buffer for directive line and macro expansion */
372
372
373
- /* main .c */
373
+ /* mcpp_main .c */
374
374
extern void un_predefine ( int clearall );
375
375
/* Undefine predefined macros */
376
376
File renamed without changes.
Original file line number Diff line number Diff line change 103
103
<ClCompile Include =" ..\directive.c" />
104
104
<ClCompile Include =" ..\eval.c" />
105
105
<ClCompile Include =" ..\expand.c" />
106
- <ClCompile Include =" ..\main .c" />
106
+ <ClCompile Include =" ..\mcpp_main .c" />
107
107
<ClCompile Include =" ..\mbchar.c" />
108
108
<ClCompile Include =" ..\support.c" />
109
109
<ClCompile Include =" ..\system.c" />
You can’t perform that action at this time.
0 commit comments