- Timestamp:
- Jan 24, 2007, 11:21:56 PM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/Makefile.kmk
r738 r785 4 4 # kBuild Makefile for kmk_ash. 5 5 # 6 # Copyright (c) 2005-200 6 knut st. osmundsen <bird-src-spam@anduin.net>6 # Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 # 8 8 … … 22 22 EXEC_HASH_BANG_SCRIPT PC_OS2_LIBPATHS PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS 23 23 kmk_ash_DEFS.darwin = \ 24 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME 24 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME 25 25 kmk_ash_DEFS.freebsd = \ 26 26 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME … … 118 118 # ATTENTION! ATTENTION! ATTENTION! 119 119 # 120 # Older ash versions has trouble with some of these scripts, great. 120 # Older ash versions has trouble with some of these scripts, great. 121 121 # Kudos to the NetBSD guys for this clever move. ;) 122 122 # -
trunk/src/ash/win/err.c
r632 r785 4 4 * Override err.h so we get the program name right. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 33 33 34 34 /** The current program name. */ 35 const char *g_progname = "kmk"; 35 const char *g_progname = "kmk"; 36 36 37 37 -
trunk/src/ash/win/err.h
r632 r785 4 4 * Override err.h stuff so we get the program names right. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/ash/win/mscfakes.c
r636 r785 4 4 * Fake Unix stuff for MSC. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 41 41 42 42 char *dirname(char *path) 43 { 43 { 44 44 /** @todo later */ 45 45 return path; … … 131 131 return cch; 132 132 } 133 #endif 133 #endif 134 134 135 135 … … 166 166 fprintf(stderr, "ioctl(%d, %d,..)\n", fd, iCmd); 167 167 return 0; 168 } 168 } 169 169 170 170 int tcsetpgrp(int fd, pid_t pgrp) -
trunk/src/ash/win/mscfakes.h
r636 r785 4 4 * Unix fakes for MSC. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 41 41 #if !defined(__GNUC__) && !defined(__attribute__) 42 42 #define __attribute__(a) 43 #endif 43 #endif 44 44 45 45 #define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR) … … 93 93 94 94 #ifndef timerisset 95 struct timeval 95 struct timeval 96 96 { 97 97 long tv_sec; 98 98 long tv_usec; 99 99 }; 100 #endif 101 102 struct iovec 100 #endif 101 102 struct iovec 103 103 { 104 104 char *iov_base; … … 132 132 #else 133 133 #define snprintf _snprintf 134 #endif 134 #endif 135 135 size_t strlcpy(char *, const char *, size_t); 136 136 int symlink(const char *pszDst, const char *pszLink); … … 152 152 /* signal hacks */ 153 153 #include <signal.h> 154 typedef struct sigset 155 { 156 unsigned long __bitmap[1]; 154 typedef struct sigset 155 { 156 unsigned long __bitmap[1]; 157 157 } sigset_t; 158 158 typedef void __sighandler_t(int); … … 200 200 201 201 #endif /* _MSC_VER */ 202 #endif 203 202 #endif 203 -
trunk/src/fastdep/Makefile
r7 r785 6 6 # Makefile for the Quick-and-Dirty dependency utility. (FastDep) 7 7 # 8 # Copyright (c) 1999-2002 knut st. osmundsen (bird @anduin.net)8 # Copyright (c) 1999-2002 knut st. osmundsen (bird-kBuild-spam@anduin.net) 9 9 # 10 10 # GPL -
trunk/src/fastdep/fastdep.c
r7 r785 3 3 * Fast dependents. (Fast = Quick and Dirty!) 4 4 * 5 * Copyright (c) 1999-2002 knut st. osmundsen (bird @anduin.net)5 * Copyright (c) 1999-2002 knut st. osmundsen (bird-kBuild-spam@anduin.net) 6 6 * 7 7 * GPL … … 1006 1006 "\n" 1007 1007 "Options and files could be mixed.\n" 1008 " copyright (c) 1999-2002 knut st. osmundsen (bird @anduin.net)\n",1008 " copyright (c) 1999-2002 knut st. osmundsen (bird-kBuild-spam@anduin.net)\n", 1009 1009 ODIN32_BUILD_NR, 1010 1010 pszDefaultDepFile … … 2396 2396 * @param pszS2 String 2 2397 2397 * @param cch Length to compare (relative to string 1) 2398 * @author knut st. osmundsen (bird@anduin.net)2399 2398 */ 2400 2399 int strnicmpwords(const char *pszS1, const char *pszS2, int cch) … … 3047 3046 * @returns Pointer to the first char after word. 3048 3047 * @param psz Where to start. 3049 * @author knut st. osmundsen (bird@anduin.net)3050 3048 */ 3051 3049 char *findEndOfWord(char *psz) … … 3071 3069 * @param psz Where to start. 3072 3070 * @param pszStart Where to stop. 3073 * @author knut st. osmundsen (bird@anduin.net)3074 3071 */ 3075 3072 char *findStartOfWord(const char *psz, const char *pszStart) … … 3117 3114 * @param psz Pointer to the string which is to be trimmed. 3118 3115 * @status completely implmented. 3119 * @author knut st. osmundsen (bird@anduin.net)3120 3116 */ 3121 3117 INLINE char *trim(char *psz) … … 3139 3135 * @param psz Pointer to the string which is to be right trimmed. 3140 3136 * @status completely implmented. 3141 * @author knut st. osmundsen (bird@anduin.net)3142 3137 */ 3143 3138 INLINE char *trimR(char *psz) … … 3159 3154 * @param psz Pointer to the string which is to be quote-trimmed. 3160 3155 * @status completely implmented. 3161 * @author knut st. osmundsen (bird@anduin.net)3162 3156 */ 3163 3157 INLINE char *trimQuotes(char *psz) … … 3183 3177 * @param pszOut Ouput (preprocessed) string. 3184 3178 * @param pszIn Input string. 3185 * @author knut st. osmundsen (bird@anduin.net)3186 3179 */ 3187 3180 char *PreProcessLine(char *pszOut, const char *pszIn) -
trunk/src/gmake/kbuild.c
r729 r785 4 4 * kBuild specific make functionality. 5 5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 48 48 /** 49 49 * Applies the specified default path to any relative paths in *ppsz. 50 * 50 * 51 51 * @param pDefPath The default path. 52 * @param ppsz Pointer to the string pointer. If we expand anything, *ppsz 52 * @param ppsz Pointer to the string pointer. If we expand anything, *ppsz 53 53 * will be replaced and the caller is responsible for calling free() on it. 54 54 * @param pcch IN: *pcch contains the current string length. … … 57 57 * @param fCanFree Whether *ppsz should be freed when we replace it. 58 58 */ 59 static void 59 static void 60 60 kbuild_apply_defpath(struct variable *pDefPath, char **ppsz, int *pcch, int *pcchAlloc, int fCanFree) 61 61 { … … 63 63 const char *pszInCur; 64 64 unsigned int cchInCur; 65 unsigned int cRelativePaths; 66 67 /* 68 * The first pass, count the relative paths. 65 unsigned int cRelativePaths; 66 67 /* 68 * The first pass, count the relative paths. 69 69 */ 70 70 cRelativePaths = 0; … … 77 77 #else 78 78 if (pszInCur[0] != '/') 79 #endif 79 #endif 80 80 cRelativePaths++; 81 } 82 83 /* 84 * The second pass construct the new string. 81 } 82 83 /* 84 * The second pass construct the new string. 85 85 */ 86 86 if (cRelativePaths) … … 100 100 #else 101 101 if (pszInCur[0] != '/') 102 #endif 102 #endif 103 103 { 104 104 PATH_VAR(szAbsPathIn); … … 133 133 } 134 134 } 135 } 135 } 136 136 /* the final copy (includes the nil). */ 137 137 cchInCur = *ppsz + *pcch - pszInNextCopy; … … 698 698 pSdks->cGlobal = 0; 699 699 sprintf(pszTmp, "$(SDKS) $(SDKS.%s) $(SDKS.%s) $(SDKS.%s) $(SDKS.%s.%s)", 700 pBldType->value, 701 pBldTrg->value, 700 pBldType->value, 701 pBldTrg->value, 702 702 pBldTrgArch->value, 703 703 pBldTrg->value, pBldTrgArch->value); … … 744 744 pTarget->value, pSource->value, pBldTrgArch->value, 745 745 pTarget->value, pSource->value, pBldTrg->value, pBldTrgArch->value); 746 assert(cch < cchTmp); (void)cch; 746 assert(cch < cchTmp); (void)cch; 747 747 pszIterator = pSdks->apsz[3] = allocated_variable_expand(pszTmp); 748 748 while ((pszCur = find_next_token(&pszIterator, &cchCur)) != 0) … … 962 962 iSdkEnd = iDirection == 1 ? pSdks->iGlobal + pSdks->cGlobal : pSdks->iGlobal - 1; 963 963 for (iSdk = iDirection == 1 ? pSdks->iGlobal : pSdks->iGlobal + pSdks->cGlobal - 1; 964 iSdk != iSdkEnd; 964 iSdk != iSdkEnd; 965 965 iSdk += iDirection) 966 966 { … … 999 999 iSdkEnd = iDirection == 1 ? pSdks->iTarget + pSdks->cTarget : pSdks->iTarget - 1; 1000 1000 for (iSdk = iDirection == 1 ? pSdks->iTarget : pSdks->iTarget + pSdks->cTarget - 1; 1001 iSdk != iSdkEnd; 1001 iSdk != iSdkEnd; 1002 1002 iSdk += iDirection) 1003 1003 { … … 1035 1035 /* the source sdks */ 1036 1036 iSdkEnd = iDirection == 1 ? pSdks->iSource + pSdks->cSource : pSdks->iSource - 1; 1037 for (iSdk = iDirection == 1 ? pSdks->iSource : pSdks->iSource + pSdks->cSource - 1; 1038 iSdk != iSdkEnd; 1037 for (iSdk = iDirection == 1 ? pSdks->iSource : pSdks->iSource + pSdks->cSource - 1; 1038 iSdk != iSdkEnd; 1039 1039 iSdk += iDirection) 1040 1040 { … … 1361 1361 /* 1362 1362 * If we've got a default path, we must expand the source now. 1363 * If we do this too early, "<source>_property = stuff" won't work becuase 1363 * If we do this too early, "<source>_property = stuff" won't work becuase 1364 1364 * our 'source' value isn't what the user expects. 1365 1365 */ -
trunk/src/gmake/kbuild.h
r530 r785 4 4 * kBuild specific make functionality. 5 5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 34 34 extern char *func_kbuild_source_one PARAMS((char *o, char **argv, const char *pszFuncName)); 35 35 36 #endif 36 #endif -
trunk/src/gmake/kmkbuiltin.c
r775 r785 4 4 * kMk Builtin command execution. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/kmkbuiltin.h
r775 r785 4 4 * kMk Builtin command handling. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/kmkbuiltin/append.c
r769 r785 4 4 * kMk Builtin command - append text to file. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/kmkbuiltin/darwin.c
r557 r785 4 4 * Missing BSD functions on Darwin / Mac OS X. 5 5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/kmkbuiltin/err.c
r370 r785 4 4 * Override err.h so we get the program name right. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 33 33 34 34 /** The current program name. */ 35 const char *g_progname = "kmk"; 35 const char *g_progname = "kmk"; 36 36 37 37 -
trunk/src/gmake/kmkbuiltin/err.h
r370 r785 4 4 * Override err.h stuff so we get the program names right. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/kmkbuiltin/mscfakes.c
r775 r785 4 4 * Fake Unix stuff for MSC. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/kmkbuiltin/mscfakes.h
r775 r785 4 4 * Unix fakes for MSC. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/gmake/testcase-math.kmk
r763 r785 4 4 # kBuild - testcase for the math functions. 5 5 # 6 # Copyright (c) 2007 knut st. osmundsen <bird-k build-src@anduin.net>6 # Copyright (c) 2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 # 8 8 # -
trunk/src/gmake/testcase-stack.kmk
r720 r785 4 4 # kBuild - testcase for the functions. 5 5 # 6 # Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net>6 # Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 # 8 8 # -
trunk/src/kDepIDB/Makefile.kmk
r553 r785 4 4 # kDepIDB - IDB based dependency generator. 5 5 # 6 # Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>6 # Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 # 8 8 # -
trunk/src/kDepIDB/kDepIDB.c
r713 r785 4 4 * kDepIDB - Extract dependency information from a MS Visual C++ .idb file. 5 5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/kDepPre/Makefile.kmk
r553 r785 4 4 # kDepPre - Precompiler base dependency generator. 5 5 # 6 # Copyright (c) 2005 knut st. osmundsen <bird@anduin.net>6 # Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 # 8 8 # -
trunk/src/kDepPre/kDepPre.c
r393 r785 4 4 * kDepPre - Dependency Generator using Precompiler output. 5 5 * 6 * Copyright (c) 2005-200 6 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/lib/Makefile.kmk
r648 r785 4 4 # kDepIDB - IDB based dependency generator. 5 5 # 6 # Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>6 # Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 # 8 8 # -
trunk/src/lib/kDep.c
r733 r785 2 2 /** @file 3 3 * 4 * kDep - Common Dependency Managemnt Code. 5 * 6 * Copyright (c) 2004-200 6 knut st. osmundsen <bird@innotek.de>4 * kDep - Common Dependency Managemnt Code. 5 * 6 * Copyright (c) 2004-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * … … 84 84 #ifdef __WIN32__ 85 85 /** 86 * Corrects the case of a path and changes any path components containing 86 * Corrects the case of a path and changes any path components containing 87 87 * spaces with the short name (which can be longer). 88 * 88 * 89 89 * Expects a _fullpath! 90 90 * -
trunk/src/lib/kDep.h
r393 r785 2 2 /** @file 3 3 * 4 * kDep - Common Dependency Managemnt Code. 4 * kDep - Common Dependency Managemnt Code. 5 5 * 6 * Copyright (c) 2004-200 6 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2004-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * -
trunk/src/lib/startuphacks-win.c
r678 r785 4 4 * kBuild - Alternative argument parser for the windows startup code. 5 5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird-kbuild-pszSrc@anduin.net>6 * Copyright (c) 2006-2007 knut st. osmundsen <bird-kBuild-spam@anduin.net> 7 7 * 8 8 * parse_args(): Copyright (c) 1992-1998 by Eberhard Mattes … … 58 58 int cb; 59 59 60 /* 61 * Set the program name. 60 /* 61 * Set the program name. 62 62 */ 63 63 GetModuleFileName(NULL, s_szProgramName, MAX_PATH); … … 65 65 #if _MSC_VER >= 1400 66 66 _set_pgmptr(s_szProgramName); 67 #endif 67 #endif 68 68 69 69 /* … … 73 73 if (!pszCmdLine || !*pszCmdLine) 74 74 pszCmdLine = s_szProgramName; 75 75 76 76 /* 77 77 * Parse the argument commandline emitting the unix argument vector. -
trunk/src/sed/Makefile.kmk
-
Property svn:keywords
set to
Id
r738 r785 1 # $Id :$1 # $Id$ 2 2 3 3 -
Property svn:keywords
set to
Note:
See TracChangeset
for help on using the changeset viewer.