Commit graph

20 commits

Author SHA1 Message Date
Amine Khaldi
0ee830d7a4 * Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
2016-09-09 15:11:19 +00:00
Hermès Bélusca-Maïto
b80598739f [CMD]
- GOTO command: Add a lower-bound test when skipping trailing spaces and such.
- CD/CHDIR command: Fix the helper SetRootPath function so that it fails if getting the full path string fails, and remove trailing whitespace from directory string. Fixes stuff like:
  cd .. && echo success
  cd ".. " && echo success
  etc...
CORE-6810

svn path=/trunk/; revision=67020
2015-04-03 13:27:21 +00:00
Hermès Bélusca-Maïto
d40eb536e9 [CMD]
Fix some people's names presentation

svn path=/trunk/; revision=59390
2013-06-30 13:23:30 +00:00
Hermès Bélusca-Maïto
6437619ff3 [CMD]
Fix whitespace (part 3/x) (convert tabs into 4-space indent).

svn path=/trunk/; revision=59379
2013-06-30 00:08:43 +00:00
Amine Khaldi
2bd930547c * Slap *some* sense into our header inclusions.
* This significantly shrinks the dependency tracking data and the compiled objects size, which speeds up the whole build process (especially the incremental builds) accelerating the daily development as a result.
* No intended code changes, ~27% smaller build. Enjoy ;)

svn path=/trunk/; revision=58214
2013-01-24 23:00:42 +00:00
Timo Kreuzer
00b699d98b [CMD]
Fix MSVC / 64 bit warnings

svn path=/trunk/; revision=56258
2012-03-28 09:50:04 +00:00
Amine Khaldi
74634a76e2 * Fix some unused but set variables. Brought to you by gcc 4.6.1.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53676
2011-09-10 21:31:09 +00:00
Timo Kreuzer
7c988c53c5 [CMD]
replace FILE IO with Memory IO functions for batch files
Patch by HansH (hans at atbas dot org)

See issue #5807 for more details.

svn path=/trunk/; revision=52047
2011-06-01 19:33:20 +00:00
Jeffrey Morlan
341c5b2e5f - Allow running a batch file from inside a FOR
- A little cleanup

svn path=/trunk/; revision=40038
2009-03-15 15:45:17 +00:00
Jeffrey Morlan
6c2116d0cf - Implement call :label by creating a new batch context; this way calls can be nested and have their own %0-%9 parameters.
- GetBatchVar: Implement %~n. Remove %? (an old FreeDOS-ism; the Windows equivalent is %ERRORLEVEL%)

svn path=/trunk/; revision=35681
2008-08-26 20:36:38 +00:00
Jeffrey Morlan
c49ed3a82c Remove the "LPTSTR cmd" argument to internal commands; there's no need for a command to be told its own name. It was only used in two places:
- a hack in cmd_mkdir that was already obsolete a decade ago
- to distinguish "echo" from "echo.", but that is the wrong way to implement this anyway. There's nothing particularly special about the period, "echo" is just one of those commands that is lenient about where its parameters begin, and when it echos a line, the first character (usually a space, but in the case of "echo." a period) is skipped.

svn path=/trunk/; revision=35647
2008-08-25 23:22:03 +00:00
Jeffrey Morlan
198d88a60b - In cmd, add ConOutResPrintf and ConErrResPrintf functions for printf-ing from a resource string; use it to shorten several instances of LoadString+Con*Printf.
- Also change FilePromptYN and FilePromptYNA to take a resource ID. Remove varargs code which nobody used (and didn't actually work anyway)

svn path=/trunk/; revision=34816
2008-07-26 22:49:49 +00:00
Hervé Poussineau
c79d92ab52 Fix debug output of strings
svn path=/trunk/; revision=33536
2008-05-15 20:29:50 +00:00
Hervé Poussineau
2f9c333ded cmd: replace static traces by dynamic ones
svn path=/trunk/; revision=33533
2008-05-15 20:02:05 +00:00
Christoph von Wittich
cf39f6646d fix a bug in goto
a stubs for setlocal and endlocal (our default is delayed expansion)

svn path=/trunk/; revision=32073
2008-02-01 09:49:58 +00:00
Christoph von Wittich
76569bc213 handle call :Label
fix goto :Label

svn path=/trunk/; revision=32070
2008-01-31 20:55:05 +00:00
Daniel Reimer
ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Thomas Bluemel
df91a99233 - Add code to detect buffer overflows and buffer underflows on memory operations. This code is only enabled if _DEBUG is defined.
- Change all calls to malloc, realloc and free to cmd_alloc, cmd_realloc and cmd_free

svn path=/trunk/; revision=28065
2007-08-01 10:17:13 +00:00
Eric Kohl
e0364c78da Remove outdated email addresses.
svn path=/trunk/; revision=26648
2007-05-05 11:32:25 +00:00
Ged Murphy
a5c746a592 move explorer and cmd. Add a few .rbuild files
svn path=/trunk/; revision=21019
2006-02-16 23:23:37 +00:00