Indeed with VS2010, checking for the string content " 16." instead of "16." makes version checking fail.
After checking with a hex editor what was the character preceding the number "1" of the "16." part of the
version string returned by cl.exe, I saw that it wasn't a space as thought by the author, but the character
of code 0xA0 ...
svn path=/trunk/; revision=59437
Forgot to add those files in the previous commit r59435:
We now store only console handles and not console pointers themselves.
svn path=/trunk/; revision=59436
- Use a handle table for storing consoles. Now checking validity of console handles is done in O(1) instead of O(n) as before.
I will see later on whether it would be good to have both a handle table and a linked list (which is removed here) for storing them
(when condrv will be a real console driver, handles to consoles will be obtained as you would obtain usual handles to devices, etc...
so that consoles will be internally stored in a linked list again).
- Add a "dummy" frontend to have the possibility to adopt default actions when no frontend is attached to a console, and to always have
a valid virtual table for them.
svn path=/trunk/; revision=59435
- Fix some files' info-header text.
- Move code of SrvSetConsoleWindowInfo to ConDrvSetConsoleWindowInfo.
- Introduce the helper function GetScreenBufferSizeUnits to retrieve screen-buffer width/height units.
svn path=/trunk/; revision=59433
- Switch back to a 32K receive window, because WRAP doesn't work with a 64K window and our receive code depends on that functionality
svn path=/trunk/; revision=59430
- Fix receive stalling if more than 10 packets are in the receive window
- Tune configuration to use larger DMA transfers and begin DMA earlier
svn path=/trunk/; revision=59429
- Add an RTL8139 driver based on documentation on OSDev, our existing drivers, and some prior work by Z98
- It should fully work on emulated and real RTL8139 hardware (I developed against QEMU's RTL8139)
- It's not 100% complete (some reset and halt paths aren't done) but everything I tested worked (ping, dwnl, rapps, Firefox)
svn path=/trunk/; revision=59427
Features-only commit:
- Fix version presentation at startup and when using the "ver" command (in French)
- Add to the prompt's command help, the fact that the $S specifier can be used to add a space.
- Implement the $I prompt specifier (see http://www.robvanderwoude.com/prompt.php), which sets
an information line on top of the screen (à la OS/2).
Use this new setting by default (I'm doing a poll on who loves it / hates it, and how we can improve it).
To disable it, use the command: "prompt $p$g" (the default windows' prompt).
To enable it, add the $s specifier to the prompt string (e.g. "prompt $i$p$g").
For your information, OS/2 uses "prompt $i[$p]" :)
svn path=/trunk/; revision=59422
- Move SrvSetConsoleWindowInfo to a better place.
- When enlarging the console buffer, use the attributes of the last cell of each line to fill the new cells for each line.
- Remove usage of HAVE_WMEMSET / wmemset for resizing the buffer (NOTE: maybe it will be needed again later on...)
svn path=/trunk/; revision=59420
Remove extra \r put by hand in some console output functions, so that we use there only \n.
But modify the ConWrite function so that, if we redirect output to something else than a console
(e.g. redirect to a file or to a serial console via ... > AUX), newline characters \n get converted
into \r\n automatically.
What you get, for instance, is: https://imageshack.com/a/img853/5834/l34.png
svn path=/trunk/; revision=59411
Fix the default input & output console modes. Now, you can use the command interpreter via serial port redirection, by:
1- Enabling a serial port on the machine on which ReactOS runs.
2- Launching:
cmd > AUX
at a command prompt.
svn path=/trunk/; revision=59405
Add a helper function which checks whether we are going to output text to a console handle or to a file handle.
Use it in ConWrite and in ConPrintfPaging.
svn path=/trunk/; revision=59401
- Remove erratic tabs in language files.
- Add the fact that one can use the "help" command with: "help command" to obtain help for "command".
svn path=/trunk/; revision=59391
And finally...
...
... fix whitespace, part 6/6 !!!! (convert tabs into 4-space indent).
Really, CMD is, together with win32k, the worst indented project I've ever seen.
You have lots of non-sensical extra newlines put in the middle of the code,
weird indentation made by a mix of tabs / spaces which take either 4 or 8 or even (!!)
2 spaces per indentation level; sometimes some guy mixed his space key with his tab key
to add a space between a word and another one; a mix of some sh*tty code styles (K&R and personal ones),
many many times no space between a logical keyword and the operand on which it applies, etc... etc...
I tried to put some sense in it, but I may have forgotten some insidious tabs somewhere...
svn path=/trunk/; revision=59389
- Fix MSVC version detection in configure.cmd
CORE-7337 #comment VS12 is not supported by CMake yet. With r59381, configure should at least give you a proper error message.
svn path=/trunk/; revision=59381
- Don't intentionally break on MSVC. I'm too lazy to change all of these to __REACTOS__, and it's a hack anyway...
CORE-7335
svn path=/trunk/; revision=59380
Correct some definitions (checked against official DDK). Fix also FSCTL_SET_SPARSE.
CORE-7333 #resolve #comment Fixed in revision r59376, thanks.
svn path=/trunk/; revision=59376