CS143-Lab/include/PA4/utilities.h
2023-03-16 15:55:37 +00:00

22 lines
531 B
C++

// -*-Mode: C++;-*-
//
// See copyright.h for copyright notice and limitation of liability
// and disclaimer of warranty provisions.
//
#include "copyright.h"
#ifndef _UTILITIES_H_
#define _UTILITIES_H_
#include "cool-io.h"
extern char *cool_token_to_string(int tok);
extern void print_cool_token(int tok);
extern void fatal_error(char *);
extern void print_escaped_string(ostream& str, const char *s);
extern char *pad(int);
/* On some machines strdup is not in the standard library. */
//char *strdup(const char *s);
#endif