From: miha-q <> Date: Thu, 21 Mar 2024 12:42:32 +0000 (-0400) Subject: Thu Mar 21 08:42:32 AM EDT 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=0223ebdb53ea71dd771a3a6a599a369c111ca65f;p=QAnsel.git Thu Mar 21 08:42:32 AM EDT 2024 --- diff --git a/src/bytecode.h b/src/bytecode.h index f562277..3b211ba 100644 --- a/src/bytecode.h +++ b/src/bytecode.h @@ -142,4 +142,4 @@ void qansel_reorder(QAnselContext* ctx, unsigned char* program, int programSize) void qansel_run(QAnselContext* ctx, unsigned char* program, int programSize, int qubitCount, int bitCount, unsigned char* outputBitVector); int qanselExecuteBytecode(unsigned char* buff, int sizeofbuff, QAnselContext* ctx); -#endif \ No newline at end of file +#endif diff --git a/src/complex.h b/src/complex.h index 6ba525e..dd51cea 100644 --- a/src/complex.h +++ b/src/complex.h @@ -98,4 +98,4 @@ void cpx_mtx_knk_metal(float* ptrR, float* ptrA, float* ptrB, int rowsA, int col // the standard knk_metal() function. void cpx_mtx_knk_metal_2x2(float* ptrR, float* ptrA, float* ptrB, int rowsA, int colsA, int rowsB, int colsB); -#endif \ No newline at end of file +#endif diff --git a/src/context.h b/src/context.h index a80670f..ad4dc35 100644 --- a/src/context.h +++ b/src/context.h @@ -23,4 +23,4 @@ int qanselContextValidate(QAnselContext* ctx); int qanselContextBegin(QAnselContext* ctx); int qanselContextEnd(QAnselContext* ctx); -#endif \ No newline at end of file +#endif diff --git a/src/display.h b/src/display.h index 9c555ad..d45e5c8 100644 --- a/src/display.h +++ b/src/display.h @@ -8,4 +8,4 @@ void DrawThickLine(SDL_Renderer* renderer, int x1, int y1, int x2, int y2, int t #endif int display(cpx_mtx_t* stateVector, uint8_t qubitCount, int delay); -#endif \ No newline at end of file +#endif diff --git a/src/hardware.h b/src/hardware.h index d0cf307..70041e6 100644 --- a/src/hardware.h +++ b/src/hardware.h @@ -17,4 +17,4 @@ unsigned long int qansel_get_time(); int qansel_hardware_rand_supported(); unsigned char qansel_hardware_rand(); -#endif \ No newline at end of file +#endif diff --git a/src/kernel.h b/src/kernel.h index f71b799..c933638 100644 --- a/src/kernel.h +++ b/src/kernel.h @@ -45,4 +45,4 @@ void kernel_knk_2x2 const int get_global_id_0 ); -#endif \ No newline at end of file +#endif diff --git a/src/main.c b/src/main.c index ef96242..8b83e54 100644 --- a/src/main.c +++ b/src/main.c @@ -30,7 +30,7 @@ void display_help() exit(0); } -void main(int argc, char** argv) +int main(int argc, char** argv) { QAnselContext ctx = {0}; @@ -76,6 +76,5 @@ void main(int argc, char** argv) free(bytecode); } qanselContextEnd(&ctx); - return; - + return 0; } \ No newline at end of file diff --git a/src/openqasm.h b/src/openqasm.h index 55f4673..7bd666f 100644 --- a/src/openqasm.h +++ b/src/openqasm.h @@ -15,4 +15,4 @@ int qansel_process_chunk(int index, char* chunk, int line, regmatch_t* regmatche int qansel_process_chunks(char** chunks, int* associatedLines, int count, unsigned char** retBinary, int* retSize, QAnselContext* ctx, int samplingshots); int qanselBuildFromSource(char* source, unsigned char** binary, int* binarySize, QAnselContext* ctx); -#endif \ No newline at end of file +#endif diff --git a/src/qansel.h b/src/qansel.h index eca34d6..5ea2e5b 100644 --- a/src/qansel.h +++ b/src/qansel.h @@ -58,4 +58,4 @@ #define QANSEL_ALL_CLASSIC 0x3F #define QANSEL_ALL 0xFF -#endif \ No newline at end of file +#endif