Ignore:
Timestamp:
Nov 9, 2023, 5:42:55 PM (2 years ago)
Author:
erdmann
Message:

merge from trunk CS 129

Location:
branches/v2.9_Lars
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • branches/v2.9_Lars

  • branches/v2.9_Lars/classes/mm-progs/MMPlayer/makefile

    r116 r130  
    1717        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd mmplayer.def
    1818#Use this command to link dynamicaly
    19         $(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) -lmmpm2.lib mmplayer.def
     19        $(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) mmpm2.lib mmplayer.def
    2020        rc mmplayer.rc mmplayer.exe
    2121
  • branches/v2.9_Lars/classes/mm-progs/MMPlayer/mmplayer.c

    r88 r130  
    944944                      if(lPos/1000!=lLastPos) {
    945945                        /* Prevent flickering */
    946                         sprintf(chrCommand, "%lu:%02lu", lPos/1000/60, (lPos/1000)%60);
     946                        sprintf(chrCommand, "%li:%02li", lPos/1000/60, (lPos/1000)%60);
    947947                        WinSetWindowText(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), chrCommand);
    948948                        lLastPos=lPos/1000;
     
    10171017
    10181018  if((fealist=malloc(0x00010000L /* Add some space */
    1019                      ))==NULLHANDLE)
     1019                     ))==NULL)
    10201020    return FALSE;
    10211021
  • branches/v2.9_Lars/classes/mm-progs/MMPlayer/playaudio.c

    r88 r130  
    147147
    148148  if(bIsMidi)
    149     strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice));
     149    strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) - 1);
    150150  else
    151     strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice));
     151    strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice) - 1);
    152152
    153153  hwndNotify=hwndFrame;//WinWindowFromID(hwndTop, IDDLG_TOPMIDDLE);
  • branches/v2.9_Lars/classes/mm-progs/audioconverter/audconv.c

    r88 r130  
    350350          {
    351351            UCHAR text[500];
    352             snprintf((PCHAR)text, sizeof(text)-1,"mmioOpen error with file %s\n", chrSourceName);
     352            sprintf((PCHAR)text,/* sizeof(text)-1,*/"mmioOpen error with file %s\n", chrSourceName);
    353353            WinMessageBox(hwnd, hwnd, (PSZ)"",
    354354                          text,
     
    362362          UCHAR text[500];
    363363          mmioClose(hmmio, 0);
    364           snprintf((PCHAR)text, sizeof(text)-1,"mmioGetHeader error!");
     364          sprintf((PCHAR)text, /*sizeof(text)-1,*/"mmioGetHeader error!");
    365365          WinMessageBox(hwnd, hwnd, (PSZ)"",
    366366                        text,
     
    384384            rc=mmioGetLastError(hmmioTarget);
    385385            mciGetErrorString(mmioinfo.ulErrorRet ,chrError, sizeof(chrError)-1);
    386             snprintf((PCHAR)text, sizeof(text)-1,"mmioOpen error with file %s:\n%s\n%lu", chrTargetName, chrError,mmioinfo.ulErrorRet);
     386            sprintf((PCHAR)text, /*sizeof(text)-1,*/"mmioOpen error with file %s:\n%s\n%lu", chrTargetName, chrError,mmioinfo.ulErrorRet);
    387387            mmioClose(hmmio,0);
    388388            WinMessageBox(hwnd, hwnd, (PSZ)"",
     
    400400          mmioClose(hmmio, 0);
    401401          mmioClose(hmmioTarget,0);
    402           snprintf((PCHAR)text, sizeof(text)-1,"Can't get memory buffer!");
     402          sprintf((PCHAR)text, /*sizeof(text)-1,*/"Can't get memory buffer!");
    403403          WinMessageBox(hwnd, hwnd, (PSZ)"",
    404404                        text,
     
    422422        if(rc==MMIO_ERROR) {
    423423          UCHAR text[500];
    424           snprintf((PCHAR)text, sizeof(text)-1,"Error while reading audio data!");
     424          sprintf((PCHAR)text, /*sizeof(text)-1,*/"Error while reading audio data!");
    425425          WinMessageBox(hwnd, hwnd, (PSZ)"",
    426426                        text,
  • branches/v2.9_Lars/classes/mm-progs/audioconverter/makefile

    r116 r130  
    1616audconv.exe:    audconv.c $(OBJECTS) makefile def.tpl
    1717        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd audconv.def
    18         $(CC) $(CPPFLAGS) -I$(INC) audconv.c $(OBJECTS) -lmmpm2.lib audconv.def
     18        $(CC) $(CPPFLAGS) -I$(INC) audconv.c $(OBJECTS) mmpm2.lib audconv.def
    1919
    2020
  • branches/v2.9_Lars/classes/mm-progs/imageconverter/makefile

    r116 r130  
    1515        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd imgconv.def
    1616#Use this command to link dynamicaly
    17         $(CC) $(CPPFLAGS) -I$(INC) imgconv.c $(OBJECTS) -lmmpm2.lib imgconv.def
     17        $(CC) $(CPPFLAGS) -I$(INC) imgconv.c $(OBJECTS) mmpm2.lib imgconv.def
    1818
    1919clean:
  • branches/v2.9_Lars/classes/mm-progs/makefile

    r74 r130  
    66.PHONY:         clean cleaner
    77
    8 CC           = gcc
    9 CPPFLAGS     = -O -Wno-pointer-sign -Wall -Zomf -Zcrtdll -s
     8CC           = icc
     9CPPFLAGS     = /Ge+ /Gm+ /G5 /Ss /Gl /O+ /Oc+ /Ol- /Q+ /Ti /Sp4 /B"/pmtype:pm /ma /de"
    1010INC             =       ./include -I ../../classes/inc -I ../../common_functions/include
    1111DEFS         =
     
    2020
    2121$(LIBDIR)/%.obj:        $(COMMONSRC)/%.c
    22         gcc -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<           
    23 
     22#       gcc -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<           
     23        $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
     24       
    2425all:    $(LIBOBJS)
    2526        cd ./master_volume && make
  • branches/v2.9_Lars/classes/mm-progs/master_volume/makefile

    r116 r130  
    1717volume.exe:     volume.c $(OBJECTS) makefile def.tpl
    1818        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd volume.def
    19         $(CC) $(CPPFLAGS) -I$(INC) volume.c $(OBJECTS) -lmmpm2.lib volume.def
     19        $(CC) $(CPPFLAGS) -I$(INC) volume.c $(OBJECTS) mmpm2.lib volume.def
    2020        rc -I $(INC) volume.rc volume.exe
    2121
  • branches/v2.9_Lars/classes/mm-progs/mmfind/makefile

    r116 r130  
    2020#Use this command to link dynamicaly
    2121        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd mmfind.def
    22         gcc $(CPPFLAGS) -I$(INC) mmfind.c $(LIBOBJECTS) $(OBJECTS) -lmmpm2.lib mmfind.def
     22        icc $(CPPFLAGS) -I$(INC) mmfind.c $(LIBOBJECTS) $(OBJECTS) mmpm2.lib rexx.lib mmfind.def
    2323        rc mmfind.rc mmfind.exe
    2424
  • branches/v2.9_Lars/classes/mm-progs/mmfind/mmfind.c

    r89 r130  
    4646#include <string.h>
    4747#include <stdlib.h>
     48#include <rexxsaa.h>
    4849#include "os2me.h"
    4950/* CW toolkit includes */
  • branches/v2.9_Lars/classes/mm-progs/mmprog.inc

    r87 r130  
    11# MM-prog specific makefile include
    22
    3 CC              =        gcc
    4 CPPFLAGS        =        -O -Wno-pointer-sign -Wall -Zomf -Zmt -s
     3CC              =        icc
     4#CPPFLAGS       =        -O -Wno-pointer-sign -Wall -Zomf -Zmt -s
    55#CPPFLAGS       = -O -Zomf -Zcrtdll -Zmtd -s
     6CPPFLAGS        =  -Ge+ /Gm+ -G5 /Ss -Gl /O+ -Oc+ -Ol- /Q+
    67
    78INC             = ../include -I ../../../classes/inc -I $(COMMONSRC)/include
     
    1617
    1718$(LIBDIR)/%.obj:        $(COMMONSRC)/%.c
    18         $(CC) -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<
    19 
     19#       $(CC) -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<
     20        $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
    2021%.obj:  %.c
    21         $(CC) -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<
     22#       $(CC) -c -Wno-pointer-sign -Wall -o$@ -Zomf -I$(INC) $<
     23        $(CC) $(CPPFLAGS) /C -I$(INC) /Fo$@ $<
    2224
    2325
  • branches/v2.9_Lars/classes/mm-progs/videoplayer/makefile

    r116 r130  
    33include ../../../make.inc
    44
    5 CC           = gcc
     5CC           = icc
    66LIB_DIR      = $d:/emx/lib
    77#CPPFLAGS     = -Ge- /Gm+ -G4 -Gl  /O+ -Oc+ -Ol
    88#CPPFLAGS     = -O -Zomf -Zcrtdll -Zmtd -s
    9 CPPFLAGS     = -O -Wall -Zomf -Zmt -s
     9#CPPFLAGS     = -O -Wall -Zomf -Zmt -s
     10CPPFLAGS        =  -Ge+ /Gm+ -G5 /Ss -Gl /O+ -Oc+ -Ol- /Q+
    1011INC             = ../include -I ../../../classes/inc -I ../../../common_functions/include
    1112DEFS         =
     
    2021all:    mmplayer.exe vioplayer.exe
    2122
    22 $(LIBDIR)/%.obj:        $(COMMONSRC)/%.c
    23         gcc -c -Wall -o$@ -Zomf -I$(INC) $<
    24 
     23$(LIBDIR)/%.obj:        $(COMMONSRC)/%.c 
     24#       gcc -c -Wall -o$@ -Zomf -I$(INC) $< 
     25        $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
    2526%.obj:  %.c
    26         gcc -c -Wall -o$@ -Zomf -I$(INC) $<
    27 
     27#       gcc -c -Wall -o$@ -Zomf -I$(INC) $< 
     28        $(CC) $(CPPFLAGS) /C -I$(INC) /Fo$@ $<
    2829mmplayer.exe:   mmplayer.c $(OBJECTS) $(OBJS2) makefile
    2930#Use this command to link dynamicaly
    30         gcc $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) -lmmpm2.lib mmplayer.def
     31        $(CC) $(CPPFLAGS) -I$(INC) mmplayer.c $(OBJECTS) $(OBJS2) mmpm2.lib mmplayer.def
    3132        rc mmplayer.rc mmplayer.exe
    3233
    3334vioplayer.exe:  vioplayer.c
    34         gcc $(CPPFLAGS) -I$(INC) vioplayer.c $(LIBDIR)/sys_funcs.obj -lmmpm2.lib mmplayer.def
     35        $(CC) $(CPPFLAGS) -I$(INC) vioplayer.c $(LIBDIR)/sys_funcs.obj mmpm2.lib mmplayer.def
    3536
    3637clean:
  • branches/v2.9_Lars/classes/mm-progs/videoplayer/mmplayer.c

    r88 r130  
    954954                      if(lPos/1000!=lLastPos) {
    955955                        /* Prevent flickering */
    956                         sprintf(chrCommand, "%d:%02d", lPos/1000/60, (lPos/1000)%60);
     956                        sprintf(chrCommand, "%li:%02li", lPos/1000/60, (lPos/1000)%60);
    957957                        WinSetWindowText(WinWindowFromID(hwnd, IDST_MMPLAYERPLAYTIME), chrCommand);
    958958                        lLastPos=lPos/1000;
     
    10271027
    10281028  if((fealist=malloc(0x00010000L /* Add some space */
    1029                      ))==NULLHANDLE)
     1029                     ))==NULL)
    10301030    return FALSE;
    10311031
  • branches/v2.9_Lars/classes/mm-progs/volume/makefile

    r116 r130  
    1717        cmd /C $(TOOLDIR)\create_MMPROG_def.cmd classvolume.def
    1818#Use this command to link dynamicaly
    19         $(CC) $(CPPFLAGS) -I$(INC) classvol.c $(OBJECTS) $(OBJS2) -lmmpm2.lib classvolume.def
     19        $(CC) $(CPPFLAGS) -I$(INC) classvol.c $(OBJECTS) $(OBJS2) mmpm2.lib classvolume.def
    2020        rc classvolume.rc classvol.exe
    2121
     
    2828        -rm *.RES
    2929        -rm *.ini
    30         -rm *.def
     30        -rm $(LIBDIR)/*.obj
    3131
    3232cleaner:
Note: See TracChangeset for help on using the changeset viewer.