#includeI tested my code the following dataset:#include #include #include #include static ND_Search *domain_table = NULL; DEFINE_ON_DEMAND(find_cells) { #if !RP_HOST if(I_AM_NODE_ZERO_P){ cell_t c; Thread *t; CX_Cell_Id *cx_cell; real cCentroid; real cVolume; real P[3]; real P_Cell[3]; FILE *fp; char line[1024]; int rayID, side, prevID, nextID, surfID; double x,y,z; fp = fopen("rays_csv_new.csv","r"); if(fp == NULL){ printf("Trouble reading file\nAborting.."); fclose(fp); abort(); } domain_table = CX_Start_ND_Point_Search(domain_table,TRUE,-1); Message("Starting Cell Search..."); while(fgets(line,1024,fp)){ sscanf(line,"%d,%lg,%lg,%lg,%d,%d,%d,%d",&rayID,&x,&y,&z,&side,&prevID,&nextID,&surfID); P[0] = x; P[1] = y; P[2] = z; cx_cell = CX_Find_Cell_With_Point(domain_table,P,0.0); if(cx_cell){ c = RP_CELL(cx_cell); t = RP_THREAD(cx_cell); cCentroid = C_CENTROID(P_Cell,c,t); cVolume = C_VOLUME(c,t); Message("%g \t %g \t %g \t %g\n",P[0],P[1],P[2],cVolume); }else{ Message("Could not find cell at [%g,%g,%g]\n",P[0],P[1],P[2]); } } domain_table = CX_End_ND_Point_Search(domain_table); fclose(fp); } #endif }
x y z 0.227898,1.0,-0.448053 4,-0.106937,1.0,0.379007 7,-0.350153,1.0,0.031367 9,0.293532,1.0,0.357582 11,-0.403077,1.0,-0.409584 13,0.476352,1.0,-0.0787738 15,-0.400827,1.0,-0.0563139 18,0.189004,1.0,0.217153Since I was only processing compute node 0, the cells that are within compute node 0 will be found, but those that are outside it won't. As a result, the output looks like this:
Could not find cell at [0.227898,1,-0.448053] Could not find cell at [-0.106937,1,0.379007] Could not find cell at [-0.350153,1,0.0313674] 0.293532 1 0.357582 1.82506e-08 Could not find cell at [-0.403077,1,-0.409584] Could not find cell at [0.476352,1,-0.0787738] Could not find cell at [-0.400827,1,-0.0563139] 0.189004 1 0.217153 1.95857e-08
// change terminal settings tcgetattr( STDIN_FILENO, &original); changed = original; changed.c_lflag &= ~( ICANON | ECHO); changed.c_cc[VMIN] = 1; changed.c_cc[VTIME] = 0; tcsetattr( STDIN_FILENO, TCSANOW, &changed); printf ( "\033[9999;9999H"); // cursor should move as far as it can printf ( "\033[6n"); // ask for cursor position printf ( "\033[2J"); //clear screen printf ( "\033[1;1H"); // move to upper left corner while ( ( ch = getchar ()) != 'R') {// R terminates the response if ( EOF == ch) break; if ( isprint ( ch)) // print out only normal chars to not mess up display printf("stdin[%d]\t==\t%d\t==\t%c\n", i, ch, ch); else printf("stdin[%d]\t==\t%d\t==\t\n", i, ch); i++; } // restore terminal settings tcsetattr( STDIN_FILENO, TCSANOW, &original); return 0;} `` To try this out, just chech what happens whenVMINis1, and when it's0`.
Old Keyboard Name | New Keyboard Name |
---|---|
gentleman65 | jkeys_design/gentleman65 |
handwired/hillside/0_1 | handwired/hillside/48 |
idobao/id80/v1/ansi | idobao/id80/v2/ansi |
idobao/id80/v1/iso | idobao/id80/v2/iso |
#define VENDOR_ID 0x1234 #define PRODUCT_ID 0x5678 #define DEVICE_VER 0x0001 #define MANUFACTURER Me #define PRODUCT MyKeyboardReplaced by info.json:
{ "keyboard_name": "MyKeyboard", "manufacturer": "Me", "usb": { "vid": "0x1234", "pid": "0x5678", "device_version": "0.0.1" }, // ... layouts, etc. ... }
//mc_free is used for deallocating "managed" types. mc_free(ref);}
alloc_list[0] = mc_alloc(int, NULL); *alloc_list[0] = 11; alloc_list[1] = mc_alloc(int, NULL); *alloc_list[1] = 10; alloc_list[2] = mc_alloc(int, NULL); *alloc_list[2] = 9; alloc_list[3] = mc_alloc(int, NULL); *alloc_list[3] = 8; alloc_list[4] = mc_alloc(int, NULL); *alloc_list[4] = 7; mc_free(alloc_list);} ```
#includeSeems good to me but I'm just a newbie what do you think about that? Do you want to use a library written like this?struct fs { int a; int b; int c; int d; }; int four_sum(struct fs sum) { return sum.a+sum.b+sum.c+sum.d; } int main() { struct fs sum1 = {1, 2 ,3, 4}; struct fs sum2 = {2, 4, 6, 8}; printf("%d\n", four_sum(sum1)); printf("%d\n", four_sum(sum2)); return 0; }
![]() | submitted by Cheatography to Cheatography [link] [comments] |
Quantum Painter is not supported on AVR due to complexity and size constraints. Boards based on AVR such as ProMicro or Elite-C builds will not be able to leverage Quantum Painter.
This is not yet supported by QMK Configurator. It is also unlikely to ever be supported by VIA.
Old Keyboard Name | New Keyboard Name |
---|---|
absinthe | keyhive/absinthe |
amj40 | amjkeyboard/amj40 |
amj60 | amjkeyboard/amj60 |
amj96 | amjkeyboard/amj96 |
amjpad | amjkeyboard/amjpad |
at101_bh | viktus/at101_bh |
ergosaurus | keyhive/ergosaurus |
gmmk/pro/ansi | gmmk/pro/rev1/ansi |
gmmk/pro/iso | gmmk/pro/rev1/iso |
honeycomb | keyhive/honeycomb |
lattice60 | keyhive/lattice60 |
melody96 | ymdk/melody96 |
mt40 | mt/mt40 |
mt64rgb | mt/mt64rgb |
mt84 | mt/mt84 |
mt980 | mt/mt980 |
navi10 | keyhive/navi10 |
omnikey_bh | viktus/omnikey_bh |
opus | keyhive/opus |
smallice | keyhive/smallice |
southpole | keyhive/southpole |
uno | keyhive/uno |
ut472 | keyhive/ut472 |
wheatfield/blocked65 | mt/blocked65 |
wheatfield/split75 | mt/split75 |
z150_bh | viktus/z150_bh |
/* allc.c - This showcases all the syntatic * features of the C programming language. (C11) */ /* preprocessing directive */ #if 1 /* if directive */ # /* null directive; has no effect */ #line 12 /* line directive */ #define NULL (void *)0 /* define directive */ #undef NULL /* undef directive */ #ifdef D /* ifdef directive */ #endif #ifndef D /* ifndef directive */ #endif #pragma deadbeef /* pragma directive */ #elif /* elif directive */ #else /* else directive */ #if defined 0 #endif #includePretty sure "demonic arrays" was stated in the C standard. ~I just made it up~/* include directive */ #error "error" /* error directive */ #endif /* endif directive */ /* variadic macro */ #define VAMACRO(...) __VA_ARGS__ /* static assertion */ _Static_assert(sizeof(char) == 1, "test"); /* stringizing operator */ #define stringize(x) #x /* token pasting operator */ #define concat(a, b) a##b /* external storage types and example of variadic function */ extern int printf(const char *, ...); /* array declarator */ afuncd(a[const 10]); /* function pointer */ int (*ifunc)(void); /* array of function pointer */ int (*afunc[10])(void); /* enumerations */ enum enum_t { EA, EB, EC, ED }; enum { VA, VB, VC, VD } enum_variation; /* structures */ struct struct_t { char a, b, c; /* bitfields */ int b1:4, b2:4; /* anonymous union */ union { int e, f; }; /* flexible array member */ int arr[]; }; struct { char a, b, c; } struct_variation; /* unions */ union union_t { int a, b; /* anonymous struct */ struct { int c, d; }; }; union {char a;}; union_variation; /* alias for a data type */ typedef struct struct_t struct_t; typedef union union_t union_t; typedef enum enum_t enum_t; /* forward declaration */ int trigraphsavailable(); /* inline function. trigraphs */ inline int trigraphsavailable() // returns 0 or 1; language standard C99 or later { // are trigraphs available??/ return 0; return 1; } /* _Noreturn */ _Noreturn void noret(void){ } /* empty return */ void ret(void){ return; } /* incomplete VLA types */ void icomplete(int n, int a[*]); /* function */ int main(argc, argv) /* pre-ANSI C declarations */ int argc; char **argv; { /* predefined macros */ __DATE__; __FILE__; __LINE__; __STDC__; /* 1 indicates conforming implementation */ __STDC_HOSTED__; __STDC_VERSION__; /* yymmL */ __TIME__; /* type specifiers */ char a; int b; float c; double d; void *p; float _Complex Co; _Bool Bo; long lo; short sho; signed si; unsigned un; float _Imaginary; { /* comma operator */ int a, b, c; /* pointer to arrays*/ int (*p)[10]; /* casting */ int d = (int)1.0; int e = (int)&d; } /* array declaration */ int ar[10]; /* string literal */ "Hello " "C"; /* string literal suffix */ u8"Hello " "C"; u"Hello " "C"; U"Hello " "C"; L"Hello " "C"; /* character literal*/ a = 'a'; /* escape sequence */ "\n" /* newline */ "\t" /* horizontal tab */ "\\" /* backslash */ "\f" /* form feed */ "\r" /* carriage return */ "\?" "\01" /* octal character escape */ "\x1" /* hexadecimal character escape */ "\v"; /* vertical tab */ /* stringize operator */ stringize(Hello C); /* "Hello C" */ /* Token pasting operator */ concat(a, r); /* ar */ /* demonic array */ 1 [ar] = 1; /* array designated initializer */ int ar2[10] = {[0] = 1, [1] = 2, [2] = 3}; /* struct designated initializer */ struct_t s = {.a = 1, .b = 2, .c = 3}; /* arrow operator */ (&s)->a; /* dot operator */ (struct_t){0}.a = 1; (union_t){0}.a = 1; /* compound literals */ (int[]){1, 2, 3, 4}; /* compound literals with designated initializer*/ (int[]){[0] = 1, [1] = 2, [2] = 3, 4}; (struct {int a, b, c}){.a=1, .b=2, .c=3}; /* other fancy designated initializer */ (struct {int a, b, c}[1]){[0] = {.a = 1, .b = 2, .c = 3}}; /* assignment operators */ a = 0; a *= 1; a /= 1; a += 1; a -= 1; a <<= 1; a >>= 1; a &= 1; a ^= 1; a |= 1; a %= 1; /* address and indirection operators */ &a; *ar; /* arithmetic operators */ 1 + 1; /* ADD */ 1 - 1; /* SUB */ 1 / 2; /* DIV */ 1 * 1; /* MUL */ 1 % 1; /* MOD */ /* logical operators */ 1 && 1; /* AND */ 1 || 0; /* OR */ !1; /* NOT */ /* + and - */ { int a = -10; int b = +a; /* b = 10 */ int c = 10; int d = -c; /* d = -10 */ } /* increment and decrement operators */ a++; a--; /* post fix */ ++a; --a; /* pre fix */ /* bitwise operators */ 1 << 2; /* left shift */ 1 >> 2; /* right shift */ 1 | 1; /* OR */ 1 & 1; /* AND */ 1 ^ 1; /* XOR */ ~1; /* 1st complement */ /* relational operators */ 1 > 0; /* 1 is greater than 0 */ 1 < 0; /* 1 is less than 0 */ 1 == 0; /* 1 is equal to 0 */ 1 != 0; /* 1 is not equal to 0 */ 1 >= 0; /* 1 is greater than or equal to 0 */ 1 <= 0; /* 1 is less than or equal to 0 */ /* conditions */ if (1 > 0) ; else ; /* ternary operators */ (1 > 0) ? 1 : 0; /* if 1 > 0, return 1, else 0 */ /* label and goto */ goto l1; l1: /* loops */ do while(0); while (0) ; for (; 0;) continue; ; /* block scoping */ {} /* switch statement */ switch (1){ case 0: case 1: default: break; } /* digraphs */ ar<:0:> = 1; /* ar[0] */ <% %> /* { } */ %:define BEEF /* #define BEEF */ /* demonic digraphs */ 0<:ar:> = 1; /* storage-class specifier */ static st; register re; auto au; extern ex; _Thread_local static Thr; /* _Generic */ _Generic((10), int: 1, char: 'A', default: "test"); /* type qualifiers */ const cons; int *restrict res; volatile vo; _Atomic At; /* sizeof, _Alignof and _Alignas operators */ sizeof(int); sizeof 1+1; _Alignof(int); _Alignas(4) char calign[4]; /* integer constants */ 1; /* decimal */ 1ul; 1UL; /* unsigned long suffix */ 1ull; 1ULL; /* unsigned long long suffix */ 01 ; /* octal */ 0x01; /* hexadecimal */ /* floating point constants */ /* decimal floating point constant */ 1.0e+1f; 1e1f; /* hexadecimal floating point constant */ 0x01.00p+1f; 0x1p+1f; /* function call */ trigraphsavailable(); /* return keyword */ return 0; }
Note: When I use a translator to unidimensional array (using a macro for example), this feature works! XDSee below the workarround that I did:
Note: I removed the snippet of the solution from this comment in order to keep this explanation as "short" as possible. But, you are able to find the link to the solution on the GDB online as I put above.
var ( // Colors and font options via ANSI escape codes Reset = "\033[0m" Black = "\033[30m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" Gray = "\033[37m" White = "\033[97m" Bold = "\033[1m" Italic = "\033[3m" Underline = "\033[4m" Invert = "\033[7m" ) func Color(input interface{}, color ...string) string { var s string c := "" for i := range color { c = c + color[i] } switch v := input.(type) { case int: s = c + strconv.Itoa(v) + Reset case bool: s = c + strconv.FormatBool(v) + Reset case []string: s = c + strings.Join(v, ", ") + Reset case string: s = c + v + Reset default: fmt.Printf("Unsupported type provided to Color func - %T\n", v) } return s }The way I have it structured allows for easily applying multiple font options to an input.
#ifndef COLORS_H #define COLORS_H #includeI'm getting an error in VSCode though. The string variable in the declaration of the printC function is highlighted and the error that appears when hovering over it is "format '%c' expects argument of type int but argument 2 has type const char*"#include #include using namespace std; // escape strings to be added to input strings to make colored output text const string red = "%c[1;31m"; const string green = "%c[1;32m"; const string yellow = "%c[1;33m"; const string blue = "%c[1;34m"; const string revert = "%c[0m"; void printC(string input, string color) { string escapestring = ""; if (color == "red") { escapestring = red; } else if (color == "green") { escapestring = green; } else if (color == "yellow") { escapestring = yellow; } else if (color == "blue") { escapestring = blue; } string outstring = escapestring + input + revert; cout << outstring << revert << endl; } // method to simplify the process of printing a given string in a given color #endif
#includeI understand it's outdated and little practical use but I think it's cool and I'm only doing it for fun. Im a complete noob so some of the thermology I'm using may be incorrect hope you understand what I am trying to convey.main() { printf("desu"); }
![]() | I tried to compile futurerestore from marijuanARM/futurerestore 's fork. submitted by Yuenkinken to jailbreak [link] [comments] I have compiled most of external libs : https://preview.redd.it/8tcpwa25z4061.png?width=1258&format=png&auto=webp&s=9ca3b114ce7669de5b51f08e62865b91f2139b54 https://preview.redd.it/houpq009z4061.png?width=1112&format=png&auto=webp&s=191feca746113b617cf5a9fac237dd72acf56f94 But when I start compiling tihmstaliboffsetfinder64, it gives me an error: https://preview.redd.it/7adfgx1qz4061.png?width=1610&format=png&auto=webp&s=e85a582646d5cbe5e534bf74f569161b48efb4e4 When compiling liboffsetfinder64 's dependecy tihmstalibinsn, it gives errors. Macos Catalina 10.15.7 Last login: Thu Nov 19 12:25:57 on ttys001 [email protected] ~ % cd Desktop/BuildFuturerestore [email protected] BuildFuturerestore % cd libinsn [email protected] libinsn % ./autogen.sh checking build system type... x86_64-apple-darwin19.6.0 checking host system type... x86_64-apple-darwin19.6.0 checking target system type... x86_64-apple-darwin19.6.0 checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for a sed that does not truncate output... /usbin/sed checking for grep that handles long lines and -e... /usbin/grep checking for egrep... /usbin/grep -E checking for fgrep... /usbin/grep -F checking for ld used by gcc... /Library/DevelopeCommandLineTools/usbin/ld checking if the linker (/Library/DevelopeCommandLineTools/usbin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usbin/nm -B checking the name lister (/usbin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking how to convert x86_64-apple-darwin19.6.0 file names to x86_64-apple-darwin19.6.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin19.6.0 file names to toolchain format... func_convert_file_noop checking for /Library/DevelopeCommandLineTools/usbin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver u/FILE support... no checking for strip... strip checking for ranlib... ranlib checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking command to parse /usbin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fno-common -DPIC checking if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/Library/DevelopeCommandLineTools/usbin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin19.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for a BSD-compatible install... /usbin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /Library/DevelopeCommandLineTools/usbin/ld checking if the linker (/Library/DevelopeCommandLineTools/usbin/ld) is GNU ld... no checking whether the g++ linker (/Library/DevelopeCommandLineTools/usbin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag -fno-common -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/Library/DevelopeCommandLineTools/usbin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin19.6.0 dyld checking how to hardcode library paths into programs... immediate checking dependency style of g++... gcc3 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking whether we need platform-specific build settings... checking for pkg-config... /uslocal/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libgeneral >= 32... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile config.status: creating libinsn/Makefile config.status: creating libinsn.pc config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands config.status: executing depfiles commands Configuration for libinsn-32: ------------------------------------------- install prefix ..........: /uslocal compiler ................: gcc Now type 'make' to build libinsn-32, and then 'make install' for installation. [email protected] libinsn % make (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/kinken/Desktop/BuildFuturerestore/libinsn/missing autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged /Library/DevelopeCommandLineTools/usbin/make all-recursive Making all in libinsn /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/libinsn -I/uslocal/include -g -O2 -stdlib=libc++ -std=c++14 -O3 -fPIC -D EXPECTIONNAME=INSNexception -MT libinsn_la-insn_decode.lo -MD -MP -MF .deps/libinsn_la-insn_decode.Tpo -c -o libinsn_la-insn_decode.lo \test -f 'insn_decode.cpp' || echo './'`insn_decode.cpp` libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/libinsn -I/uslocal/include -g -O2 -stdlib=libc++ -std=c++14 -O3 -fPIC -D EXPECTIONNAME=INSNexception -MT libinsn_la-insn_decode.lo -MD -MP -MF .deps/libinsn_la-insn_decode.Tpo -c insn_decode.cpp -fno-common -DPIC -o .libs/libinsn_la-insn_decode.o In file included from insn_decode.cpp:12: ../include/libinsn/INSNexception.hpp:19:78: error: no matching constructor for initialization of 'tihmstar::exception' INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/exception.hpp:15:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided class exception : public std::exception{ ^ /uslocal/include/libgeneral/exception.hpp:22:9: note: candidate constructor not viable: requires at least 5 arguments, but 3 were provided exception(const char *commit_count_str, const char *commit_sha_str, int line, const char *filename, const char *err ...); ^ insn_decode.cpp:121:5: error: no matching constructor for initialization of 'tihmstar::INSNexception' assure(len != -1); //reserved value ^~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:80:52: note: expanded from macro 'assure' ...assure(cond) do{ if ((cond) == 0) throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, "assure failed"); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:124:5: error: no matching constructor for initialization of 'tihmstar::INSNexception' assure(immediate && (imms & levels) != levels); //reserved value ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:80:52: note: expanded from macro 'assure' ...assure(cond) do{ if ((cond) == 0) throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, "assure failed"); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:142:2: warning: TODO incomplete function implementation! [-W#warnings] #warning TODO incomplete function implementation! ^ insn_decode.cpp:185:2: warning: TODO redo this! currently only recognises STR (immediate) [-W#warnings] #warning TODO redo this! currently only recognises STR (immediate) ^ insn_decode.cpp:554:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("unexpected subtype"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:560:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("unexpected subtype"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:547:44: warning: result of comparison of constant 73031290881 with expression of type 'unsigned int' is always false [-Wtautological-constant-out-of-range-compare] if (BIT_RANGE(_opcode, 21, 30) == 0x1101011001 /* register_extended */) { ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ insn_decode.cpp:606:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("unexpected classtype for insn"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:634:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get imm value of unknown instruction"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:670:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get imm value of ldr that has non immediate subtype"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:674:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get imm value of ldr that has non immediate subtype"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:684:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get imm value of ldr that has non immediate subtype"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:701:17: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("ldrb must be st_immediate for imm to be defined!"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:704:2: warning: TODO rewrite this! currently only unsigned offset supported [-W#warnings] #warning TODO rewrite this! currently only unsigned offset supported ^ insn_decode.cpp:722:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("failed to get imm value"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:731:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get rd of unknown instruction"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:749:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("failed to get rd"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:757:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get rn of unknown instruction"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:781:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("failed to get rn"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:789:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("can't get rt of unknown instruction"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:807:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("failed to get rt"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided insn_decode.cpp:818:13: error: no matching constructor for initialization of 'tihmstar::INSNexception' reterror("failed to get rt2"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /uslocal/include/libgeneral/macros.h:84:43: note: expanded from macro 'reterror' # define reterror(errstr ...) do{ throw tihmstar::EXPECTIONNAME(VERSION_COMMIT_COUNT, VERSION_COMMIT_SHA, __LINE__, __FILE__, errstr); } while(0) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/libinsn/INSNexception.hpp:19:9: note: candidate constructor not viable: no known conversion from 'const char [3]' to 'int' for 1st argument INSNexception(int code, const char *filename, const char *err ...) : tihmstar::exception(code,filename,err){} ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided class INSNexception : public tihmstar::exception{ ^ ../include/libinsn/INSNexception.hpp:17:11: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided fatal error: too many errors emitted, stopping now [-ferror-limit=] 4 warnings and 20 errors generated. make[2]: *** [libinsn_la-insn_decode.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [email protected] libinsn % |
[[email protected] package-query]$ makepkg ==> Making package: package-query 1.11-1 (Wed Jun 2 15:23:08 2021) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found package-query-1.11.tar.gz ==> Validating source files with md5sums... package-query-1.11.tar.gz ... Passed ==> Extracting sources... -> Extracting package-query-1.11.tar.gz with bsdtar ==> Removing existing $pkgdi directory... ==> Starting build()... checking for a BSD-compatible install... /usbin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usbin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking build system type... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking how to print strings... printf checking for a sed that does not truncate output... /usbin/sed checking for grep that handles long lines and -e... /usbin/grep checking for egrep... /usbin/grep -E checking for fgrep... /usbin/grep -F checking for ld used by gcc... /usbin/ld checking if the linker (/usbin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usbin/nm -B checking the name lister (/usbin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop checking for /usbin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usbin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usbin/dd checking how to truncate binary pipes... /usbin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usbin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking glob.h usability... yes checking glob.h presence... yes checking for glob.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/stat.h... (cached) yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking for alpm_version in -lalpm... yes checking for pkg-config... /usbin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for alpm... yes checking for yajl_free in -lyajl... yes checking for gawk... (cached) gawk checking for curl-config... /usbin/curl-config checking for the version of libcurl... 7.77.0 checking for libcurl >= version 7.19.4... yes checking whether libcurl is usable... yes checking for curl_free... yes checking for git... git checking for .git/... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands package-query: Build information: source code location : . prefix : /usr sysconfdir : /etc conf file : /etc/pacman.conf localstatedir : /var database dir : /valib/pacman/ compiler : gcc compiler flags : -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection package-query version : 1.11 using git version : no git ver : Variable information: root working directory : / aur base url : https://aur.archlinux.org make all-recursive make[1]: Entering directory '/home/alarm/tempAUpackage-query/src/package-query-1.11' Making all in src make[2]: Entering directory '/home/alarm/tempAUpackage-query/src/package-query-1.11/src' gcc -DLOCALEDIR=\"/usshare/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/valib/pacman/\" -DAUR_BASE_URL=\"https://aur.archlinux.org\" -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c alpm-query.c: In function 'init_alpm': alpm-query.c:74:2: warning: implicit declaration of function 'alpm_option_set_arch'; did you mean 'alpm_option_set_dlcb'? [-Wimplicit-function-declaration] 74 | alpm_option_set_arch (handle, config.arch); | ^~~~~~~~~~~~~~~~~~~~ | alpm_option_set_dlcb alpm-query.c: In function 'parse_config_server': alpm-query.c:96:21: warning: implicit declaration of function 'alpm_option_get_arch'; did you mean 'alpm_option_get_dlcb'? [-Wimplicit-function-declaration] 96 | const char *arch = alpm_option_get_arch (config.handle); | ^~~~~~~~~~~~~~~~~~~~ | alpm_option_get_dlcb alpm-query.c:96:21: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] alpm-query.c: In function 'search_pkg': alpm-query.c:397:22: error: too few arguments to function 'alpm_db_search' 397 | alpm_list_t *pkgs = alpm_db_search (db, targets); | ^~~~~~~~~~~~~~ In file included from util.h:23, from alpm-query.c:28: /usinclude/alpm.h:1413:5: note: declared here 1413 | int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles, | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:429: alpm-query.o] Error 1 make[2]: Leaving directory '/home/alarm/tempAUpackage-query/src/package-query-1.11/src' make[1]: *** [Makefile:409: all-recursive] Error 1 make[1]: Leaving directory '/home/alarm/tempAUpackage-query/src/package-query-1.11' make: *** [Makefile:341: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
b.x = -1; // Set the bullet x out of the screen b.y = -1; // Set the bullet y out of the screen p.x = 0; // Set the player x in the left of the screen p.y = 4; // Set the player y in the middle of the screen SpawnShip(); // Spawn an enemy ship}
exit(0); // Exit the program normaly}
return (rand() % (max - min + 1)) + min; // Generate a random number and fit it between {min} & {max}}
while (1) // Loop for ever { c = getch(); // Get the character the user pressed and store it in c if (c == 'w') // If the user pressed W { i = 1; // Set the input to 1 } else if (c == 's') // If the user pressed S { i = 2; // Set the input to 2 } else if (c == ' ') // If the user pressed SPACE { i = 3; // Set the input to 3 } else if (c == 'q') // If the user pressed q { i = 4; // Set the input to 4 } }}
if (i == 1) // If input equals 1 { p.y--; // Remove 1 from the players y i = 0; // Set the input to 0 } else if (i == 2) // If input equals 2 { p.y++; // Add 1 to the players y i = 0; // Set the input to 0 } else if (i == 3) // If input equals 3 { b.x = p.x; // Set bullet x equal to player x b.x += 2; // Add 2 to bullet x b.y = p.y; // Set bullet y equal to player y i = 0; // Set input to 0 } else if (i == 4) // If input equals 4 { End(); // End the game }}
b.x = -1; // Set the bullet x of screen b.y = -1; // Set the bullet y of screen if (s >= 8) // If the score is larger then or equal to 8 { m = 8; // Set the multiplier to 9 }}
if (e.x == 0 || // If the enemy x matches 0 (e.x == p.x + 1 && e.y == p.y) // Or if the enemy x matches the player x +1 & the enemy y matches the player y ) { End(); // End the game } e.x--; // Add 1 to the enemy x}
sprintf(buff, "(W & S to move, SPACE to shoot, Q to quit)\nScore: %d\n", s); // Add a prompt to the buffer for (int y = 0; y < 10; y++) // Loop 10 times and store the count in y { for (int x = 0; x < 18; x++) // Loop 18 times and store the count in x { if (x == 0 || x == 17 || y == 0 || y == 9) // If x equals 0 or x equals 17 or y equals 0 or y equals 9 { strcat(buff, NC "[]" NC); // Add a white box to the buffer } else if (x == b.x + 1 && y == b.y + 1) // If x matches the bullet x +1 and y matches the bullet y +1 { strcat(buff, RED "()" NC); // Add a red ball to the buffer } else if ( // If ( x == p.x +1 && // x equals the players x +1 ( y == p.y || // And y equals the players y y == p.y +1 || // Or y equals the players y +1 y == p.y +2 // Or y equals the players y +2 ) ) || // Or ( x == p.x +2 && // X equals the players x +2 y == p.y +1 // And y equals the players y +1 ) ) { strcat(buff, GREEN "[]" NC); // Add a green box to the buffer } else if ( // If ( x == e.x + 1 && // X equals the enemys x +1 ( y == e.y || // And y equals the enemys y y == e.y +1 || // Or y equals the enemys y +1 y == e.y + 2 // Or y equals the enemys y +2 ) ) || // Or ( x == e.x && // X equals the enemys x y == e.y +1 // And y equals the enemys y +1 ) ) { strcat(buff, BLUE "[]" NC); // Add a blue box to the buffer } else // Else { strcat(buff, " "); // Add two spaces to the buffer } } strcat(buff, "\n"); // Add a new line to the buffer } strcat(buff, "\e[12A"); // Add moving up 12 lines to the buffer strcat(buff, "\e[18D"); // Add moving back 18 characters to the buffer printf(buff); // Deploy the buffer}
while (1) // Loop for ever { Move(); // Make any moves Draw(); // Draw the game Test(); // Test if we have collisions Sleep(SPEED - m * 50); // Wait for 500 minus the multiplier times 50 } Draw(); // Draw the game End(); // Exit the game return 0; // Exit normaly}
int main() { // ANSI_RED \e[31m // ANSI_COLOR_ESCAPE \e[0m char *ch1 = "\e[31m this will print red \e[0m"; printf("%s\n",ch1); //this will print in red char ch2[100] ={'\\', 'e', '[', '3', '1', 'm' ,' ', 'n', 'o', 't', 'r', 'e', 'd', ' ', '\\', 'e', '[', '0', 'm'}; printf("%s\n",ch2); //this will print in white return 0; }Or how should I go about storing a string and "marking" which parts of it are supposed to be red?
mail=\`curl -su USER:PASSWD [https://mail.google.com/mail/feed/atom](https://mail.google.com/mail/feed/atom) || echo "}unknown number of "\` mail=\`echo "$mail" | grep -oPm1 "(?<=)\[\^<\]+" \` echo "inb: $mail"
updates=$(checkupdates 2> /dev/null | wc -l ) echo "pcm: $updates"}
weather=$(curl '[https://wttr.in/Florina,Greece?format=%t](https://wttr.in/Florina,Greece?format=%t)') echo "wea: $weather"}
cputemp=$(sensors | grep Core | awk '{print substr($3, 2, length($3)-5)}' | tr "\\\\n" " " | sed 's/ /°C /g' | sed 's/ $//') echo "tem: $cputemp"}
cpu=$(awk '{u=$2+$4; t=$2+$4+$5;if (NR==1){u1=u; t1=t;} else printf("%d%%", ($2+$4-u1) \* 100 / (t-t1) "%");}' <(grep 'cpu ' /proc/stat) <(sleep 0.5; grep 'cpu ' /proc/stat)) echo "cpu: $cpu"%}
mem=$(free -h | awk '/Mem:/ { print $3 }' | cut -f1 -d 'i') echo "mem: $mem"}
echo "vol: $volume"}
T1=\`cat /sys/class/net/enp2s0/statistics/tx\_bytes\` sleep 1 T2=\`cat /sys/class/net/enp2s0/statistics/tx\_bytes\` TBPS=\`expr $T2 - $T1\` TKBPS=\`expr $TBPS / 1024\` printf "up: $TKBPS kb"}
R1=\`cat /sys/class/net/enp2s0/statistics/rx\_bytes\` sleep 1 R2=\`cat /sys/class/net/enp2s0/statistics/rx\_bytes\` RBPS=\`expr $R2 - $R1\` RKBPS=\`expr $RBPS / 1024\` printf "do: $RKBPS kb"}
time=$(date +"%b %d, %R") echo "$time"}
xsetroot -name "$(mail) | $(updates) | $(cpufrequency) | $(ram) | $(alsa) | $(upspeed) | $(downspeed) | $(clock) |" sleep 2done &
#includeI have NO idea what it's going on about#include #include #include #include #include #include #include "BasicExcel.hpp" using namespace std; using namespace YExcel; void root() { int base; int root; std::cout << "Enter base" << endl; std::cin >> base; std::cout << "Enter root" << endl; std::cin >> root; double A= std::sqrt(root); while(base*3 != A){ std::cout << "add +1 to base" << endl; base++; std::cout << "new base == " << base; //system("pause"); } std::cout << "ok worked" << endl; } int main() { BasicExcel e; //supposed to load workbook with sheet, explain contents, save to newfile: e.Load("ExcelTest1.xls"); BasicExcelWorksheet*sheet1 = e.GetWorksheet("sheet 1"); if (sheet1) { size_t maxRows = sheet1->GetTotalRows(); size_t maxCols = sheet1->GetTotalCols(); std::cout << "Dimension of " << sheet1->GetAnsiSheetName() << " (" << maxRows << ", " << maxCols << ")" << endl; printf(" "); for (size_t c = 0; c < maxCols; ++c) printf("%10d", c + 1); std::cout << endl; for (size_t r = 0; r < maxRows; ++r) { printf("%10d", r + 1); for (size_t c = 0; c < maxCols; ++c) { BasicExcelCell*cell = sheet1->Cell(r, c); switch (cell->Type()) { case BasicExcelCell::UNDEFINED: printf(" "); break; case BasicExcelCell::INT: printf("%10d", cell->GetInteger()); break; case BasicExcelCell::DOUBLE:printf("%10.6lf", cell->GetDouble()); break; case BasicExcelCell::STRING:printf("%10s", cell->GetString()); break; case BasicExcelCell::WSTRING:wprintf(L"%10s", cell->GetWString()); break; }//SWITCH FINISHES } } } Problem is the errors are: 1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\rpcndr.h(192): error C2872: 'byte': ambiguous symbol ---//// and: 1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\cstddef(23): note: or 'std::byte'
Somehow I got to a screen that says "
#define small char
typedef unsigned char byte;
typedef byte cs_byte; --//where "byte" is ambiguous?
typedef unsigned char boolean;
#ifndef _HYPER_DEFINED
#define _HYPER_DEFINED
#if (!defined(_M_IX86) || (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 64))
#define hyper __int64
#define MIDL_uhyper unsigned __int64
lqwqk x x x tqnqu x x x mqvqjand you should get
┌─┬─┐ │ │ │ ├─┼─┤ │ │ │ └─┴─┘Unfortunately, somebody made a typo (I'm guessing), and instead of typing 0x253C which is the "Box Drawings Light Vertical And Horizontal" character, they typed 0x2530 which is the "Box Drawings Down Heavy And Horizontal Light" character. So, instead of
┌─┬─┐ │ │ │ ├─┼─┤ │ │ │ └─┴─┘we get
┌─┬─┐ │ │ │ ├─┰─┤ │ │ │ └─┴─┘I've tested all the other DEC Line Drawing characters, and they are all correct (including the control characters). I don't have a font that has the extra obscure SCAN 1 through SCAN 9 characters, but I copied them to the clipboard and they were fiine.
Write-Host (([char]27) + '(0lqwqkedx x xedtqnquedx x xedmqvqj' + ([char]27) + '(B')So jenmsft, what do I win? 🙂
/* getbits: get n bits starting at position p */ unsigned getbits(unsigned x, int p, int n) { return (x >> (p+1-n)) & ~(~0 << n); }I just can't for the life of me understand why he's doing logical right shift by (p+1-n), and not just shifting by p.
#includeunsigned getbits(unsigned x, int p, int n); int main(void) { printf("%d\n", getbits(69, 1, 5)); return 0; } /* getbits: get n bits starting at position p */ unsigned getbits(unsigned x, int p, int n) { return (x >> (p+1-n)) & ~(~0 << n); }
الخيارات المتاحة أمامك هي إطار العمل جانغو (Django) وفلاسك (Flask) وغيرها، يمكنك تعلم لغة البرمجة بايثون لتطوير الواجهات الخلفية من خلال قراءة سلاسل المقالات عن تعلم بايثون في قسم البرمجة في أكاديمية حسوب، ثم الانتقال إلى ...
[index] [11839] [14731] [14407] [5274] [240] [8286] [620] [7087] [3027] [14724]
test2