Refine code to follow coding style.

Signed-off-by: ydong10
Reviewed-by: jcarsey

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12383 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-09-20 01:34:39 +00:00
parent 7ea5f0cc4e
commit f62f07ee2c
1 changed files with 14 additions and 2 deletions

View File

@ -30,7 +30,7 @@
**/
INTN
EFIAPI
Test(CONST VOID*b1, CONST VOID*b2)
Test(CONST VOID *b1, CONST VOID *b2)
{
if (*(INTN*)b1 == *(INTN*)b2) {
return (0);
@ -62,7 +62,19 @@ ShellAppMain (
IN CHAR16 **Argv
)
{
INTN Array[10] = {2,3,4,1,5,6,7,8,1,5};
INTN Array[10];
Array[0] = 2;
Array[1] = 3;
Array[2] = 4;
Array[3] = 1;
Array[4] = 5;
Array[5] = 6;
Array[6] = 7;
Array[7] = 8;
Array[8] = 1;
Array[9] = 5;
Print(L"Array = %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\r\n", Array[0],Array[1],Array[2],Array[3],Array[4],Array[5],Array[6],Array[7],Array[8],Array[9]);
PerformQuickSort(Array, 10, sizeof(INTN), Test);
Print(L"POST-SORT\r\n");