Commit 529f78d3 authored by Colin Watson's avatar Colin Watson

Create initial directory structure and import upstream version 3.pre63.

parents
# A simulation of Subversion default ignores, generated by reposurgeon.
*.o
*.lo
*.la
*.al
.libs
*.so
*.so.[0-9]*
*.a
*.pyc
*.pyo
*.rej
*~
.#*
.*.swp
.DS_store
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#! /bin/sh
# build_posixgcc.sh
# This file builds and tests CCCC on a POSIX platform using the
# GNU C++ compiler.
cd pccts
make clean
make
cd ..
cd cccc
make -f posixgcc.mak clean
make -f posixgcc.mak
cd ..
cd test
make -f posix.mak
cd ..
@rem build_w32bcc.bat
@echo off
rem This file builds and tests CCCC under the Borland Command line
rem C++ compiler.
rem Path to Microsoft Visual Studio standard edition release 6.0
set BCDIR=c:\Program Files\Borland\bcc55
if not exist "%BCDIR%\bin\bcc32.exe" goto no_bcc
PATH "%BCDIR%\bin";%PATH%
rem One day there I will do Borland Makefiles for ANTLR and DLG.
rem For the moment I will rely on versions precompiled under MSVC.
if not exist pccts\bin\antlr.exe goto no_pccts
if not exist pccts\bin\dlg.exe goto no_pccts
cd cccc
if exist *.obj del *.obj
if exist *.cpp del *.cpp
make -f w32bcc.mak
cd ..
cd test
make -f w32bcc.mak
cd ..
goto end
:no_bcc
echo This script expects Borland C++ command line compiler to be in
echo %VCDIR%\bin\bcc32.exe.
echo Please modify the script if the location is different.
goto end
:no_pccts
echo This script expects precompiled versions of PCCTS binaries
echo DLG and ANTLR to be in pccts\bin.
echo The CCCC package contains makefiles to build these under
echo MSVC, otherwise you can write and contribute makefiles for
echo BCC32.
:end
File added
@rem build_w32vc.bat
@echo off
rem This file builds and tests CCCC under Microsoft Visual Studio.
rem Path to Microsoft Visual Studio standard edition release 6.0
set VCDIR=c:\Program Files\Microsoft Visual Studio\vc98
if not exist "%VCDIR%\bin\vcvars32.bat" goto no_vc
call "%VCDIR%\bin\vcvars32.bat"
if not exist pccts\bin mkdir pccts\bin
cd pccts\dlg
if exist *.obj del *.obj
nmake -f DlgMS.mak
copy dlg.exe ..\bin
cd ..\..
cd pccts\antlr
if exist *.obj del *.obj
nmake -f AntlrMS.mak
copy antlr.exe ..\bin
cd ..\..
cd cccc
if exist *.obj del *.obj
if exist *.cpp del *.cpp
nmake -f w32vc.mak
cd ..
cd test
nmake -f w32vc.mak
cd ..
goto end
:no_vc
echo This script expects MS Visual C++ to be in %VCDIR%
echo Please modify the script if the location is different.
:end
This diff is collapsed.
# Microsoft Developer Studio Project File - Name="cccc" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) External Target" 0x0106
CFG=cccc - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "Cccc.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Cccc.mak" CFG="cccc - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "cccc - Win32 Release" (based on "Win32 (x86) External Target")
!MESSAGE "cccc - Win32 Debug" (based on "Win32 (x86) External Target")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
!IF "$(CFG)" == "cccc - Win32 Release"
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Cmd_Line "NMAKE /f cccc.mak"
# PROP BASE Rebuild_Opt "/a"
# PROP BASE Target_File "cccc.exe"
# PROP BASE Bsc_Name "cccc.bsc"
# PROP BASE Target_Dir ""
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Cmd_Line "nmake -f w32vc.mak DEBUG=false"
# PROP Rebuild_Opt ""
# PROP Target_File "\ccccprod\bin\cccc.exe"
# PROP Bsc_Name ""
# PROP Target_Dir ""
!ELSEIF "$(CFG)" == "cccc - Win32 Debug"
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Cmd_Line "NMAKE /f cccc.mak"
# PROP BASE Rebuild_Opt "/a"
# PROP BASE Target_File "cccc.exe"
# PROP BASE Bsc_Name "cccc.bsc"
# PROP BASE Target_Dir ""
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Cmd_Line "nmake -f w32vc.mak DEBUG=true"
# PROP Rebuild_Opt "clean all"
# PROP Target_File "cccc.exe"
# PROP Bsc_Name ""
# PROP Target_Dir ""
!ENDIF
# Begin Target
# Name "cccc - Win32 Release"
# Name "cccc - Win32 Debug"
!IF "$(CFG)" == "cccc - Win32 Release"
!ELSEIF "$(CFG)" == "cccc - Win32 Debug"
!ENDIF
# Begin Group "PCCTS grammars"
# PROP Default_Filter "g"
# Begin Source File
SOURCE=.\ada.g
# End Source File
# Begin Source File
SOURCE=.\cccc.g
# End Source File
# Begin Source File
SOURCE=.\java.g
# End Source File
# End Group
# Begin Group "C++ header files"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\cccc.h
# End Source File
# Begin Source File
SOURCE=.\cccc_db.h
# End Source File
# Begin Source File
SOURCE=.\cccc_ext.h
# End Source File
# Begin Source File
SOURCE=.\cccc_htm.h
# End Source File
# Begin Source File
SOURCE=.\cccc_itm.h
# End Source File
# Begin Source File
SOURCE=.\cccc_mem.h
# End Source File
# Begin Source File
SOURCE=.\cccc_met.h
# End Source File
# Begin Source File
SOURCE=.\cccc_mod.h
# End Source File
# Begin Source File
SOURCE=.\cccc_opt.h
# End Source File
# Begin Source File
SOURCE=.\cccc_prj.h
# End Source File
# Begin Source File
SOURCE=.\cccc_rec.h
# End Source File
# Begin Source File
SOURCE=.\cccc_tbl.h
# End Source File
# Begin Source File
SOURCE=.\cccc_tok.h
# End Source File
# Begin Source File
SOURCE=.\cccc_use.h
# End Source File
# Begin Source File
SOURCE=.\cccc_utl.h
# End Source File
# End Group
# Begin Group "C++ implementation files"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\cccc_db.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_ext.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_htm.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_itm.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_mem.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_met.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_mod.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_new.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_opt.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_prj.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_rec.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_tbl.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_tok.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_tpl.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_use.cc
# End Source File
# Begin Source File
SOURCE=.\cccc_utl.cc
# End Source File
# Begin Source File
SOURCE=.\ccccmain.cc
# End Source File
# End Group
# Begin Group "makefiles"
# PROP Default_Filter "*.mak"
# Begin Source File
SOURCE=.\posixgcc.mak
# End Source File
# Begin Source File
SOURCE=.\rules.mak
# End Source File
# Begin Source File
SOURCE=.\w32bcb.mak
# End Source File
# Begin Source File
SOURCE=.\w32cygnus.mak
# End Source File
# Begin Source File
SOURCE=.\w32cygnus_gmake.mak
# End Source File
# Begin Source File
SOURCE=.\w32cygnus_nmake.mak
# End Source File
# Begin Source File
SOURCE=.\w32vc.mak
# End Source File
# End Group
# End Target
# End Project
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* cccc_ext.h
*/
#ifndef CCCC_EXT_H
#define CCCC_EXT_H
#include <string>
using std::string;
#include "cccc_utl.h"
class CCCC_Item;
enum ExtentNameLevel { nlFILENAME=-1, nlLINENUMBER=-2, nlDESCRIPTION=-3};
class CCCC_Extent
{
friend class CCCC_Record;
friend class CCCC_Project;
string filename;
string linenumber;
string description;
string flags;
string count_buffer;
UseType ut;
Visibility v;
static unsigned int nextkey;
unsigned int extkey;
public:
CCCC_Extent();
CCCC_Extent(CCCC_Item& is);
string name( int index ) const;
string key() const;
int GetFromItem(CCCC_Item& item);
int AddToItem(CCCC_Item& item);
Visibility get_visibility() const { return v; }
int get_count(const char *count_tag);
UseType get_usetype() const { return ut; }
const char* get_description() const { return description.c_str(); }
};
#endif // CCCC_EXT_H
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#define CCCC_VERSION "3.pre63"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.