[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sqlite-dev
Subject:    Re: [sqlite-dev] compiling with SQLITE_HAS_CODEC
From:       "E. Timothy Uy" <tim () loqu8 ! com>
Date:       2012-07-05 14:39:27
Message-ID: CABzAD1q0UgV=quSwsb20v4+6hLvWjR8RshAmFpTKr3J_5bSBxg () mail ! gmail ! com
[Download RAW message or body]

Please disregard this - I was doing something foolish!

On Thu, Jul 5, 2012 at 7:14 AM, E. Timothy Uy <tim@loqu8.com> wrote:

> Hi, I'm running into some errors compiling in OSX which I didn't see
> before.  I might have missed something...
>
> sqlite3.c:138562: error: static declaration of ‘sqlite3CodecAttach’
> follows non-static declaration
> sqlite3.c:79139: error: previous declaration of ‘sqlite3CodecAttach’ was
> here
> sqlite3.c:138592: error: static declaration of ‘sqlite3CodecGetKey’
> follows non-static declaration
> sqlite3.c:99989: error: previous declaration of ‘sqlite3CodecGetKey’ was
> here
> make: *** [sqlite3.lo] Error 1
>
> Perhaps at one point this was a warning instead of an error.  It seems
> like it should be ok.
>
>
>
> 79139
> #ifdef SQLITE_HAS_CODEC
>   if( rc==SQLITE_OK ){
>     extern int sqlite3CodecAttach(sqlite3*, int, const void*, int); <-----
>     extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);
>
> 138562
> SQLITE_PRIVATE int sqlite3CodecAttach( <------
>   sqlite3 *db,       /* The overall sqlite connection */
>   int iDb,           /* The particular file within db to which to attach */
>   const void *pKey,  /* The key.  May be NULL */
>   int nKey           /* The key size */
> ){
>   struct Db *pDb;
>   Pager *pPager;
>   CodecAny *pCodec;
>
> 99989
> #ifdef SQLITE_HAS_CODEC
>   if( db->nextPagesize ){
>     extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*); <------
>     int nKey;
>     char *zKey;
>     sqlite3CodecGetKey(db, 0, (void**)&zKey, &nKey);
>     if( nKey ) db->nextPagesize = 0;
>   }
>
> SQLITE_PRIVATE void sqlite3CodecGetKey(sqlite3 *db, int iDb, void **ppKey,
> int *pnKey){  <------
>   Db *pDb;
>   Pager *pPager;
>   CodecAny *pCodec;
>   assert( db!=0 );
>   assert( iDb>=0 && iDb<db-
>
>
>
>

[Attachment #3 (text/html)]

Please disregard this - I was doing something foolish!<br><br><div \
class="gmail_quote">On Thu, Jul 5, 2012 at 7:14 AM, E. Timothy Uy <span \
dir="ltr">&lt;<a href="mailto:tim@loqu8.com" \
target="_blank">tim@loqu8.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi, I&#39;m running into some errors compiling in OSX which I \
didn&#39;t see before.  I might have missed something...<div> \
<br></div><div><div>sqlite3.c:138562: error: static declaration of \
‘sqlite3CodecAttach’ follows non-static declaration</div> <div>sqlite3.c:79139: \
error: previous declaration of ‘sqlite3CodecAttach’ was \
here</div><div>sqlite3.c:138592: error: static declaration of ‘sqlite3CodecGetKey’ \
follows non-static declaration</div><div>sqlite3.c:99989: error: previous declaration \
of ‘sqlite3CodecGetKey’ was here</div>

<div>make: *** [sqlite3.lo] Error 1</div></div><div><br></div><div>Perhaps at one \
point this was a warning instead of an error.  It seems like it should be \
ok.</div><div><br></div><div><br></div><div><br></div><div>79139</div>

<div><div>#ifdef SQLITE_HAS_CODEC</div><div>  if( rc==SQLITE_OK ){</div><div>    \
extern int sqlite3CodecAttach(sqlite3*, int, const void*, int); &lt;-----</div><div>  \
extern void sqlite3CodecGetKey(sqlite3*, int, void**, int*);</div>

</div><div><br></div><div>138562</div><div><div>SQLITE_PRIVATE int \
sqlite3CodecAttach( &lt;------</div><div>  sqlite3 *db,       /* The overall sqlite \
connection */</div><div>  int iDb,           /* The particular file within db to \
which to attach */</div>

<div>  const void *pKey,  /* The key.  May be NULL */</div><div>  int nKey           \
/* The key size */</div><div>){</div><div>  struct Db *pDb;</div><div>  Pager \
*pPager;</div><div>  CodecAny *pCodec;</div></div><div><br>

</div><div>99989</div><div><div>#ifdef SQLITE_HAS_CODEC</div><div>  if( \
db-&gt;nextPagesize ){</div><div>    extern void sqlite3CodecGetKey(sqlite3*, int, \
void**, int*); &lt;------</div><div>    int nKey;</div><div>    char *zKey;</div>

<div>    sqlite3CodecGetKey(db, 0, (void**)&amp;zKey, &amp;nKey);</div><div>    if( \
nKey ) db-&gt;nextPagesize = 0;</div><div>  \
}</div></div><div><br></div><div><div>SQLITE_PRIVATE void sqlite3CodecGetKey(sqlite3 \
*db, int iDb, void **ppKey, int *pnKey){  &lt;------</div>

<div>  Db *pDb;</div><div>  Pager *pPager;</div><div>  CodecAny *pCodec;</div><div>  \
assert( db!=0 );</div><div>  assert( iDb&gt;=0 &amp;&amp; \
iDb&lt;db-</div></div><div><br></div><div><br></div><div><br></div> \
</blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic