Use less conflicting filenames
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef _PYC_ASTNODE_H
|
||||
#define _PYC_ASTNODE_H
|
||||
|
||||
#include "module.h"
|
||||
#include "pyc_module.h"
|
||||
#include <list>
|
||||
|
||||
/* Similar interface to PycObject, so PycRef can work on it... *
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "ASTree.h"
|
||||
#include "FastStack.h"
|
||||
#include "pyc_numeric.h"
|
||||
#include "bytecode.h"
|
||||
#include "numeric.h"
|
||||
|
||||
/* Use this to determine if an error occurred (and therefore, if we should
|
||||
* avoid cleaning the output tree) */
|
||||
|
||||
43
Makefile
43
Makefile
@@ -5,14 +5,14 @@ LDFLAGS =
|
||||
#LDFLAGS += -lgcov
|
||||
|
||||
COMMON = \
|
||||
out/module.o \
|
||||
out/data.o \
|
||||
out/bytecode.o \
|
||||
out/object.o \
|
||||
out/numeric.o \
|
||||
out/code.o \
|
||||
out/sequence.o \
|
||||
out/string.o \
|
||||
out/pyc_module.o \
|
||||
out/pyc_object.o \
|
||||
out/pyc_numeric.o \
|
||||
out/pyc_code.o \
|
||||
out/pyc_sequence.o \
|
||||
out/pyc_string.o \
|
||||
out/ASTree.o \
|
||||
out/ASTNode.o \
|
||||
|
||||
@@ -79,35 +79,8 @@ bin/pycdas: pycdas.cpp $(COMMON) $(BYTES)
|
||||
bin/pycdc: pycdc.cpp $(COMMON) $(BYTES)
|
||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(COMMON) $(BYTES) pycdc.cpp -o $@
|
||||
|
||||
out/module.o: module.h module.cpp
|
||||
$(CXX) $(CXXFLAGS) -c module.cpp -o $@
|
||||
|
||||
out/data.o: data.h data.cpp
|
||||
$(CXX) $(CXXFLAGS) -c data.cpp -o $@
|
||||
|
||||
out/bytecode.o: bytecode.h bytecode.cpp
|
||||
$(CXX) $(CXXFLAGS) -c bytecode.cpp -o $@
|
||||
|
||||
out/object.o: object.h object.cpp
|
||||
$(CXX) $(CXXFLAGS) -c object.cpp -o $@
|
||||
|
||||
out/numeric.o: numeric.h numeric.cpp
|
||||
$(CXX) $(CXXFLAGS) -c numeric.cpp -o $@
|
||||
|
||||
out/code.o: code.h code.cpp
|
||||
$(CXX) $(CXXFLAGS) -c code.cpp -o $@
|
||||
|
||||
out/sequence.o: sequence.h sequence.cpp
|
||||
$(CXX) $(CXXFLAGS) -c sequence.cpp -o $@
|
||||
|
||||
out/string.o: string.h string.cpp
|
||||
$(CXX) $(CXXFLAGS) -c string.cpp -o $@
|
||||
|
||||
out/ASTree.o: ASTree.h ASTree.cpp
|
||||
$(CXX) $(CXXFLAGS) -c ASTree.cpp -o $@
|
||||
|
||||
out/ASTNode.o: ASTNode.h ASTNode.cpp
|
||||
$(CXX) $(CXXFLAGS) -c ASTNode.cpp -o $@
|
||||
out/%.o: %.cpp %.h
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
out/python_%.o: bytes/python_%.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "pyc_numeric.h"
|
||||
#include "bytecode.h"
|
||||
#include "numeric.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define snprintf _snprintf
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "code.h"
|
||||
#include "module.h"
|
||||
#include "pyc_code.h"
|
||||
#include "pyc_module.h"
|
||||
#include "data.h"
|
||||
|
||||
namespace Pyc {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "code.h"
|
||||
#include "pyc_code.h"
|
||||
#include "pyc_module.h"
|
||||
#include "data.h"
|
||||
#include "module.h"
|
||||
|
||||
void PycCode::load(PycData* stream, PycModule* mod)
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef _PYC_CODE_H
|
||||
#define _PYC_CODE_H
|
||||
|
||||
#include "sequence.h"
|
||||
#include "string.h"
|
||||
#include "pyc_sequence.h"
|
||||
#include "pyc_string.h"
|
||||
|
||||
class PycCode : public PycObject {
|
||||
public:
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "module.h"
|
||||
#include "pyc_module.h"
|
||||
#include "data.h"
|
||||
|
||||
PycModule::PycModule()
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _PYC_MODULE_H
|
||||
#define _PYC_MODULE_H
|
||||
|
||||
#include "code.h"
|
||||
#include "pyc_code.h"
|
||||
#include <list>
|
||||
|
||||
enum PycMagic {
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "numeric.h"
|
||||
#include "pyc_numeric.h"
|
||||
#include "pyc_module.h"
|
||||
#include "data.h"
|
||||
#include "module.h"
|
||||
#include <cstring>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _PYC_NUMERIC_H
|
||||
#define _PYC_NUMERIC_H
|
||||
|
||||
#include "object.h"
|
||||
#include "pyc_object.h"
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#include "object.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include "pyc_object.h"
|
||||
#include "pyc_module.h"
|
||||
#include "pyc_numeric.h"
|
||||
#include "pyc_code.h"
|
||||
#include "data.h"
|
||||
#include "module.h"
|
||||
#include "numeric.h"
|
||||
#include "code.h"
|
||||
#include <cstdio>
|
||||
|
||||
PycRef<PycObject> Pyc_NULL = (PycObject*)0;
|
||||
PycRef<PycObject> Pyc_None = new PycObject(PycObject::TYPE_NONE);
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "sequence.h"
|
||||
#include "pyc_sequence.h"
|
||||
#include "pyc_module.h"
|
||||
#include "data.h"
|
||||
#include "module.h"
|
||||
|
||||
/* PycTuple */
|
||||
void PycTuple::load(PycData* stream, PycModule* mod)
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _PYC_SEQUENCE_H
|
||||
#define _PYC_SEQUENCE_H
|
||||
|
||||
#include "object.h"
|
||||
#include "pyc_object.h"
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <set>
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "string.h"
|
||||
#include "pyc_string.h"
|
||||
#include "pyc_module.h"
|
||||
#include "data.h"
|
||||
#include "module.h"
|
||||
#include <cstring>
|
||||
|
||||
/* PycString */
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _PYC_STRING_H
|
||||
#define _PYC_STRING_H
|
||||
|
||||
#include "object.h"
|
||||
#include "pyc_object.h"
|
||||
#include <cstdio>
|
||||
|
||||
class PycString : public PycObject {
|
||||
@@ -1,9 +1,9 @@
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstdarg>
|
||||
#include "module.h"
|
||||
#include "pyc_module.h"
|
||||
#include "pyc_numeric.h"
|
||||
#include "bytecode.h"
|
||||
#include "numeric.h"
|
||||
|
||||
#ifdef WIN32
|
||||
# define PATHSEP '\\'
|
||||
|
||||
@@ -261,14 +261,6 @@
|
||||
RelativePath=".\bytecode.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\code.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\code.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\data.cpp"
|
||||
>
|
||||
@@ -282,49 +274,57 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\module.cpp"
|
||||
RelativePath=".\pyc_code.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\module.h"
|
||||
RelativePath=".\pyc_code.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\numeric.cpp"
|
||||
RelativePath=".\pyc_module.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\numeric.h"
|
||||
RelativePath=".\pyc_module.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\object.cpp"
|
||||
RelativePath=".\pyc_numeric.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\object.h"
|
||||
RelativePath=".\pyc_numeric.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_object.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_object.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_sequence.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_sequence.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_string.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pycdas.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\sequence.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\sequence.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\string.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
||||
60
pycdc.vcproj
60
pycdc.vcproj
@@ -261,14 +261,6 @@
|
||||
RelativePath=".\bytecode.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\code.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\code.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\data.cpp"
|
||||
>
|
||||
@@ -282,49 +274,57 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\module.cpp"
|
||||
RelativePath=".\pyc_code.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\module.h"
|
||||
RelativePath=".\pyc_code.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\numeric.cpp"
|
||||
RelativePath=".\pyc_module.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\numeric.h"
|
||||
RelativePath=".\pyc_module.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\object.cpp"
|
||||
RelativePath=".\pyc_numeric.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\object.h"
|
||||
RelativePath=".\pyc_numeric.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_object.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_object.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_sequence.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_sequence.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pyc_string.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\pycdc.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\sequence.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\sequence.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\string.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
|
||||
Reference in New Issue
Block a user