Skip to content

Commit

Permalink
add ico rc; update test
Browse files Browse the repository at this point in the history
add window resource file
add ascii icon
update test
  • Loading branch information
ManojTGN committed Apr 11, 2024
1 parent c7eb6f3 commit 69d635f
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
Binary file added ascii.ico
Binary file not shown.
32 changes: 32 additions & 0 deletions ascii.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include <windows.h>

IDI_ICON1 ICON "ascii.ico"

VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,3,2,10
PRODUCTVERSION 0,3,2,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "AceContra\0"
VALUE "FileDescription", "AsciiTable shows octal, hexadecimal, and decimal representations of ascii characters\0"
VALUE "FileVersion", "0.3.2.10\0"
VALUE "InternalName", "YourInternalName\0"
VALUE "LegalCopyright", "AceContra\0"
VALUE "OriginalFilename", "ascii_x64.exe\0"
VALUE "ProductName", "asciiTable\0"
VALUE "ProductVersion", "0.3.2.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
1 change: 0 additions & 1 deletion headers/ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ typedef struct parameter{

uint8_t order; //0 - default , (--asc)1 - ascending, (--des)2 - desending ordered output table
bool color; //--vt100 register ansi vt100 escape sequence color to the terminal

}asciiParams;

uint8_t isHex( char* _hexadecimal );
Expand Down
1 change: 0 additions & 1 deletion src/ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ typedef struct parameter{

uint8_t order; //0 - default , (--asc)1 - ascending, (--des)2 - desending ordered output table
bool color; //--vt100 register ansi vt100 escape sequence color to the terminal

}asciiParams;

uint8_t isHex( char* _hexadecimal );
Expand Down
15 changes: 13 additions & 2 deletions test/test.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#include <assert.h>
#include "../headers/ascii.h"

#define OCTAL 8
#define BINARY 2
#define OCTAL 8
#define BINARY 2
#define DECIMAL 10

int main(){

Expand Down Expand Up @@ -67,5 +68,15 @@ int main(){
assert( isBin("1b") == BINARY);
assert( isBin("10001b") == BINARY);

//isDec()
assert( isDec("0") == false );
assert( isDec("100") == false );
assert( isDec("999") == false );
assert( isDec("6969") == false );
assert( isDec("010") == false );
assert( isDec("0d") == DECIMAL);
assert( isDec("10d") == DECIMAL);
assert( isDec("100d") == DECIMAL);

return 0;
}

0 comments on commit 69d635f

Please sign in to comment.