What does SIMENTRY mean?

J

Jake Thompson

What does SIMENTRY mean as in

ULONG SIMENTRY RemoveFolderItem( hSession, pszFolderID, pszItemID,
pAsyncCtl, pRC )

is it necessary?
 
K

Kenneth Brody

Jake said:
What does SIMENTRY mean as in

ULONG SIMENTRY RemoveFolderItem( hSession, pszFolderID, pszItemID,
pAsyncCtl, pRC )

Not a clue. Check your system's header files, and you'll probably find a
#define for it.
is it necessary?

Probably. Without knowning anything about RemoveFolderItem or the O/S
upon which you are running, I would have to say "they put it there for
a reason".

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:[email protected]>
 
J

jacob navia

Jake said:
What does SIMENTRY mean as in

ULONG SIMENTRY RemoveFolderItem( hSession, pszFolderID, pszItemID,
pAsyncCtl, pRC )

is it necessary?
There is absolutely no way to know because you do not provide
the definition. Search the definition in your source tree,
THEN see if it is necessary or not.

It could be a macro that expands to something, or could be
a macro that expands to nothing (then it would be unnecessary).

Since it comes after ULONG (what I assume that it is a definition
for unsigned long) it can't be a typedef.

If you do not know, call your preprocessor. Most compilers
support a -E option that generates the preprocessed output.

Then, you will know immediately if it is necessary or not.

jacob
 
V

Vladimir S. Oka

Jake said:
What does SIMENTRY mean as in

ULONG SIMENTRY RemoveFolderItem( hSession, pszFolderID, pszItemID,
pAsyncCtl, pRC )

is it necessary?

On a (maybe not so) wild a guess:

- you're working with SIM cards (as in mobile phone ones)
- if that's true the function deals with data stored on SIMs

That may give you a clue where to look for how SIMENTRY is
defined, i.e. in which bunch of header files, instead of
grepping the whole project as others have suggested.

Also, this question is not topical here, as SIMENTRY is not in
standard C language (what it gets replaced with by the
preprocessor may be).

Cheers

Vladimir
 
P

pete

Vladimir said:
On a (maybe not so) wild a guess:

- you're working with SIM cards (as in mobile phone ones)
- if that's true the function deals with data stored on SIMs

That may give you a clue where to look for how SIMENTRY is
defined, i.e. in which bunch of header files, instead of
grepping the whole project as others have suggested.

Also, this question is not topical here, as SIMENTRY is not in
standard C language (what it gets replaced with by the
preprocessor may be).

Cheers

#define str(s) # s
#define xstr(s) str(s)

#ifdef SIMENTRY
puts("SIMENTRY is defined as " xstr(SIMENTRY));
#else
puts("SIMENTRY" is not a macro);
#endif
 
P

pete

pete said:
#define str(s) # s
#define xstr(s) str(s)

#ifdef SIMENTRY
puts("SIMENTRY is defined as " xstr(SIMENTRY));
#else
puts("SIMENTRY" is not a macro);

/* Should be: */
puts("SIMENTRY is not a macro");
 
P

pete

pete said:
/* Should be: */
puts("SIMENTRY is not a macro");

And I probably should have mentioned that the
directives with the puts statements,
should be inside a function.
 
V

Vladimir S. Oka

pete said:
And I probably should have mentioned that the
directives with the puts statements,
should be inside a function.

In other words, OP was probably better off just grepping for it.

;-) ;-)

Even better, OP could have consulted the documentation of the
3rd party/in-house code, or asked the supplier/colleagues the
same question. Both tend to be helpful.


Cheers

Vladimir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,173
Messages
2,570,937
Members
47,481
Latest member
ElviraDoug

Latest Threads

Top