* 02110-1301 USA
*/
-#ifndef _BITS_H_
-#define _BITS_H_
+#ifndef BITS_H
+#define BITS_H
#include <stdint.h>
/* Count bits in U that are 1. */
unsigned bitcount(uint64_t u);
-#endif /* _BITS_H_ */
+#endif /* BITS_H */
* 02110-1301 USA
*/
-#ifndef _CALLBACK_H_
-#define _CALLBACK_H_
+#ifndef CALLBACK_H
+#define CALLBACK_H
/* Notes on the iteration interface used across ltrace. Typically the
* iteration function looks something like this:
#define CBS_STOP_IF(X) ((X) ? CBS_STOP : CBS_CONT)
#define CBS_CONT_IF(X) ((X) ? CBS_CONT : CBS_STOP)
-#endif /* _CALLBACK_H_ */
+#endif /* CALLBACK_H */
* 02110-1301 USA
*/
-#ifndef _DEBUG_H
-#define _DEBUG_H
+#ifndef DEBUG_H
+#define DEBUG_H
#include "backend.h"
#include "forward.h"
#define debug(level, expr...) debug_(level, __FILE__, __LINE__, expr)
-#endif
+#endif /* DEBUG_H */
* 02110-1301 USA
*/
-#ifndef _DICT_H_
-#define _DICT_H_
+#ifndef DICT_H
+#define DICT_H
#include <stddef.h>
#include <stdint.h>
/* A cloner that calls 'strdup' on keys in a table. */
int dict_clone_string(const char **tgt, const char **src, void *data);
-#endif /* _DICT_H_ */
+#endif /* DICT_H */
* 02110-1301 USA
*/
-#ifndef _GLOB_H_
-#define _GLOB_H_
+#ifndef GLOB_H
+#define GLOB_H
#include <sys/types.h>
#include <regex.h>
* supported by globcomp. */
int globcomp(regex_t *preg, const char *glob, int cflags);
-#endif /* _GLOB_H_ */
+#endif /* GLOB_H */
* 02110-1301 USA
*/
-#ifndef _LIBRARY_H_
-#define _LIBRARY_H_
+#ifndef LIBRARY_H
+#define LIBRARY_H
#include <stdint.h>
#include <stdbool.h>
int library_exported_names_contains(struct library_exported_names* names,
const char* queryname);
-#endif /* _LIBRARY_H_ */
+#endif /* LIBRARY_H */
* 02110-1301 USA
*/
-#ifndef _LTRACE_H_
-#define _LTRACE_H_
+#ifndef LTRACE_H
+#define LTRACE_H
typedef enum Event_type Event_type;
enum Event_type {
extern void ltrace_add_callback(callback_func f, Event_type type);
extern void ltrace_main(void);
-#endif /* _LTRACE_H_ */
+#endif /* LTRACE_H */
* 02110-1301 USA
*/
+#ifndef MEMSTREAM_H
+#define MEMSTREAM_H
+
#include <stdio.h>
/* Portability wrapper for platforms that don't have
int memstream_init(struct memstream *memstream);
int memstream_close(struct memstream *memstream);
void memstream_destroy(struct memstream *memstream);
+
+#endif /* MEMSTREAM_H */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
-#ifndef _OPTIONS_H_
-#define _OPTIONS_H_
+
+#ifndef OPTIONS_H
+#define OPTIONS_H
#include <stdio.h>
#include <sys/types.h>
extern char **process_options(int argc, char **argv);
-#endif /* _OPTIONS_H_ */
+#endif /* OPTIONS_H */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
-#ifndef _OUTPUT_H_
-#define _OUTPUT_H_
+
+#ifndef OUTPUT_H
+#define OUTPUT_H
#include "fetch.h"
#include "forward.h"
void report_warning(char const *file, unsigned line_no, const char *fmt, ...);
void report_global_error(const char *fmt, ...);
-#endif /* _OUTPUT_H_ */
+#endif /* OUTPUT_H */
* 02110-1301 USA
*/
-#ifndef _PROC_H_
-#define _PROC_H_
+#ifndef PROC_H
+#define PROC_H
#include "config.h"
int proc_read_32(struct process *proc, arch_addr_t addr, uint32_t *lp);
int proc_read_64(struct process *proc, arch_addr_t addr, uint64_t *lp);
-#endif /* _PROC_H_ */
+#endif /* PROC_H */
* 02110-1301 USA
*/
-#ifndef _PROTOTYPE_H_
-#define _PROTOTYPE_H_
+#ifndef PROTOTYPE_H
+#define PROTOTYPE_H
#include <stdbool.h>
void init_global_config(void);
-#endif /* _PROTOTYPE_H_ */
+#endif /* PROTOTYPE_H */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
-#ifndef _READ_CONFIG_FILE_H_
-#define _READ_CONFIG_FILE_H_
+#ifndef READ_CONFIG_FILE_H
+#define READ_CONFIG_FILE_H
#include "forward.h"
int read_config_file(FILE *stream, const char *name, struct protolib *plib);
-#endif /* _READ_CONFIG_FILE_H_ */
+#endif /* READ_CONFIG_FILE_H */
* 02110-1301 USA
*/
-#ifndef _SUMMARY_H_
-#define _SUMMARY_H_
+#ifndef SUMMARY_H
+#define SUMMARY_H
#include "forward.h"
struct timedelta spent);
void show_summary(void);
-#endif /* _SUMMARY_H_ */
+#endif /* SUMMARY_H */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
-#ifndef _TRACE_DEFS_H_
-#define _TRACE_DEFS_H_
+#ifndef TRACE_DEFS_H
+#define TRACE_DEFS_H
#include <sys/ptrace.h>
/* If the system headers did not provide the constants, hard-code the
# define PTRACE_EVENT_EXIT 6
#endif
-#endif /* _TRACE_DEFS_H_ */
+#endif /* TRACE_DEFS_H */
* 02110-1301 USA
*/
-#ifndef _LTRACE_LINUX_TRACE_H_
-#define _LTRACE_LINUX_TRACE_H_
+#ifndef LTRACE_LINUX_TRACE_H
+#define LTRACE_LINUX_TRACE_H
#include "proc.h"
struct prototype *linux_IFUNC_prototype(void);
-#endif /* _LTRACE_LINUX_TRACE_H_ */
+#endif /* LTRACE_LINUX_TRACE_H */
* 02110-1301 USA
*/
-#ifndef ARGS_H
-#define ARGS_H
+#ifndef VALUE_DICT_H
+#define VALUE_DICT_H
#include "forward.h"
#include "vect.h"
* itself (the pointer) is not freed. */
void val_dict_destroy(struct value_dict *dict);
-#endif /* ARGS_H */
+#endif /* VALUE_DICT_H */