Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
mycat.c File Reference
#include <nl_types.h>
#include <string.h>
#include "mycat.h"
#include "cray/nlcatmsg.h"
Include dependency graph for mycat.c:

Go to the source code of this file.

Classes

struct  catmsg_t

Defines

#define DISABLE_NL_TYPES_SYMBOL_RENAMING   1 /* nl_types workaround */
#define MIN(a, b)   ((a<=b)?a:b)
#define CATDESCRIPTOR   ((nl_catd)42)

Functions

nl_catd my_catopen (const char *name, int oflag)
int my_catclose (nl_catd catd)
char * my_catgets (nl_catd catd, int set_num, int msg_num, const char *s)
char * my_catgetmsg (nl_catd catd, int set_num, int msg_num, char *buf, int buflen)
char * my_catmsgfmt (const char *cmdname, const char *groupcode, int msgnum, const char *severity, const char *msgtext, char *buf, int buflen, const char *position, const char *debug)

Variables

static catmsg_t Msg_Table []
static unsigned int Msg_Table_Sz = sizeof(Msg_Table) / sizeof(catmsg_t)

Define Documentation

#define CATDESCRIPTOR   ((nl_catd)42)

Definition at line 1718 of file mycat.c.

Referenced by my_catclose(), my_catgets(), and my_catopen().

#define DISABLE_NL_TYPES_SYMBOL_RENAMING   1 /* nl_types workaround */

Definition at line 10 of file mycat.c.

#define MIN (   a,
 
)    ((a<=b)?a:b)

Definition at line 24 of file mycat.c.

Referenced by my_catgetmsg().


Function Documentation

int my_catclose ( nl_catd  catd)

Definition at line 1727 of file mycat.c.

References CATDESCRIPTOR.

char* my_catgetmsg ( nl_catd  catd,
int  set_num,
int  msg_num,
char *  buf,
int  buflen 
)

Definition at line 1759 of file mycat.c.

References buf, MIN, my_catgets(), and NULL.

Here is the call graph for this function:

char* my_catgets ( nl_catd  catd,
int  set_num,
int  msg_num,
const char *  s 
)

Definition at line 1736 of file mycat.c.

References CATDESCRIPTOR, catmsg_t::msg, Msg_Table_Sz, and s.

Referenced by my_catgetmsg().

char* my_catmsgfmt ( const char *  cmdname,
const char *  groupcode,
int  msgnum,
const char *  severity,
const char *  msgtext,
char *  buf,
int  buflen,
const char *  position,
const char *  debug 
)

Definition at line 1780 of file mycat.c.

References catmsgfmt.

nl_catd my_catopen ( const char *  name,
int  oflag 
)

Definition at line 1721 of file mycat.c.

References CATDESCRIPTOR.


Variable Documentation

catmsg_t Msg_Table[] [static]

Definition at line 38 of file mycat.c.

unsigned int Msg_Table_Sz = sizeof(Msg_Table) / sizeof(catmsg_t) [static]

Definition at line 1714 of file mycat.c.

Referenced by my_catgets().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines