Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
utils.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "defines.h"
#include "host.m"
#include "host.h"
#include "target.m"
#include "target.h"
#include "arith.h"
#include "globals.m"
#include "tokens.m"
#include "sytb.m"
#include "debug.m"
#include "globals.h"
#include "tokens.h"
#include "sytb.h"
Include dependency graph for utils.c:

Go to the source code of this file.

Defines

#define OCT_FMT   "%o"
#define HEX_FMT   "%x"
#define DEC_FMT   "%d"
#define LLOCT_FMT   "%llo"
#define LLHEX_FMT   "%llx"
#define LLDEC_FMT   "%lld"
#define STR_FMT   "\"%s\""
#define DBL_FMT   "%Le"
#define FLT_FMT   "%e"
#define NAME_IDX(IDX)   (table[IDX].name_idx)
#define DIFF(I)
#define MASK(I)   -(RIGHT_JUSTIFY_SIGN_BIT(DIFF((I)) | -DIFF((I))))| mask
#define RUNNING_DIFF(I)   tst_val | ((~mask) & DIFF(I))

Functions

char * convert_to_string (long_type *the_constant, int type_idx, char *result)
boolean get_temp_file (char *open_status, FILE **file_ptr, char *file_name)
int srch_name_tbl (char *name_str, int name_len, int *name_idx, name_tbl_type *table, name_pool_type *pool, int first_entry, int last_entry)
char * convert_cval_to_string (long64 *the_constant, int type_idx, char *result)

Variables

static char USMID [] = "\n@(#)5.0_pl/sources/utils.c 5.9 10/14/99 12:53:57\n"

Define Documentation

#define DBL_FMT   "%Le"

Definition at line 84 of file utils.c.

Referenced by convert_to_string().

#define DEC_FMT   "%d"

Definition at line 72 of file utils.c.

Referenced by convert_to_string().

#define DIFF (   I)
Value:
compare_names(&pool[NAME_IDX(idx)+(I)-1].name_long,           \
                               HOST_BYTES_PER_WORD-1,                          \
                               &id[(I) - 1],                                   \
                               HOST_BYTES_PER_WORD-1 )

Referenced by srch_name_tbl().

#define FLT_FMT   "%e"

Definition at line 91 of file utils.c.

Referenced by convert_to_string().

#define HEX_FMT   "%x"

Definition at line 71 of file utils.c.

Referenced by convert_to_string().

#define LLDEC_FMT   "%lld"

Definition at line 78 of file utils.c.

#define LLHEX_FMT   "%llx"

Definition at line 77 of file utils.c.

Referenced by convert_to_string().

#define LLOCT_FMT   "%llo"

Definition at line 76 of file utils.c.

Referenced by convert_to_string().

#define MASK (   I)    -(RIGHT_JUSTIFY_SIGN_BIT(DIFF((I)) | -DIFF((I))))| mask

Referenced by srch_name_tbl().

#define NAME_IDX (   IDX)    (table[IDX].name_idx)
#define OCT_FMT   "%o"

Definition at line 70 of file utils.c.

Referenced by convert_to_string().

#define RUNNING_DIFF (   I)    tst_val | ((~mask) & DIFF(I))

Referenced by srch_name_tbl().

#define STR_FMT   "\"%s\""

Definition at line 81 of file utils.c.


Function Documentation

char* convert_cval_to_string ( long64 the_constant,
int  type_idx,
char *  result 
)

Definition at line 3879 of file utils.c.

References C_TO_F_INT, convert_to_string(), Func_Entry, Func_Exit, NULL, TRACE, and TYP_LINEAR.

Here is the call graph for this function:

boolean get_temp_file ( char *  open_status,
FILE **  file_ptr,
char *  file_name 
)

Definition at line 475 of file utils.c.

References FALSE, Func_Entry, Func_Exit, NULL, result, strcpy, TRACE, and TRUE.

Referenced by cif_flush_include_recs(), and init_cif().

int srch_name_tbl ( char *  name_str,
int  name_len,
int *  name_idx,
name_tbl_type table,
name_pool_type pool,
int  first_entry,
int  last_entry 
)

Variable Documentation

char USMID[] = "\n@(#)5.0_pl/sources/utils.c 5.9 10/14/99 12:53:57\n" [static]

Definition at line 37 of file utils.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines