Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 25. október 2026

Rozdiely pre dead/diplomovka/xgrafix/src/xginitc.c medzi verziami 1.3 a 1.4

verzia 1.3, 2002/08/29 01:24:23 verzia 1.4, 2002/09/06 14:59:15
Riadok 273  void XGInit(int argc, char **argv, doubl
Riadok 273  void XGInit(int argc, char **argv, doubl
         }          }
         else if (!WasDumpFileGiven) {          else if (!WasDumpFileGiven) {
                 theEPSFile = (char *) malloc(                  theEPSFile = (char *) malloc(
                                 (strlen(theInputFile) + strlen(theEPSExtension)) * sizeof(char));                                  (strlen(theInputFile) + strlen(theEPSExtension) + 1) * sizeof(char));
                 theDumpFile = (char *) malloc(                  theDumpFile = (char *) malloc(
                                 (strlen(theInputFile) + strlen(theEPSExtension)) * sizeof(char));                                  (strlen(theInputFile) + strlen(theEPSExtension) + 1) * sizeof(char));
                 if (theEPSFile == NULL || theDumpFile == NULL) {                  if (theEPSFile == NULL || theDumpFile == NULL) {
                         fprintf(stderr, "Not enought memory!\n");                          fprintf(stderr, "Not enought memory!\n");
                         exit(1);                          exit(1);
Riadok 287  void XGInit(int argc, char **argv, doubl
Riadok 287  void XGInit(int argc, char **argv, doubl
         }          }
         else {          else {
                 theEPSFile = (char *) malloc(                  theEPSFile = (char *) malloc(
                                 (findlen(theInputFile) + strlen(theEPSExtension)) * sizeof(char));                                  (findlen(theInputFile) + strlen(theEPSExtension) + 1) * sizeof(char));
                 strncpy(theEPSFile, theInputFile, findlen(theInputFile));                  strncpy(theEPSFile, theInputFile, findlen(theInputFile));
                 strcat(theEPSFile, theEPSExtension);                  strcat(theEPSFile, theEPSExtension);
         }          }
Riadok 296  void XGInit(int argc, char **argv, doubl
Riadok 296  void XGInit(int argc, char **argv, doubl
         /* Initializing the Window array */          /* Initializing the Window array */
   
         sizeOfWindowArray = 10;          sizeOfWindowArray = 10;
         theWindowArray = (WindowType *)malloc(sizeof(WindowType)*sizeOfWindowArray);          theWindowArray = (WindowType *) malloc(sizeof(WindowType) * sizeOfWindowArray);
         numberOfWindows = 0;          numberOfWindows = 0;
         sizeIncrement = 10;          sizeIncrement = 10;
   
Riadok 548  void XGInitTclTk(void)
Riadok 548  void XGInitTclTk(void)
   
         interp = Tcl_CreateInterp();          interp = Tcl_CreateInterp();
         Tcl_Init(interp);          Tcl_Init(interp);
         str2 = (char *) malloc((strlen(ReqDisp) + strlen("-display ")) * sizeof(char));          str2 = (char *) malloc((strlen(ReqDisp) + strlen("-display ") + 1) * sizeof(char));
         if (str2 != NULL)          if (str2 != NULL)
                 sprintf(str2, "-display %s", ReqDisp);                  sprintf(str2, "-display %s", ReqDisp);
         else {          else {
Riadok 557  void XGInitTclTk(void)
Riadok 557  void XGInitTclTk(void)
         }          }
         Tcl_SetVar(interp, "argv", str2, 0);          Tcl_SetVar(interp, "argv", str2, 0);
         free(str2);          free(str2);
   
         Tk_Init(interp);          Tk_Init(interp);
         mainWindow = Tk_MainWindow(interp);          mainWindow = Tk_MainWindow(interp);
   

Legend:
Odstranené z verzie1.3  
zmenené riadky
  Pridané vo verzii1.4

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok