Merge pull request #220 from EthicalML/removing_xxd
Removing xxd.exe binary and add instructions to build
This commit is contained in:
commit
4cb5f99989
3 changed files with 5 additions and 2 deletions
3
Makefile
3
Makefile
|
|
@ -193,6 +193,9 @@ build_single_header:
|
|||
"single_include/AggregateHeaders.cpp" \
|
||||
"single_include/kompute/Kompute.hpp"
|
||||
|
||||
win_build_xxd:
|
||||
cd external/bin/ && gcc -o xxd.exe xxd.c -DCYGWIN
|
||||
|
||||
format:
|
||||
$(CLANG_FORMAT_BIN) -i -style="{BasedOnStyle: mozilla, IndentWidth: 4}" src/*.cpp src/include/kompute/*.hpp test/*cpp
|
||||
|
||||
|
|
|
|||
4
external/bin/xxd.c
vendored
4
external/bin/xxd.c
vendored
|
|
@ -230,7 +230,7 @@ char *pname;
|
|||
fprintf(stderr, " or\n %s -r [-s [-]offset] [-c cols] [-ps] [infile [outfile]]\n", pname);
|
||||
fprintf(stderr, "Options:\n");
|
||||
fprintf(stderr, " -a toggle autoskip: A single '*' replaces nul-lines. Default off.\n");
|
||||
fprintf(stderr, " -). Default hex.\n");
|
||||
fprintf(stderr, " -b binary digit dump (incompatible with -p,-i,-r). Default hex.\n");
|
||||
fprintf(stderr, " -c cols format <cols> octets per line. Default 16 (-i: 12, -ps: 30).\n");
|
||||
fprintf(stderr, " -E show characters in EBCDIC. Default ASCII.\n");
|
||||
fprintf(stderr, " -g number of octets per group in normal output. Default 2.\n");
|
||||
|
|
@ -738,7 +738,7 @@ char *argv[];
|
|||
}
|
||||
if (hextype == HEX_NORMAL)
|
||||
{
|
||||
l[c / octspergrp)] = hexx[(e >> 4) & 0xf];
|
||||
l[c = (9 + (grplen * p) / octspergrp)] = hexx[(e >> 4) & 0xf];
|
||||
l[++c] = hexx[ e & 0xf];
|
||||
}
|
||||
else /* hextype == HEX_BITS */
|
||||
|
|
|
|||
BIN
external/bin/xxd.exe
vendored
BIN
external/bin/xxd.exe
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue