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

Borland C++ Builder 6.0 Makefile patch

Expand Messages
  • Michael Jarvis
    I m using Borland C++ Builder 6.0 to build vim for Win32, and I had to make some changes to the Make_bc5.mak file in order to get it to work. I m not sure if
    Message 1 of 10 , May 13, 2004
    • 0 Attachment
      I'm using Borland C++ Builder 6.0 to build vim for Win32, and I had to
      make some changes to the Make_bc5.mak file in order to get it to work.
      I'm not sure if these are "bugs" that need to be fixed for C++ Builder
      5.0 or not, or if they are just 6.0 specific. One of the changes in
      the patch below were mentioned by Bram in an earlier email.

      In particular -WE is not valid with the 6.0 bcc32. "-W" means a
      Windows application, and -WC would generate a console application.

      The "-w-ngu" and "-w-csu" options silence a bunch of annoying warnings
      that don't seem to matter.

      I also had to make some changes to get the auto/pathdef.c file created
      successfully.

      Perhaps this could be distributed as Make_bc6.mak? Or if it works for
      Borland C++ Builder 5.x, integrated as a patch?

      Best regards,
      Michael

      --- /cygdrive/c/src/vim-src/foo/vim/vim63a/src/Make_bc5.mak 2004-05-06 08:08:47.000000000 -0500
      +++ ./Make_bc5.mak 2004-05-13 08:36:05.653935600 -0500
      @@ -80,7 +80,7 @@

      ### BOR: root of the BC installation
      !if ("$(BOR)"=="")
      -BOR = c:\bc5
      +BOR=C:\Progra~1\Borland\CBuilder6
      !endif

      ### LINK: Name of the linker: tlink or ilink32 (this is below, depends on
      @@ -421,7 +421,7 @@
      EXETYPE=-WD
      DEFINES = $(DEFINES) -DVIMDLL
      !else
      -EXETYPE=-WE
      +EXETYPE=-W
      !endif
      STARTUPOBJ = c0w32.obj
      LINK2 = -aa
      @@ -479,7 +479,7 @@
      CC = $(BOR)\BIN\Bcc
      LFLAGS = -Tde -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
      LFLAGSDLL =
      -CFLAGS = -w-aus -w-par -w-pch -I$(INCLUDE) -H- $(HEADERS)
      +CFLAGS = -w-aus -w-par -w-pch -I$(INCLUDE) -H- $(HEADERS) -w-ngu -w-csu
      !else
      BRC = $(BOR)\BIN\brc32
      !if ("$(LINK)"=="")
      @@ -488,7 +488,7 @@
      CC = $(BOR)\BIN\Bcc32
      LFLAGS = -OS -Tpe -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
      LFLAGSDLL = -Tpd -c -m -L$(LIB) $(DEBUG_FLAG) $(LINK2)
      -CFLAGS = -w-aus -w-par -w-pch -I$(INCLUDE) -d -RT- -k- -Oi $(HEADERS) -f-
      +CFLAGS = -w-aus -w-par -w-pch -I$(INCLUDE) -d -RT- -k- -Oi $(HEADERS) -f- -w-ngu -w-csu
      !endif

      CC1 = -c
      @@ -926,10 +926,13 @@
      $(OBJDIR)\pathdef.obj: auto\pathdef.c
      $(CC) $(CCARG) $(CC1) $(CC2)$@ auto\pathdef.c

      +auto:
      + -@mkdir auto
      +
      # Note: the silly /*"*/ below are there to trick make into accepting
      # the # character as something other than a comment without messing up
      # the preprocessor directive.
      -auto\pathdef.c::
      +auto\pathdef.c:: auto
      @echo creating auto/pathdef.c
      @copy &&|
      /* pathdef.c */
      @@ -937,7 +940,7 @@

      char_u *default_vim_dir = (char_u *)"$(VIMRCLOC:\=\\)";
      char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR:\=\\)";
      -char_u *all_cflags = (char_u *)"$(CC:\=\\) $(CFLAGS:\=\\) $(DEFINES) $(MBDEFINES) $(INTERP_DEFINES:"=\\") $(OPT) $(EXETYPE) $(CPUARG) $(ALIGNARG) $(DEBUG_FLAG) $(CODEGUARD_FLAG)";
      +char_u *all_cflags = (char_u *)"$(CC:\=\\) $(CFLAGS:\=\\) $(DEFINES) $(MBDEFINES) $(INTERP_DEFINES:\=\\) $(OPT) $(EXETYPE) $(CPUARG) $(ALIGNARG) $(DEBUG_FLAG) $(CODEGUARD_FLAG)";
      char_u *all_lflags = (char_u *)"$(LINK:\=\\) $(LFLAGS:\=\\)";
      char_u *compiled_user = (char_u *)"$(USERNAME)";
      char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";


      --
      Michael Jarvis
      michael@...
      http://www.jarvis.com/home.php
      "Freiheit stirbt in kleinen Stücken."
    • Michael Jarvis
      Oh one more thing... I tried using a tri-graph ??= instead of the /* */ hack, and it didn t work as I d hoped. :-( To quote from the Borland documentation:
      Message 2 of 10 , May 13, 2004
      • 0 Attachment
        Oh one more thing...

        I tried using a tri-graph "??=" instead of the /*"*/ hack, and it
        didn't work as I'd hoped. :-(

        To quote from the Borland documentation:

        "Trigraphs are three-character sequences that replace certain
        characters used in the C language that are not available on some
        keyboards. Translating trigraphs in the compiler would slow
        compilation down considerably, so Borland C++ provides a filter
        named TRIGRAPH.EXE to handle trigraph sequences when you need to."

        Bleah.

        Cheers,
        Michael


        On Thu, May 13, 2004 at 10:20:50AM -0500, Michael Jarvis wrote:
        > I'm using Borland C++ Builder 6.0 to build vim for Win32, and I had to
        > make some changes to the Make_bc5.mak file in order to get it to work.
        > I'm not sure if these are "bugs" that need to be fixed for C++ Builder
        > 5.0 or not, or if they are just 6.0 specific. One of the changes in
        > the patch below were mentioned by Bram in an earlier email.

        --
        Michael Jarvis
        michael@...
        http://www.jarvis.com/home.php
        "Freiheit stirbt in kleinen Stücken."
      • Bram Moolenaar
        ... -W appears to work with BC 5.1. I don t know why -WE was used. ... What warnings? The extra arguments don t cause trouble for BC 5.1. ... Looks like
        Message 3 of 10 , May 13, 2004
        • 0 Attachment
          Michael Jarvis wrote:

          > I'm using Borland C++ Builder 6.0 to build vim for Win32, and I had to
          > make some changes to the Make_bc5.mak file in order to get it to work.
          > I'm not sure if these are "bugs" that need to be fixed for C++ Builder
          > 5.0 or not, or if they are just 6.0 specific. One of the changes in
          > the patch below were mentioned by Bram in an earlier email.
          >
          > In particular -WE is not valid with the 6.0 bcc32. "-W" means a
          > Windows application, and -WC would generate a console application.

          "-W" appears to work with BC 5.1. I don't know why "-WE" was used.

          > The "-w-ngu" and "-w-csu" options silence a bunch of annoying warnings
          > that don't seem to matter.

          What warnings? The extra arguments don't cause trouble for BC 5.1.

          > I also had to make some changes to get the auto/pathdef.c file created
          > successfully.

          Looks like a logical change.

          > Perhaps this could be distributed as Make_bc6.mak? Or if it works for
          > Borland C++ Builder 5.x, integrated as a patch?

          As far as I can see it also works for BC 5.1. No need to create a
          Make_bc6.mak.

          --
          DINGO: And after the spanking ... the oral sex.
          GALAHAD: Oh, dear! Well, I...
          GIRLS: The oral sex ... The oral sex.
          GALAHAD: Well, I suppose I could stay a BIT longer.
          "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

          /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
          /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
          \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
          \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
        • Michael Jarvis
          ... Note that even though I have Borland C++ Builder 6.0 (with latest patches), the version of the command line compiler is:
          Message 4 of 10 , May 13, 2004
          • 0 Attachment
            On Thu, May 13, 2004 at 08:37:53PM +0200, Bram Moolenaar wrote:
            > > The "-w-ngu" and "-w-csu" options silence a bunch of annoying warnings
            > > that don't seem to matter.
            >
            > What warnings? The extra arguments don't cause trouble for BC 5.1.

            Note that even though I have Borland C++ Builder 6.0 (with latest
            patches), the version of the command line compiler is:

            C:\src\vim-src\vim\vim63a\src>bcc32 --version
            Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland

            Here's a log showing the warnings:

            C:\src\vim-src\vim\vim63a\src>make /f make_bc5.mak GUI=no USERNAME=michael_jarvis USERDOMAIN=cargill.com

            MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
            Compiling WIN32 vim.exe , with: MBYTE IME(dynamic) GETTEXT ICONV CSCOPE cpu=-3 Align=-a4
            copy MAKE0004.@@@ WIN32\obj\bcc.cfg
            1 file(s) copied.
            Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland
            .\buffer.c:
            Warning W8012 .\buffer.c 3445: Comparing signed and unsigned values in function build_stl_str_hl
            Warning W8012 .\buffer.c 3447: Comparing signed and unsigned values in function build_stl_str_hl
            .\charset.c:
            .\diff.c:
            .\digraph.c:
            Warning W8041 .\digraph.c 2014: Negating unsigned value in function do_digraph
            .\edit.c:
            Warning W8041 .\edit.c 693: Negating unsigned value in function edit
            Warning W8041 .\edit.c 693: Negating unsigned value in function edit
            Warning W8041 .\edit.c 694: Negating unsigned value in function edit
            Warning W8041 .\edit.c 694: Negating unsigned value in function edit
            Warning W8041 .\edit.c 696: Negating unsigned value in function edit
            Warning W8041 .\edit.c 696: Negating unsigned value in function edit
            Warning W8041 .\edit.c 697: Negating unsigned value in function edit
            Warning W8041 .\edit.c 697: Negating unsigned value in function edit
            Warning W8041 .\edit.c 718: Negating unsigned value in function edit
            Warning W8041 .\edit.c 732: Negating unsigned value in function edit
            Warning W8041 .\edit.c 802: Negating unsigned value in function edit
            Warning W8041 .\edit.c 803: Negating unsigned value in function edit
            Warning W8041 .\edit.c 805: Negating unsigned value in function edit
            Warning W8041 .\edit.c 982: Negating unsigned value in function edit
            Warning W8041 .\edit.c 989: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1053: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1054: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1056: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1061: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1062: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1064: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1069: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1073: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1078: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1082: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1087: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1092: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1093: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1097: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1102: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1103: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1114: Negating unsigned value in function edit
            Warning W8041 .\edit.c 1130: Negating unsigned value in function edit
            Warning W8041 .\edit.c 2394: Negating unsigned value in function ins_compl_prep
            Warning W8041 .\edit.c 2485: Negating unsigned value in function ins_compl_prep
            Warning W8012 .\edit.c 5588: Comparing signed and unsigned values in function in_cinkeys
            Warning W8041 .\edit.c 5988: Negating unsigned value in function ins_ctrl_g
            Warning W8041 .\edit.c 5994: Negating unsigned value in function ins_ctrl_g
            Warning W8041 .\edit.c 6210: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6212: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6214: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6215: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6216: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6217: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6229: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6230: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6233: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6234: Negating unsigned value in function ins_start_select
            Warning W8041 .\edit.c 6329: Negating unsigned value in function ins_del
            .\eval.c:
            .\ex_cmds.c:
            Warning W8012 .\ex_cmds.c 1544: Comparing signed and unsigned values in function write_viminfo
            Warning W8012 .\ex_cmds.c 3899: Comparing signed and unsigned values in function do_sub
            Warning W8012 .\ex_cmds.c 3899: Comparing signed and unsigned values in function do_sub
            Warning W8012 .\ex_cmds.c 3908: Comparing signed and unsigned values in function do_sub
            Warning W8012 .\ex_cmds.c 3910: Comparing signed and unsigned values in function do_sub
            Warning W8012 .\ex_cmds.c 3912: Comparing signed and unsigned values in function do_sub
            Warning W8012 .\ex_cmds.c 3919: Comparing signed and unsigned values in function do_sub
            Warning W8012 .\ex_cmds.c 3938: Comparing signed and unsigned values in function do_sub
            .\ex_cmds2.c:
            .\ex_docmd.c:
            .\ex_eval.c:
            .\ex_getln.c:
            Warning W8041 .\ex_getln.c 307: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 307: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 308: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 308: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 310: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 310: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 311: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 311: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 342: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 342: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 343: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 343: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 344: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 344: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 345: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 345: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 356: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 363: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 365: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 373: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 374: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 386: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 386: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 431: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 433: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 480: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 487: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 511: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 662: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 784: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 802: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 804: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 808: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 809: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 812: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 818: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 821: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 897: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1059: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1060: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1078: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1086: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1087: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1101: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1243: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1244: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1246: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1253: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1254: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1256: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1283: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1284: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1287: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1288: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1289: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1290: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1308: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1309: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1309: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1345: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1345: Negating unsigned value in function getcmdline
            Warning W8041 .\ex_getln.c 1950: Negating unsigned value in function getexmodeline
            Warning W8041 .\ex_getln.c 1951: Negating unsigned value in function getexmodeline
            Warning W8012 .\ex_getln.c 5160: Comparing signed and unsigned values in function ex_window
            .\fileio.c:
            .\fold.c:
            .\getchar.c:
            Warning W8041 .\getchar.c 1516: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1516: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1521: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1522: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1523: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1524: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1525: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1526: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1527: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1528: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1529: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1530: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1531: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1532: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1533: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1534: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1535: Negating unsigned value in function vgetc
            Warning W8041 .\getchar.c 1536: Negating unsigned value in function vgetc
            .\main.c:
            Warning W8041 .\farsi.c 359: Negating unsigned value in function put_curr_and_l_to_X
            Warning W8041 .\farsi.c 378: Negating unsigned value in function put_and_redo
            Warning W8041 .\farsi.c 1249: Negating unsigned value in function fkmap
            Warning W8041 .\farsi.c 2280: Negating unsigned value in function farsi_fkey
            Warning W8041 .\farsi.c 2301: Negating unsigned value in function farsi_fkey
            .\mark.c:
            .\memfile.c:
            .\memline.c:
            .\menu.c:
            .\message.c:
            Warning W8041 .\message.c 1935: Negating unsigned value in function msg_puts_attr_len
            Warning W8041 .\message.c 1947: Negating unsigned value in function msg_puts_attr_len
            Warning W8041 .\message.c 1982: Negating unsigned value in function msg_puts_attr_len
            Warning W8041 .\message.c 2002: Negating unsigned value in function msg_puts_attr_len
            .\misc1.c:
            Warning W8041 .\misc1.c 2978: Negating unsigned value in function get_number
            Warning W8041 .\misc1.c 2978: Negating unsigned value in function get_number
            .\misc2.c:
            Warning W8041 .\misc2.c 1789: Negating unsigned value
            Warning W8041 .\misc2.c 1790: Negating unsigned value
            Warning W8041 .\misc2.c 1796: Negating unsigned value
            Warning W8041 .\misc2.c 1797: Negating unsigned value
            Warning W8041 .\misc2.c 1799: Negating unsigned value
            Warning W8041 .\misc2.c 1800: Negating unsigned value
            Warning W8041 .\misc2.c 1801: Negating unsigned value
            Warning W8041 .\misc2.c 1802: Negating unsigned value
            Warning W8041 .\misc2.c 1804: Negating unsigned value
            Warning W8041 .\misc2.c 1805: Negating unsigned value
            Warning W8041 .\misc2.c 1806: Negating unsigned value
            Warning W8041 .\misc2.c 1807: Negating unsigned value
            Warning W8041 .\misc2.c 1808: Negating unsigned value
            Warning W8041 .\misc2.c 1809: Negating unsigned value
            Warning W8041 .\misc2.c 1810: Negating unsigned value
            Warning W8041 .\misc2.c 1811: Negating unsigned value
            Warning W8041 .\misc2.c 1812: Negating unsigned value
            Warning W8041 .\misc2.c 1813: Negating unsigned value
            Warning W8041 .\misc2.c 1815: Negating unsigned value
            Warning W8041 .\misc2.c 1816: Negating unsigned value
            Warning W8041 .\misc2.c 1817: Negating unsigned value
            Warning W8041 .\misc2.c 1818: Negating unsigned value
            Warning W8041 .\misc2.c 1819: Negating unsigned value
            Warning W8041 .\misc2.c 1820: Negating unsigned value
            Warning W8041 .\misc2.c 1821: Negating unsigned value
            Warning W8041 .\misc2.c 1822: Negating unsigned value
            Warning W8041 .\misc2.c 1823: Negating unsigned value
            Warning W8041 .\misc2.c 1824: Negating unsigned value
            Warning W8041 .\misc2.c 1826: Negating unsigned value
            Warning W8041 .\misc2.c 1827: Negating unsigned value
            Warning W8041 .\misc2.c 1828: Negating unsigned value
            Warning W8041 .\misc2.c 1829: Negating unsigned value
            Warning W8041 .\misc2.c 1830: Negating unsigned value
            Warning W8041 .\misc2.c 1831: Negating unsigned value
            Warning W8041 .\misc2.c 1832: Negating unsigned value
            Warning W8041 .\misc2.c 1833: Negating unsigned value
            Warning W8041 .\misc2.c 1834: Negating unsigned value
            Warning W8041 .\misc2.c 1835: Negating unsigned value
            Warning W8041 .\misc2.c 1837: Negating unsigned value
            Warning W8041 .\misc2.c 1838: Negating unsigned value
            Warning W8041 .\misc2.c 1839: Negating unsigned value
            Warning W8041 .\misc2.c 1840: Negating unsigned value
            Warning W8041 .\misc2.c 1841: Negating unsigned value
            Warning W8041 .\misc2.c 1842: Negating unsigned value
            Warning W8041 .\misc2.c 1843: Negating unsigned value
            Warning W8041 .\misc2.c 1850: Negating unsigned value
            Warning W8041 .\misc2.c 1851: Negating unsigned value
            Warning W8041 .\misc2.c 1852: Negating unsigned value
            Warning W8041 .\misc2.c 1853: Negating unsigned value
            Warning W8041 .\misc2.c 1855: Negating unsigned value
            Warning W8041 .\misc2.c 1856: Negating unsigned value
            Warning W8041 .\misc2.c 1858: Negating unsigned value
            Warning W8041 .\misc2.c 1859: Negating unsigned value
            Warning W8041 .\misc2.c 1861: Negating unsigned value
            Warning W8041 .\misc2.c 1862: Negating unsigned value
            Warning W8041 .\misc2.c 1863: Negating unsigned value
            Warning W8041 .\misc2.c 1864: Negating unsigned value
            Warning W8041 .\misc2.c 1866: Negating unsigned value
            Warning W8041 .\misc2.c 1867: Negating unsigned value
            Warning W8041 .\misc2.c 1868: Negating unsigned value
            Warning W8041 .\misc2.c 1869: Negating unsigned value
            Warning W8041 .\misc2.c 1870: Negating unsigned value
            Warning W8041 .\misc2.c 1871: Negating unsigned value
            Warning W8041 .\misc2.c 1873: Negating unsigned value
            Warning W8041 .\misc2.c 1874: Negating unsigned value
            Warning W8041 .\misc2.c 1875: Negating unsigned value
            Warning W8041 .\misc2.c 1876: Negating unsigned value
            Warning W8041 .\misc2.c 1877: Negating unsigned value
            Warning W8041 .\misc2.c 1878: Negating unsigned value
            Warning W8041 .\misc2.c 1879: Negating unsigned value
            Warning W8041 .\misc2.c 1880: Negating unsigned value
            Warning W8041 .\misc2.c 1881: Negating unsigned value
            Warning W8041 .\misc2.c 1882: Negating unsigned value
            Warning W8041 .\misc2.c 2009: Negating unsigned value in function simplify_key
            Warning W8041 .\misc2.c 2282: Negating unsigned value in function find_special_key
            Warning W8041 .\misc2.c 2284: Negating unsigned value in function find_special_key
            .\move.c:
            .\mbyte.c:
            .\normal.c:
            Warning W8041 .\normal.c 376: Negating unsigned value
            Warning W8041 .\normal.c 378: Negating unsigned value
            Warning W8041 .\normal.c 379: Negating unsigned value
            Warning W8041 .\normal.c 381: Negating unsigned value
            Warning W8041 .\normal.c 383: Negating unsigned value
            Warning W8041 .\normal.c 384: Negating unsigned value
            Warning W8041 .\normal.c 386: Negating unsigned value
            Warning W8041 .\normal.c 387: Negating unsigned value
            Warning W8041 .\normal.c 389: Negating unsigned value
            Warning W8041 .\normal.c 390: Negating unsigned value
            Warning W8041 .\normal.c 391: Negating unsigned value
            Warning W8041 .\normal.c 392: Negating unsigned value
            Warning W8041 .\normal.c 393: Negating unsigned value
            Warning W8041 .\normal.c 394: Negating unsigned value
            Warning W8041 .\normal.c 396: Negating unsigned value
            Warning W8041 .\normal.c 398: Negating unsigned value
            Warning W8041 .\normal.c 399: Negating unsigned value
            Warning W8041 .\normal.c 401: Negating unsigned value
            Warning W8041 .\normal.c 403: Negating unsigned value
            Warning W8041 .\normal.c 405: Negating unsigned value
            Warning W8041 .\normal.c 406: Negating unsigned value
            Warning W8041 .\normal.c 407: Negating unsigned value
            Warning W8041 .\normal.c 417: Negating unsigned value
            Warning W8041 .\normal.c 418: Negating unsigned value
            Warning W8041 .\normal.c 634: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 670: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 672: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 830: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 830: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 831: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 831: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 834: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 834: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 835: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 835: Negating unsigned value in function normal_cmd
            Warning W8041 .\normal.c 3433: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3433: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3434: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3434: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3435: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3436: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3437: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3437: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3438: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 3438: Negating unsigned value in function unshift_special
            Warning W8041 .\normal.c 4286: Negating unsigned value in function nv_zet
            Warning W8041 .\normal.c 4300: Negating unsigned value in function nv_zet
            Warning W8041 .\normal.c 4301: Negating unsigned value in function nv_zet
            Warning W8041 .\normal.c 4361: Negating unsigned value in function nv_zet
            Warning W8041 .\normal.c 4406: Negating unsigned value in function nv_zet
            Warning W8041 .\normal.c 4423: Negating unsigned value in function nv_zet
            Warning W8041 .\normal.c 5276: Negating unsigned value in function nv_right
            Warning W8041 .\normal.c 5362: Negating unsigned value in function nv_left
            Warning W8041 .\normal.c 5367: Negating unsigned value in function nv_left
            Warning W8041 .\normal.c 6629: Negating unsigned value in function nv_abbrev
            Warning W8041 .\normal.c 7110: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 7133: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 7152: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 7187: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 7188: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 7250: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 7251: Negating unsigned value in function nv_g_cmd
            Warning W8041 .\normal.c 8053: Negating unsigned value in function nv_edit
            .\ops.c:
            Warning W8012 .\ops.c 4877: Comparing signed and unsigned values in function do_addsub
            Warning W8012 .\ops.c 4893: Comparing signed and unsigned values in function do_addsub
            .\option.c:
            .\quickfix.c:
            .\regexp.c:
            .\screen.c:
            .\search.c:
            .\syntax.c:
            .\tag.c:
            .\term.c:
            Warning W8041 .\term.c 225: Negating unsigned value
            Warning W8041 .\term.c 226: Negating unsigned value
            Warning W8041 .\term.c 227: Negating unsigned value
            Warning W8041 .\term.c 228: Negating unsigned value
            Warning W8041 .\term.c 231: Negating unsigned value
            Warning W8041 .\term.c 232: Negating unsigned value
            Warning W8041 .\term.c 234: Negating unsigned value
            Warning W8041 .\term.c 235: Negating unsigned value
            Warning W8041 .\term.c 236: Negating unsigned value
            Warning W8041 .\term.c 237: Negating unsigned value
            Warning W8041 .\term.c 238: Negating unsigned value
            Warning W8041 .\term.c 239: Negating unsigned value
            Warning W8041 .\term.c 240: Negating unsigned value
            Warning W8041 .\term.c 241: Negating unsigned value
            Warning W8041 .\term.c 242: Negating unsigned value
            Warning W8041 .\term.c 243: Negating unsigned value
            Warning W8041 .\term.c 244: Negating unsigned value
            Warning W8041 .\term.c 245: Negating unsigned value
            Warning W8041 .\term.c 258: Negating unsigned value
            Warning W8041 .\term.c 259: Negating unsigned value
            Warning W8041 .\term.c 260: Negating unsigned value
            Warning W8041 .\term.c 261: Negating unsigned value
            Warning W8041 .\term.c 262: Negating unsigned value
            Warning W8041 .\term.c 263: Negating unsigned value
            Warning W8041 .\term.c 264: Negating unsigned value
            Warning W8041 .\term.c 326: Negating unsigned value
            Warning W8041 .\term.c 327: Negating unsigned value
            Warning W8041 .\term.c 328: Negating unsigned value
            Warning W8041 .\term.c 329: Negating unsigned value
            Warning W8041 .\term.c 332: Negating unsigned value
            Warning W8041 .\term.c 333: Negating unsigned value
            Warning W8041 .\term.c 334: Negating unsigned value
            Warning W8041 .\term.c 335: Negating unsigned value
            Warning W8041 .\term.c 336: Negating unsigned value
            Warning W8041 .\term.c 337: Negating unsigned value
            Warning W8041 .\term.c 338: Negating unsigned value
            Warning W8041 .\term.c 339: Negating unsigned value
            Warning W8041 .\term.c 340: Negating unsigned value
            Warning W8041 .\term.c 341: Negating unsigned value
            Warning W8041 .\term.c 342: Negating unsigned value
            Warning W8041 .\term.c 343: Negating unsigned value
            Warning W8041 .\term.c 344: Negating unsigned value
            Warning W8041 .\term.c 355: Negating unsigned value
            Warning W8041 .\term.c 356: Negating unsigned value
            Warning W8041 .\term.c 357: Negating unsigned value
            Warning W8041 .\term.c 358: Negating unsigned value
            Warning W8041 .\term.c 359: Negating unsigned value
            Warning W8041 .\term.c 360: Negating unsigned value
            Warning W8041 .\term.c 363: Negating unsigned value
            Warning W8041 .\term.c 364: Negating unsigned value
            Warning W8041 .\term.c 365: Negating unsigned value
            Warning W8041 .\term.c 435: Negating unsigned value
            Warning W8041 .\term.c 436: Negating unsigned value
            Warning W8041 .\term.c 437: Negating unsigned value
            Warning W8041 .\term.c 438: Negating unsigned value
            Warning W8041 .\term.c 524: Negating unsigned value
            Warning W8041 .\term.c 525: Negating unsigned value
            Warning W8041 .\term.c 526: Negating unsigned value
            Warning W8041 .\term.c 527: Negating unsigned value
            Warning W8041 .\term.c 528: Negating unsigned value
            Warning W8041 .\term.c 529: Negating unsigned value
            Warning W8041 .\term.c 530: Negating unsigned value
            Warning W8041 .\term.c 531: Negating unsigned value
            Warning W8041 .\term.c 532: Negating unsigned value
            Warning W8041 .\term.c 533: Negating unsigned value
            Warning W8041 .\term.c 534: Negating unsigned value
            Warning W8041 .\term.c 535: Negating unsigned value
            Warning W8041 .\term.c 536: Negating unsigned value
            Warning W8041 .\term.c 537: Negating unsigned value
            Warning W8041 .\term.c 538: Negating unsigned value
            Warning W8041 .\term.c 539: Negating unsigned value
            Warning W8041 .\term.c 540: Negating unsigned value
            Warning W8041 .\term.c 541: Negating unsigned value
            Warning W8041 .\term.c 554: Negating unsigned value
            Warning W8041 .\term.c 555: Negating unsigned value
            Warning W8041 .\term.c 556: Negating unsigned value
            Warning W8041 .\term.c 557: Negating unsigned value
            Warning W8041 .\term.c 558: Negating unsigned value
            Warning W8041 .\term.c 559: Negating unsigned value
            Warning W8041 .\term.c 728: Negating unsigned value
            Warning W8041 .\term.c 729: Negating unsigned value
            Warning W8041 .\term.c 730: Negating unsigned value
            Warning W8041 .\term.c 731: Negating unsigned value
            Warning W8041 .\term.c 734: Negating unsigned value
            Warning W8041 .\term.c 736: Negating unsigned value
            Warning W8041 .\term.c 738: Negating unsigned value
            Warning W8041 .\term.c 739: Negating unsigned value
            Warning W8041 .\term.c 740: Negating unsigned value
            Warning W8041 .\term.c 741: Negating unsigned value
            Warning W8041 .\term.c 742: Negating unsigned value
            Warning W8041 .\term.c 743: Negating unsigned value
            Warning W8041 .\term.c 744: Negating unsigned value
            Warning W8041 .\term.c 745: Negating unsigned value
            Warning W8041 .\term.c 746: Negating unsigned value
            Warning W8041 .\term.c 747: Negating unsigned value
            Warning W8041 .\term.c 748: Negating unsigned value
            Warning W8041 .\term.c 749: Negating unsigned value
            Warning W8041 .\term.c 750: Negating unsigned value
            Warning W8041 .\term.c 763: Negating unsigned value
            Warning W8041 .\term.c 764: Negating unsigned value
            Error E2228 .\term.c 764: Too many error or warning messages
            *** 1 errors in Compile ***
            .\ui.c:
            Warning W8012 .\ui.c 1315: Comparing signed and unsigned values in function clip_get_word_boundaries
            Warning W8012 .\ui.c 1330: Comparing signed and unsigned values in function clip_get_word_boundaries
            .\undo.c:
            Warning W8012 .\undo.c 701: Comparing signed and unsigned values in function u_undoredo
            .\version.c:
            .\window.c:
            Warning W8041 .\window.c 260: Negating unsigned value in function do_window
            Warning W8041 .\window.c 275: Negating unsigned value in function do_window
            Warning W8041 .\window.c 291: Negating unsigned value in function do_window
            Warning W8041 .\window.c 293: Negating unsigned value in function do_window
            Warning W8041 .\window.c 300: Negating unsigned value in function do_window
            creating auto/pathdef.c
            0 file(s) copied.

            ** error 1 ** deleting auto\pathdef.c


            --
            Michael Jarvis
            michael@...
            http://www.jarvis.com/home.php
            "Freiheit stirbt in kleinen Stücken."
          • Bram Moolenaar
            ... I m actually using 5.5.1. Version number weirdness... ... It appears your compiler considers c to be unsigned. That sounds like a bug to me, characters
            Message 5 of 10 , May 13, 2004
            • 0 Attachment
              Michael Jarvis wrote:

              > On Thu, May 13, 2004 at 08:37:53PM +0200, Bram Moolenaar wrote:
              > > > The "-w-ngu" and "-w-csu" options silence a bunch of annoying warnings
              > > > that don't seem to matter.
              > >
              > > What warnings? The extra arguments don't cause trouble for BC 5.1.
              >
              > Note that even though I have Borland C++ Builder 6.0 (with latest
              > patches), the version of the command line compiler is:
              >
              > C:\src\vim-src\vim\vim63a\src>bcc32 --version
              > Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland

              I'm actually using 5.5.1. Version number weirdness...

              > Here's a log showing the warnings:

              It appears your compiler considers 'c' to be unsigned. That sounds like
              a bug to me, characters have always been signed. Although some
              compilers have a flag for it (my good old Amiga compilers does).

              Perhaps there is a flag to tell the compiler character constants are
              signed?

              --
              The psychic said, "God bless you." I said, "I didn't sneeze." She
              looked deep into my eyes and said, "You will, eventually." And, damn
              if she wasn't right. Two days later, I sneezed. --Ellen Degeneres

              /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
              /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
              \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
              \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
            • David Brown
              ... Signed/unsigned on characters has historically been an architecture feature. You apparently have only used platforms with signed characters. Indeed,
              Message 6 of 10 , May 13, 2004
              • 0 Attachment
                On Thu, May 13, 2004 at 09:53:37PM +0200, Bram Moolenaar wrote:

                > It appears your compiler considers 'c' to be unsigned. That sounds like
                > a bug to me, characters have always been signed. Although some
                > compilers have a flag for it (my good old Amiga compilers does).

                Signed/unsigned on characters has historically been an architecture
                feature. You apparently have only used platforms with signed
                characters. Indeed, signed chars seems to be the most popular.

                You can always declare the type to be 'signed char' if you depend on
                that.

                Dave
              • Michael Jarvis
                ... I ll look into it and see if there s a flag. I m more familiar with a UNIX environment, but since we have Borland C++ at work, I m taking advantage of it
                Message 7 of 10 , May 13, 2004
                • 0 Attachment
                  On Thu, May 13, 2004 at 09:53:37PM +0200, Bram Moolenaar wrote:
                  > > Here's a log showing the warnings:
                  >
                  > It appears your compiler considers 'c' to be unsigned. That sounds like
                  > a bug to me, characters have always been signed. Although some
                  > compilers have a flag for it (my good old Amiga compilers does).
                  >
                  > Perhaps there is a flag to tell the compiler character constants are
                  > signed?

                  I'll look into it and see if there's a flag. I'm more familiar with a
                  UNIX environment, but since we have Borland C++ at work, I'm taking
                  advantage of it to test out the Win32 version of vim. However, I find
                  myself using the Linux GTK and AIX Motif versions much more
                  frequently. :-)

                  Michael
                  --
                  Michael Jarvis
                  michael@...
                  http://www.jarvis.com/home.php
                  "Freiheit stirbt in kleinen Stücken."
                • Michael Jarvis
                  ... There is a flag, -K , that tells the compiler that chars are unsigned. If you use -K- it is supposed to make them signed. I tried both flags in the
                  Message 8 of 10 , May 13, 2004
                  • 0 Attachment
                    On Thu, May 13, 2004 at 03:20:05PM -0500, Michael Jarvis wrote:
                    > On Thu, May 13, 2004 at 09:53:37PM +0200, Bram Moolenaar wrote:
                    > > > Here's a log showing the warnings:
                    > >
                    > > It appears your compiler considers 'c' to be unsigned. That sounds like
                    > > a bug to me, characters have always been signed. Although some
                    > > compilers have a flag for it (my good old Amiga compilers does).
                    > >
                    > > Perhaps there is a flag to tell the compiler character constants are
                    > > signed?

                    There is a flag, "-K", that tells the compiler that chars are
                    unsigned. If you use "-K-" it is supposed to make them signed.

                    I tried both flags in the Makefile and it didn't seem to make a
                    difference either way. I'll have to keep working on it. Like I said,
                    I'm not that familiar with Borland.

                    Michael

                    --
                    Michael Jarvis
                    michael@...
                    http://www.jarvis.com/home.php
                    "Freiheit stirbt in kleinen Stücken."
                  • Bram Moolenaar
                    ... You cannot declare the type of c , that is the problem. I think a compiler that gives a warning for the following is braindead: int i; ... if (i == a )
                    Message 9 of 10 , May 13, 2004
                    • 0 Attachment
                      David Brown wrote:

                      > On Thu, May 13, 2004 at 09:53:37PM +0200, Bram Moolenaar wrote:
                      >
                      > > It appears your compiler considers 'c' to be unsigned. That sounds like
                      > > a bug to me, characters have always been signed. Although some
                      > > compilers have a flag for it (my good old Amiga compilers does).
                      >
                      > Signed/unsigned on characters has historically been an architecture
                      > feature. You apparently have only used platforms with signed
                      > characters. Indeed, signed chars seems to be the most popular.
                      >
                      > You can always declare the type to be 'signed char' if you depend on
                      > that.

                      You cannot declare the type of 'c', that is the problem. I think a
                      compiler that gives a warning for the following is braindead:

                      int i;
                      ...
                      if (i == 'a')

                      --
                      E M A C S
                      s e l o h
                      c t t n i
                      a a t f
                      p r t
                      e o
                      l

                      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
                      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
                      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
                      \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
                    • Bruce Mellows
                      ... You might check your C: Progra~1 Borland CBuilder6 Bin Bcc32.cfg for overrides. Further changing the BOR setting for your install is probably a bit much,
                      Message 10 of 10 , May 13, 2004
                      • 0 Attachment
                        Michael Jarvis wrote:

                        >On Thu, May 13, 2004 at 03:20:05PM -0500, Michael Jarvis wrote:
                        >
                        >
                        >>On Thu, May 13, 2004 at 09:53:37PM +0200, Bram Moolenaar wrote:
                        >>
                        >>
                        >>>>Here's a log showing the warnings:
                        >>>>
                        >>>>
                        >>>It appears your compiler considers 'c' to be unsigned. That sounds like
                        >>>a bug to me, characters have always been signed. Although some
                        >>>compilers have a flag for it (my good old Amiga compilers does).
                        >>>
                        >>>Perhaps there is a flag to tell the compiler character constants are
                        >>>signed?
                        >>>
                        >>>
                        >
                        >There is a flag, "-K", that tells the compiler that chars are
                        >unsigned. If you use "-K-" it is supposed to make them signed.
                        >
                        >I tried both flags in the Makefile and it didn't seem to make a
                        >difference either way. I'll have to keep working on it. Like I said,
                        >I'm not that familiar with Borland.
                        >
                        >Michael
                        >
                        >--
                        >Michael Jarvis
                        >michael@...
                        >http://www.jarvis.com/home.php
                        >"Freiheit stirbt in kleinen Stücken."
                        >
                        >
                        >
                        You might check your C:\Progra~1\Borland\CBuilder6\Bin\Bcc32.cfg for
                        overrides.

                        Further changing the BOR setting for your install is probably a bit
                        much, you should 'set BOR=C:\Progra~1\Borland\CBuilder6' like the rest
                        of us would.
                      Your message has been successfully submitted and would be delivered to recipients shortly.