Open amiyamandal-dev opened 1 month ago
Atomic expr , such as
# define AtomicLoad(PTR) __atomic_load_n((PTR),__ATOMIC_RELAXED)
# define AtomicStore(PTR,VAL) __atomic_store_n((PTR),(VAL),__ATOMIC_RELAXED)
...
AtomicStore(&mem0.nearlyFull, n>0 && n<=nUsed);
...
can't handle by c2v
now.
BTW, you can post c2v
issue in https://github.com/vlang/c2v/issues
Describe the bug
The C to V translator (c2v) version 0.4.0 is encountering an unhandled expression node of type AtomicExpr while translating the file "sqlite3.c". This causes the translation process to fail, preventing the successful conversion of C code to V code.
Reproduction Steps
Step 1: Download the SQLite Amalgamation ->Visit the official SQLite website and download the SQLite amalgamation file, specifically sqlite-amalgamation-3460100.zip (or the latest version available).
Step 2: Translate the SQLite Source Code using v command
Expected Behavior
should have a file name sqlite3.v with all the v code in it
Current Behavior
empty sqlite3.v
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.7 7baff15
Environment details (OS name and version, etc.)