comparison libpurple/protocols/myspace/persist.h @ 19435:bddc6a6fddf0

In msimprpl, move user-related code to a new user module, and move other pieces of code into their proper modules. Now myspace.c isn't so unwieldy.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sun, 26 Aug 2007 07:37:28 +0000
parents 9d921dde9d9f
children 44b4e8bd759b
comparison
equal deleted inserted replaced
19434:1e00b684c46f 19435:bddc6a6fddf0
40 #define MSIM_CMD_IS_ERROR(x) (x & MSIM_CMD_BIT_ERROR) 40 #define MSIM_CMD_IS_ERROR(x) (x & MSIM_CMD_BIT_ERROR)
41 #define MSIM_CMD_IS_NORMAL(x) !(x & MSIM_CMD_BIT_ERROR) 41 #define MSIM_CMD_IS_NORMAL(x) !(x & MSIM_CMD_BIT_ERROR)
42 42
43 /** Define a set of _DSN and _LID constants for a persistance request. */ 43 /** Define a set of _DSN and _LID constants for a persistance request. */
44 #define MSIM_PERSIST_DSN_LID(name,dsn,lid) \ 44 #define MSIM_PERSIST_DSN_LID(name,dsn,lid) \
45 const int name##_DSN = dsn; \ 45 static const int name##_DSN = dsn; \
46 const int name##_LID = lid; 46 static const int name##_LID = lid;
47 47
48 /* Can't do this, errors: 48 /* Can't do this, errors:
49 * persist.h:51:3: error: '#' is not followed by a macro parameter 49 * persist.h:51:3: error: '#' is not followed by a macro parameter
50 * In file included from myspace.c:37: 50 * In file included from myspace.c:37:
51 * persist.h:56: error: expected ')' before numeric constant 51 * persist.h:56: error: expected ')' before numeric constant