Ignore:
Timestamp:
Sep 16, 2006, 6:56:25 AM (19 years ago)
Author:
bird
Message:

Cleaning up the modifications. Changes are now either configurable or marked, and dead stuff has been removed (dll shell).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/function.c

    r503 r520  
    2929#endif
    3030
    31 #ifdef WINDOWS32
    32 #include "pathstuff.h"
     31#ifdef WINDOWS32 /* bird */
     32# include "pathstuff.h"
    3333#endif
    3434
     
    16651665  CLOSE_ON_EXEC(pipedes[0]);
    16661666  /* Never use fork()/exec() here! Use spawn() instead in exec_command() */
    1667   pid = child_execute_job (0, pipedes[1], command_argv, envp, NULL);
     1667  pid = child_execute_job (0, pipedes[1], command_argv, envp);
    16681668  if (pid < 0)
    16691669    perror_with_name (error_prefix, "spawn");
     
    19001900    return NULL;
    19011901
    1902 #ifdef WINDOWS32
     1902#ifdef WINDOWS32                                                    /* bird */
    19031903  dest = w32ify((char *)name, 1);
    19041904  if (!dest)
    1905       return NULL;
     1905    return NULL;
    19061906  {
    19071907  size_t len = strlen(dest);
     
    19121912  (void)end; (void)start; (void)apath_limit;
    19131913
    1914 #elif defined __OS2__
     1914#elif defined __OS2__                                               /* bird */
    19151915  if (_abspath(apath, name, GET_PATH_MAX))
    1916       return NULL;
     1916    return NULL;
    19171917  dest = strchr(apath, '\0');
    19181918
     
    19891989
    19901990  /* Unless it is root strip trailing separator.  */
    1991 #ifdef HAVE_DOS_PATHS
     1991#ifdef HAVE_DOS_PATHS /* bird (is this correct? what about UNC?) */
    19921992  if (dest > apath + 1 + (apath[0] != '/') && dest[-1] == '/')
    19931993#else
     
    20772077}
    20782078
    2079 #ifdef KMK
     2079#ifdef CONFIG_WITH_TOUPPER_TOLOWER
    20802080static char *
    20812081func_toupper_tolower (char *o, char **argv, const char *funcname)
     
    20992099  return o;
    21002100}
    2101 #endif
     2101#endif /* CONFIG_WITH_TOUPPER_TOLOWER */
    21022102
    21032103/* Lookup table for builtin functions.
     
    21582158  { STRING_SIZE_TUPLE("not"),           0,  1,  1,  func_not},
    21592159#endif
    2160 #ifdef KMK
     2160#ifdef CONFIG_WITH_TOUPPER_TOLOWER
    21612161  { STRING_SIZE_TUPLE("toupper"),       0,  1,  1,  func_toupper_tolower},
    21622162  { STRING_SIZE_TUPLE("tolower"),       0,  1,  1,  func_toupper_tolower},
Note: See TracChangeset for help on using the changeset viewer.