Loading ...
Sorry, an error occurred while loading the content.
 

Patches for Win32

Expand Messages
  • Jon Miner
    I don t recall if I ve sent these before or not, but they didn t get included in verion 5.7, so I guess I forgot. This set of patches does three things: 1)
    Message 1 of 5 , Jun 29, 2000
      I don't recall if I've sent these before or not, but they didn't get
      included in verion 5.7, so I guess I forgot.

      This set of patches does three things:
      1) Creates an "install" target in Makefile.w32 so that one can type
      'nmake -f Makefile.w32 install' and install things (to my default
      locations, which are probably not normal..), in a manner quite
      similar to the unix Makefile. This also changes xxd/Makefile.w32
      and ctags/Makefile.mvc
      2) Creates pathdef.c on Win32 and changes vim.h and version.c so that
      the :version information will be displayed properly.

      Let me know what ya'll think.

      thanks,

      jon

      --
      .Jonathan J. Miner------------------Division of Information Technology.
      |miner@... University Of Wisconsin - Madison|
      |608/262.9655 Room 3149 Computer Science|
      `---------------------------------------------------------------------'

      "...this does not mean that some of us should not want, in a rather
      dispassionate sort of way, to put a bullet through csh's head."
      Larry Wall in <1992Aug6.221512.5963@...>
    • Bram Moolenaar
      ... I ve not seen the first one before... ... Hmm, quite a few extra lines (which require to be maintained). It doesn t run the install program, thus it s
      Message 2 of 5 , Jun 30, 2000
        Jon Miner wrote:

        > I don't recall if I've sent these before or not, but they didn't get
        > included in verion 5.7, so I guess I forgot.

        I've not seen the first one before...

        > This set of patches does three things:
        > 1) Creates an "install" target in Makefile.w32 so that one can type
        > 'nmake -f Makefile.w32 install' and install things (to my default
        > locations, which are probably not normal..), in a manner quite
        > similar to the unix Makefile. This also changes xxd/Makefile.w32
        > and ctags/Makefile.mvc

        Hmm, quite a few extra lines (which require to be maintained). It doesn't run
        the "install" program, thus it's not complete in setting up for Vim to be run.
        One might just as well unpack the runtime archive in the right place and move
        the .exe files to where you want them. That's probably easier than to figure
        out how to set the paths for "make install".

        > 2) Creates pathdef.c on Win32 and changes vim.h and version.c so that
        > the :version information will be displayed properly.

        This is useful. I had already included this (in Vim 6.0).

        --
        hundred-and-one symptoms of being an internet addict:
        154. You fondle your mouse.

        /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
        \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
      • Stephen P. Wall
        ... You don t need to change version.c so much. This should do fine: diff -u ../vim-5.7/src/version.c ./src/version.c ... +++ ./src/version.c Wed Jun 28
        Message 3 of 5 , Jun 30, 2000
          > From: Jon Miner <miner@...>

          You don't need to change version.c so much. This should do fine:


          diff -u ../vim-5.7/src/version.c ./src/version.c
          --- ../vim-5.7/src/version.c Wed Jun 28 10:08:33 2000
          +++ ./src/version.c Wed Jun 28 10:08:25 2000
          @@ -547,7 +547,7 @@
          }
          }

          -#if defined(UNIX) || defined(VMS)
          +#if defined(UNIX) || defined(VMS) || defined(WIN32)
          if (*compiled_user != NUL)
          {
          MSG_PUTS("\nCompiled by ");


          --
          Free High Speed DSL Access:
          http://in.winfire.com/s/isapiEng.dll/wf.exe?cmd=rl&452,180045277&wf.exe
          ______________________________________________________________________
          ________ ______
          Stephen P. Wall Redcom Laboratories, Inc. / __ /\/ ___/\
          Steve_Wall@... One Redcom Center ___/ /\/ /_/ /\__\/
          (716) 924-7550 Victor, NY 14564 /_____/ /_______/ /
          x300 USA \_____\/\_______\/
        • Jon Miner
          ... The problem is that on some Windows machines, $USER and $HOST aren t defined.. So, to avoid printing user@ or just @, you need to check.. jon -- .Jonathan
          Message 4 of 5 , Jun 30, 2000
            * Stephen P. Wall (swall@...) [000630 08:26]:
            > You don't need to change version.c so much. This should do fine:

            The problem is that on some Windows machines, $USER and $HOST aren't
            defined.. So, to avoid printing user@ or just @, you need to check..

            jon

            --
            .Jonathan J. Miner------------------Division of Information Technology.
            |miner@... University Of Wisconsin - Madison|
            |608/262.9655 Room 3149 Computer Science|
            `---------------------------------------------------------------------'

            I hope I'm not getting so famous that I can't think out load [sic] anymore.
            -- Larry Wall in <199709032332.QAA21669@...>
          • Stephen P. Wall
            ... Version 5.7 already does that. Here s the unmodified chunk on code: #if defined(UNIX) || defined(VMS) if (*compiled_user != NUL) { MSG_PUTS( nCompiled by
            Message 5 of 5 , Jun 30, 2000
              > From: Jon Miner <miner@...>
              >
              > The problem is that on some Windows machines, $USER and $HOST aren't
              > defined.. So, to avoid printing user@ or just @, you need to check..

              Version 5.7 already does that. Here's the unmodified chunk on code:

              #if defined(UNIX) || defined(VMS)
              if (*compiled_user != NUL)
              {
              MSG_PUTS("\nCompiled by ");
              MSG_PUTS(compiled_user);
              if (*compiled_sys != NUL)
              {
              MSG_PUTS("@");
              MSG_PUTS(compiled_sys);
              }
              MSG_PUTS(", with (+) or without (-):\n");
              }
              else
              #endif
              MSG_PUTS("\nCompiled with (+) or without (-):\n");


              if user is not nul:
              print "Compiled by USER"
              if sys is not nul, print "@SYS"
              print ", with..."
              else:
              print "Compile with..."


              You just need to include WIN32 in the "#if" at the top.


              --
              Free High Speed DSL Access:
              http://in.winfire.com/s/isapiEng.dll/wf.exe?cmd=rl&452,180045277&wf.exe
              ______________________________________________________________________
              ________ ______
              Stephen P. Wall Redcom Laboratories, Inc. / __ /\/ ___/\
              Steve_Wall@... One Redcom Center ___/ /\/ /_/ /\__\/
              (716) 924-7550 Victor, NY 14564 /_____/ /_______/ /
              x300 USA \_____\/\_______\/
            Your message has been successfully submitted and would be delivered to recipients shortly.