<commit_before>diff -aur sqlite-autoconf-3080403/shell.c sqlite/shell.c
--- sqlite-autoconf-3080403/shell.c	2014-04-03 21:21:45.000000000 +0400
+++ sqlite/shell.c	2014-04-08 12:50:52.032740866 +0400
@@ -520,9 +520,9 @@
 */
 static void shellLog(void *pArg, int iErrCode, const char *zMsg){
   struct callback_data *p = (struct callback_data*)pArg;
-  if( p->pLog==0 ) return;
-  fprintf(p->pLog, "(%d) %s\n", iErrCode, zMsg);
-  fflush(p->pLog);
+  //if( p->pLog==0 ) return;
+  printf(">>> sqlite log: (%d) %s\n", iErrCode, zMsg);
+  //fflush(p->pLog);
 }
 
 /*
@@ -3392,6 +3392,8 @@
   /* Windows CE (arm-wince-mingw32ce-gcc) does not provide getenv()
    */
   home_dir = "/";
+#elif defined(__EMBOX__)
+  home_dir = "/tmp";
 #else
 
 #if defined(_WIN32) || defined(WIN32)
diff -aur sqlite-autoconf-3080403/sqlite3.c sqlite/sqlite3.c
--- sqlite-autoconf-3080403/sqlite3.c	2014-04-03 21:21:45.000000000 +0400
+++ sqlite/sqlite3.c	2014-04-08 12:54:35.569725377 +0400
@@ -7982,8 +7982,10 @@
 ** in theory, be used by the compiler to generate better code, but
 ** currently they are just comments for human readers.
 */
-#define likely(X)    (X)
-#define unlikely(X)  (X)
+#if !defined(__EMBOX__)
+# define likely(X)    (X)
+# define unlikely(X)  (X)
+#endif
 
 /************** Include hash.h in the middle of sqliteInt.h ******************/
 /************** Begin file hash.h ********************************************/
@@ -23780,6 +23782,8 @@
 # endif
   int sqlite3OSTrace = SQLITE_DEBUG_OS_TRACE;
 # define OSTRACE(X)          if( sqlite3OSTrace ) sqlite3DebugPrintf X
+#elif defined(__EMBOX__)
+# define OSTRACE(X)          sqlite3DebugPrintf X
 #else
 # define OSTRACE(X)
 #endif
@@ -24310,7 +24314,7 @@
 #endif
 
 
-#if defined(SQLITE_TEST) && defined(SQLITE_DEBUG)
+#if defined(__EMBOX__) || defined(SQLITE_TEST) && defined(SQLITE_DEBUG)
 /*
 ** Helper function for printing out trace information from debugging
 ** binaries. This returns the string represetation of the supplied
@@ -39649,7 +39653,7 @@
 /*
 ** Macros for troubleshooting.  Normally turned off
 */
-#if 0
+#if 1
 int sqlite3PagerTrace=1;  /* True to enable tracing */
 #define sqlite3DebugPrintf printf
 #define PAGERTRACE(X)     if( sqlite3PagerTrace ){ sqlite3DebugPrintf X; }<commit_msg>extbld-porting: sqlite: Remove debug changes<commit_after>diff -aur sqlite-autoconf-3080403/sqlite3.c sqlite/sqlite3.c
--- sqlite-autoconf-3080403/sqlite3.c	2014-04-03 21:21:45.000000000 +0400
+++ sqlite/sqlite3.c	2014-04-08 12:54:35.569725377 +0400
@@ -7982,8 +7982,10 @@
 ** in theory, be used by the compiler to generate better code, but
 ** currently they are just comments for human readers.
 */
-#define likely(X)    (X)
-#define unlikely(X)  (X)
+#if !defined(__EMBOX__)
+# define likely(X)    (X)
+# define unlikely(X)  (X)
+#endif
 
 /************** Include hash.h in the middle of sqliteInt.h ******************/
 /************** Begin file hash.h ********************************************/
{'fraction_non_alphanumeric': 0.21017177500842035, 'fraction_numerical': 0.1034018187942068, 'mean_word_length': 4.174216027874564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 3, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6697769', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1088, 'n_words': 265}