Click here to Skip to main content
15,895,793 members
Articles / Programming Languages / C++

Building a simple C++ script compiler from Scintilla and CINT

Rate me:
Please Sign up or sign in to vote.
4.74/5 (26 votes)
8 Jul 2006CPOL7 min read 154.4K   7.6K   85  
How to build a simple C++ script compiler from Scintilla and CINT.
/* /% C++ %/ */
/***********************************************************************
 * cint (C/C++ interpreter)
 ************************************************************************
 * header file stdiostream.sut.h
 ************************************************************************
 * Description:
 *  Stub file for making iostream library
 ************************************************************************
 * Copyright(c) 1991~2001,  Masaharu Goto (MXJ02154@niftyserve.or.jp)
 *
 ************************************************************************/

#ifndef G__STDSTREAM_H
#define G__STDSTREAM_H

#ifndef __CINT__

#ifndef G__NEWSTDHEADER
#if defined(__APPLE__)
#include <iostream.h>
#elif defined(_WINDOWS)
#include <stdiostr.h>
#else
#include <stdiostream.h>
#endif
#endif

#else

#include "iostrm.h"
#include <stdio.h>

#ifdef G__NEVER
class stdiobuf : public streambuf {
  /*** stdiobuf is obsolete, should be avoided ***/
 public: // Virtuals
  virtual int	overflow(int=EOF);
  virtual int	underflow();
  virtual int	sync() ;
  virtual streampos seekoff(streamoff,ios::seek_dir,int) ;
  virtual int	pbackfail(int c);
 public:
  stdiobuf(FILE* f) ;
  FILE*		stdiofile() { return fp ; }
  virtual		~stdiobuf() ;
};
#endif

#ifdef G__NEVER
class stdiostream : public ios {
public:
  stdiostream(FILE*) ;
  ~stdiostream() ;
  stdiobuf*	rdbuf() ;
 private:
  stdiobuf	buf ;
};
#endif

#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions