|
From: <da...@us...> - 2003-08-10 05:18:34
|
Update of /cvsroot/binaryphp/binaryphp
In directory sc8-pr-cvs1:/tmp/cvs-serv9138
Modified Files:
tokenflow.php
Added Files:
php_var.hpp
Log Message:
Added php_var header file.
--- NEW FILE: php_var.hpp ---
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <iostream>
#define PHP_NULL 0
#define PHP_STRING 1
#define PHP_INT 2
#define PHP_BOOL 3
#define PHP_ARRAY 4
#define PHP_RESOURCE 5
#define PHP_OBJECT 6
using namespace std;
char* intstring(long i);
char* doublestring(double i);
class php_var
{
public:
php_var(); // Constructor
php_var(const char* str);
php_var(double i);
php_var(int i);
php_var(unsigned int i);
php_var(long i);
php_var(const php_var &temp);
php_var(char * str);
php_var(string str);
php_var(bool b);
operator const char*();
operator string();
operator bool();
operator double();
operator float();
operator int();
operator unsigned int();
operator long();
php_var &operator[](int subscript);
php_var &operator[](unsigned int subscript);
php_var &operator[](const char* subscript);
php_var &operator[](char* subscript);
php_var &operator[](string subscript);
php_var &operator[](php_var subscript);
bool operator<(int i);
bool operator>(int i);
bool operator<(php_var i);
bool operator>(php_var i);
bool operator!=(const char* cmp);
bool operator!=(int i);
bool operator!=(php_var var);
bool operator==(const char* cmp);
bool operator==(int i);
bool operator==(php_var var);
int operator++(int i);
int operator++();
int operator--(int i);
int operator--();
void operator+=(int inc);
void operator+=(php_var str);
void operator+=(string str);
void operator+=(const char* str);
void operator+=(char* str);
void operator-=(int dec);
void operator-=(php_var i);
friend ostream &operator<<( ostream &out, const php_var &var );
void to_array();
string container; // Contains value.
vector<php_var> keys;
vector<php_var> data;
void *res;
void *obj_type;
int res_type;
int type; // Contains current type.
};
Index: tokenflow.php
===================================================================
RCS file: /cvsroot/binaryphp/binaryphp/tokenflow.php,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** tokenflow.php 10 Aug 2003 01:42:54 -0000 1.55
--- tokenflow.php 10 Aug 2003 05:18:31 -0000 1.56
***************
*** 223,226 ****
--- 223,230 ----
$code .= $data;
break;
+ case '{':
+ case '}':
+ $this->AddCode($data);
+ break;
}
}
|