Commit graph

15 commits

Author SHA1 Message Date
Kamil Hornicek cd1f57b5d4 [CMD]
- fix resource leaks CID 716324, 716323, 716322, 716321, 716320, 716319, 716318

svn path=/trunk/; revision=64871
2014-10-21 16:05:54 +00:00
Hermès Bélusca-Maïto 523f0d4f97 [CMD]
Yet again some whitespace fixes.

svn path=/trunk/; revision=59396
2013-06-30 16:10:54 +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 3f69dc1614 [CMD]
Fix whitespace (part 4/x) (convert tabs into 4-space indent).

svn path=/trunk/; revision=59383
2013-06-30 12:27:18 +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
Jeffrey Morlan 39934ca5e2 cmd_move:
- Only check for options at the beginning of the command line (subsequent code already assumed the filenames were at the end).
- Give an error message if too many parameters are given.
- If no destination is given, default to current directory.
- Replace excessively complicated code to get source directory with single GetFullPathName call; hopefully that is sufficient. Check for pszFile == NULL to prevent crash that occurred when source was "/..".
- To determine whether source wildcard matches are files or directories, just use WIN32_FIND_DATA's dwFileAttributes; it's easier than constructing paths to pass to IsExistingFile/IsExistingDirectory.
- Fix memory leaks: some returns were missing freep(arg).

svn path=/trunk/; revision=38910
2009-01-18 20:21:03 +00:00
Jeffrey Morlan 2429c7df65 Don't treat a slash as the beginning of a new argument for the MOVE command (Bug 4013). Patch by Víctor Martínez Calvo <vicmarcal at hotmail.com>.
svn path=/trunk/; revision=38811
2009-01-17 12:55:46 +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
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