forked from lei.chen/myxce
22 lines
710 B
C
22 lines
710 B
C
#ifndef _SCALER_MISC_H_
|
|
#define _SCALER_MISC_H_
|
|
|
|
#include "scaler/types.h"
|
|
#include "xlist.h"
|
|
|
|
extern int my_snprintf(char* buf, size_t size, const char* fmt, ...);
|
|
extern int create_temp_file(char* file_name);
|
|
extern int my_strcmp(const char* p1, const char* p2);
|
|
extern char* my_strdup(char*);
|
|
extern int cmp_template_id(scaler_template_id_t* p1, scaler_template_id_t* p2);
|
|
|
|
extern void print_demand_list(scaler_demand_array_t*);
|
|
extern void print_request(void*);
|
|
extern void print_request_list(xlist_t* r_list);
|
|
extern void print_instance(void*);
|
|
extern void print_instance_list(xlist_t* i_list);
|
|
|
|
extern int float_cmp_ex(float a, float b, float ep);
|
|
extern int float_cmp(float a, float b);
|
|
|
|
#endif
|