File tree Expand file tree Collapse file tree 13 files changed +29
-12
lines changed Expand file tree Collapse file tree 13 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ February 2017
62
62
* STCK durations printed as just microseconds value when in SQL mode. Still
63
63
split as seconds/microseconds otherwise.
64
64
65
+ May 2017
66
+ * Added support for the 903 SMF extensions
67
+ * Using a VERS flag during the build to select correct base header file
68
+ and features
69
+
65
70
66
71
Pull requests
67
72
=============
Original file line number Diff line number Diff line change 13
13
targdir=" ../bin/linux"
14
14
fi
15
15
16
- export PLATFLAGS=$flags CC=$cc
16
+ export PLATFLAGS=$flags CC=$cc VERS=903
17
17
make -e -f Makefile.unix $*
18
18
19
19
rm -f $targdir /convH $targdir /mqsmfcsv
Original file line number Diff line number Diff line change 2
2
CC=i686-w64-mingw32-gcc
3
3
CFLAGS= -I. -m32
4
4
PLATFLAGS=
5
+ VERS=903
5
6
SRC = mqsmf.c \
6
7
smfDDL.c \
7
8
smfDate.c \
@@ -36,15 +37,15 @@ HDR = mqsmfstruc.h \
36
37
mqsmf.h
37
38
38
39
mqsmfcsv.exe: $(SRC) $(HDR) Makefile.gcc.win dummy
39
- $(CC) $(PLATFLAGS) -o $@ $(SRC) $(CFLAGS)
40
+ $(CC) $(PLATFLAGS) -o $@ $(SRC) $(CFLAGS) -DCSQDSMF_VERSION=$(VERS)
40
41
-rm -f out/*
41
42
-rm -f SMF-*
42
43
-mkdir out >/dev/null 2>&1 || true
43
44
cp $@ ../bin/win
44
45
# dbx ./$@
45
46
46
- mqsmfstruc.h: csqdsmfc.h convH.exe
47
- ./convH.exe < csqdsmfc.h > $@
47
+ mqsmfstruc.h: csqdsmfc-$(VERS) .h convH.exe dummy
48
+ ./convH.exe < csqdsmfc-$(VERS) .h > $@
48
49
49
50
convH.exe: convH.c
50
51
$(CC) -o $@ convH.c
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ HDR = mqsmfstruc.h \
36
36
mqsmf.h
37
37
38
38
mqsmfcsv: $(SRC) $(HDR) Makefile.unix dummy
39
- $(CC) $(PLATFLAGS) -o $@ $(SRC) $(CFLAGS)
39
+ $(CC) $(PLATFLAGS) -o $@ $(SRC) $(CFLAGS) -DCSQDSMF_VERSION=$(VERS)
40
40
41
- mqsmfstruc.h: csqdsmfc.h convH
42
- convH < csqdsmfc.h > $@
41
+ mqsmfstruc.h: csqdsmfc-$(VERS) .h convH dummy
42
+ convH < csqdsmfc-$(VERS) .h > $@
43
43
44
- convH: convH.c
44
+ convH: convH.c dummy
45
45
$(CC) -o $@ convH.c
46
46
47
47
Original file line number Diff line number Diff line change 1
1
CFLAGS=-nologo /D_CRT_SECURE_NO_WARNINGS /Zp1 /J
2
+ VERS=903
2
3
SRC = mqsmf.c \
3
4
smfDDL.c \
4
5
smfDate.c \
@@ -34,12 +35,12 @@ HDR = mqsmfstruc.h \
34
35
35
36
mqsmfcsv.exe: $(SRC) $(HDR) Makefile.win
36
37
rm -f $@
37
- $(CC) $(SRC) -I. /Fe$@ $(CFLAGS)
38
+ $(CC) $(SRC) -I. /Fe$@ $(CFLAGS) -DCSQDSMF_VERSION=$(VERS)
38
39
del /q *.obj
39
40
copy $@ ..\bin\win
40
41
41
- mqsmfstruc.h: csqdsmfc.h convH
42
- convH < csqdsmfc.h > $@
42
+ mqsmfstruc.h: csqdsmfc-$(VERS) .h convH dummy
43
+ convH < csqdsmfc-$(VERS) .h > $@
43
44
44
45
convH: convH.c
45
46
$(CC) /Fe$@ convH.c
Original file line number Diff line number Diff line change @@ -38,6 +38,16 @@ void printQMST(qmst *p)
38
38
ADDS32 ("Status" ,p -> qmststus );
39
39
ADDS32 ("Pubs" ,p -> qmstpubs );
40
40
}
41
+ #if CSQDSMF_VERSION >= 903
42
+ if (conv16 (p -> qmstll ) > offsetof(qmst , qmstspp ))/* Fields added for V7.0.3 */
43
+ {
44
+ ADDS64 ("PersPuts" , p -> qmstspp ); /* Number of success pers puts */
45
+ ADDS64 ("NonPersPuts" , p -> qmstsnp ); /* Number of success pers puts */
46
+ ADDS64 ("PersPutBytes" , p -> qmstpbp ); /* Number of success pers puts */
47
+ ADDS64 ("NonPersPutBytes" , p -> qmstnbp ); /* Number of success pers puts */
48
+ }
49
+ #endif
50
+
41
51
SMFPRINTSTOP ;
42
52
43
53
return ;
Original file line number Diff line number Diff line change 13
13
#include <stdio.h>
14
14
#include <string.h>
15
15
#include <ctype.h>
16
- #include < mqsmf.h>
16
+ #include " mqsmf.h"
17
17
18
18
static FILE * fp = NULL ;
19
19
char * comma = "" ;
You can’t perform that action at this time.
0 commit comments