-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/add-astyle
- Loading branch information
Showing
11 changed files
with
182 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version=1.3.2 | ||
|
||
dest=$(mktemp -d) | ||
curl -L "https://github.com/klauspost/asmfmt/releases/download/v$version/asmfmt-Linux_x86_64_$version.tar.gz" | tar -xvzC "$dest" | ||
mv "$dest/asmfmt" /usr/local/bin/asmfmt | ||
rm -rf "$dest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apt-get install -y gawk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apt-get install -y jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Taken from https://files.klauspost.com/diff.html | ||
|
||
#include "zasm_GOOS_GOARCH.h" | ||
#include "funcdata.h" | ||
#include "textflag.h" | ||
|
||
TEXT runtime·rt0_go(SB),NOSPLIT,$0 | ||
// copy arguments forward on an even stack | ||
MOVQ DI, AX // argc | ||
MOVQ SI, BX // argv | ||
SUBQ $(4*8+7), SP // 2args 2auto | ||
ANDQ $~15, SP | ||
MOVQ AX, 16(SP) | ||
MOVQ BX, 24(SP) | ||
// create istack out of the given (operating system) stack. | ||
// _cgo_init may update stackguard. | ||
MOVQ $runtime·g0(SB), DI | ||
LEAQ (-64*1024+104)(SP), BX | ||
MOVQ BX, g_stackguard0(DI) | ||
MOVQ BX, g_stackguard1(DI) | ||
MOVQ BX, (g_stack+stack_lo)(DI) | ||
MOVQ SP, (g_stack+stack_hi)(DI) | ||
|
||
// find out information about the processor we're on | ||
MOVQ $0, AX | ||
CPUID | ||
CMPQ AX, $0 | ||
JE nocpuinfo | ||
MOVQ $1, AX | ||
CPUID | ||
MOVL CX, runtime·cpuid_ecx(SB) | ||
MOVL DX, runtime·cpuid_edx(SB) | ||
nocpuinfo: | ||
// if there is an _cgo_init, call it. | ||
MOVQ _cgo_init(SB), AX | ||
TESTQ AX, AX | ||
JZ needtls | ||
// g0 already in DI | ||
MOVQ DI, CX // Win64 uses CX for first parameter | ||
MOVQ $setg_gcc<>(SB), SI | ||
CALL AX | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Taken from https: // files.klauspost.com/diff.html | ||
|
||
#include "zasm_GOOS_GOARCH.h" | ||
#include "funcdata.h" | ||
#include "textflag.h" | ||
|
||
TEXT runtime·rt0_go(SB), NOSPLIT, $0 | ||
// copy arguments forward on an even stack | ||
MOVQ DI, AX // argc | ||
MOVQ SI, BX // argv | ||
SUBQ $(4*8+7), SP // 2args 2auto | ||
ANDQ $~15, SP | ||
MOVQ AX, 16(SP) | ||
MOVQ BX, 24(SP) | ||
|
||
// create istack out of the given (operating system) stack. | ||
// _cgo_init may update stackguard. | ||
MOVQ $runtime·g0(SB), DI | ||
LEAQ (-64*1024+104)(SP), BX | ||
MOVQ BX, g_stackguard0(DI) | ||
MOVQ BX, g_stackguard1(DI) | ||
MOVQ BX, (g_stack+stack_lo)(DI) | ||
MOVQ SP, (g_stack+stack_hi)(DI) | ||
|
||
// find out information about the processor we're on | ||
MOVQ $0, AX | ||
CPUID | ||
CMPQ AX, $0 | ||
JE nocpuinfo | ||
MOVQ $1, AX | ||
CPUID | ||
MOVL CX, runtime·cpuid_ecx(SB) | ||
MOVL DX, runtime·cpuid_edx(SB) | ||
|
||
nocpuinfo: | ||
|
||
// if there is an _cgo_init, call it. | ||
MOVQ _cgo_init(SB), AX | ||
TESTQ AX, AX | ||
JZ needtls | ||
|
||
// g0 already in DI | ||
MOVQ DI, CX // Win64 uses CX for first parameter | ||
MOVQ $setg_gcc<>(SB), SI | ||
CALL AX | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
BEGIN { | ||
|
||
print "Users and thier corresponding home" | ||
|
||
print " UserName \t HomePath" | ||
|
||
print "___________ \t __________" | ||
|
||
FS=":" | ||
|
||
} | ||
|
||
{ | ||
|
||
if ($2 == "foo") { | ||
print $2 | ||
} | ||
print $1 " \t " $6 | ||
|
||
} | ||
|
||
END { | ||
|
||
print "The end" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
BEGIN { | ||
print "Users and thier corresponding home" | ||
print " UserName \t HomePath" | ||
print "___________ \t __________" | ||
FS = ":" | ||
} | ||
|
||
{ | ||
if ($2 == "foo") { | ||
print $2 | ||
} | ||
print $1 " \t " $6 | ||
} | ||
|
||
END { | ||
print "The end" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../prettier-json/in.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"embeddedLanguageFormatting": "auto", | ||
"htmlWhitespaceSensitivity": "css", | ||
"insertPragma": false, | ||
"jsxBracketSameLine": false, | ||
"jsxSingleQuote": false, | ||
"printWidth": 80, | ||
"proseWrap": "preserve", | ||
"quoteProps": "as-needed", | ||
"requirePragma": false, | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"useTabs": false, | ||
"vueIndentScriptAndStyle": false | ||
} |