Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Support

Pages: 1 ... 39 40 [41] 42 43 ... 59
601
What's New / ScriptBasic 32 Bit Linux
« on: April 09, 2011, 07:47:10 PM »
Armando suggested a utility that converts .deb files to .rpm files. (alien)

If someone can give this a try on their Red Hat, CentOS or Fedoria 32 bit distribution and let us know how it worked out, that would be helpful. If it works, I'll do the same for the 64 bit .deb file.


Another option to allow users to install ScriptBasic.

sudo tar xzvpf -C / scriba-v2.1.1_i386.tgz

602
What's New / ScriptBasic 32 Bit Linux
« on: April 09, 2011, 12:50:22 PM »
Armando and I used the ScriptBasic source we built the 64 bit version for to build a 32 bit version for Ubuntu 10.10.

sudo gdebi scriba-v2.1.1_i386.deb  -  Install

sudo apt-get remove scriba  -  Remove


Code: [Select]
jrs@Laptop:~/SB/scriptbasic$ sudo ./mkdeb.sh
The configuration file 'deb/scriba/etc/scriba/basic.conf' was created.
dpkg-deb: building package `scriba' in `scriba.deb'.
jrs@Laptop:~/SB/scriptbasic$ cd deb
jrs@Laptop:~/SB/scriptbasic/deb$ ls -l
total 812
drwxr-xr-x 2 jrs  jrs    4096 2011-04-09 12:20 DEBIAN
-rwxr-xr-x 1 jrs  jrs    5178 2011-04-08 13:39 deblist.txt
drwxr-xr-x 6 root root   4096 2011-04-09 12:21 scriba
-rw-r--r-- 1 root root 812402 2011-04-09 12:22 scriba-v2.1.1_i386.deb
jrs@Laptop:~/SB/scriptbasic/deb$ dpkg -c scriba-v2*
drwxr-xr-x root/root         0 2011-04-09 12:21 ./
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/bin/
-rwxr-xr-x root/root    529394 2011-04-09 12:21 ./usr/bin/sbhttpd
-rwxr-xr-x root/root    507943 2011-04-09 12:21 ./usr/bin/scriba
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/scriba/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/scriba/include/
-rwxr-xr-x root/root      1748 2011-04-09 12:21 ./usr/share/scriba/include/mysql.bas
-rwxr-xr-x root/root       600 2011-04-09 12:21 ./usr/share/scriba/include/time.bas
-rwxr-xr-x root/root       962 2011-04-09 12:21 ./usr/share/scriba/include/t.bas
-rwxr-xr-x root/root       336 2011-04-09 12:21 ./usr/share/scriba/include/dyc.bas
-rwxr-xr-x root/root      8331 2011-04-09 12:21 ./usr/share/scriba/include/error.bas
-rwxr-xr-x root/root      2133 2011-04-09 12:21 ./usr/share/scriba/include/hash.bas
-rwxr-xr-x root/root      1654 2011-04-09 12:21 ./usr/share/scriba/include/xml.bas
-rwxr-xr-x root/root       604 2011-04-09 12:21 ./usr/share/scriba/include/odbc.bas
-rwxr-xr-x root/root     10296 2011-04-09 12:21 ./usr/share/scriba/include/modinst.bas
-rwxr-xr-x root/root       748 2011-04-09 12:21 ./usr/share/scriba/include/curl.bas
-rwxr-xr-x root/root      1031 2011-04-09 12:21 ./usr/share/scriba/include/zlib.bas
-rwxr-xr-x root/root      1661 2011-04-09 12:21 ./usr/share/scriba/include/cio.bas
-rwxr-xr-x root/root       246 2011-04-09 12:21 ./usr/share/scriba/include/trial.bas
-rwxr-xr-x root/root      1201 2011-04-09 12:21 ./usr/share/scriba/include/mt.bas
-rwxr-xr-x root/root      5438 2011-04-09 12:21 ./usr/share/scriba/include/cgi.bas
-rwxr-xr-x root/root      2349 2011-04-09 12:21 ./usr/share/scriba/include/gd.bas
-rwxr-xr-x root/root      6577 2011-04-09 12:21 ./usr/share/scriba/include/curses.bas
-rwxr-xr-x root/root       578 2011-04-09 12:21 ./usr/share/scriba/include/ux.bas
-rwxr-xr-x root/root       709 2011-04-09 12:21 ./usr/share/scriba/include/sdbg.bas
-rwxr-xr-x root/root       709 2011-04-09 12:21 ./usr/share/scriba/include/dbg.bas
-rwxr-xr-x root/root      2180 2011-04-09 12:21 ./usr/share/scriba/include/re.bas
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/scriba/source/
-rwxr-xr-x root/root      1728 2011-04-09 12:21 ./usr/share/scriba/source/heber.bas
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/local/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/local/lib/
-rwxr-xr-x root/root      8344 2011-04-09 12:21 ./usr/local/lib/zlib.a
-rwxr-xr-x root/root      1656 2011-04-09 12:21 ./usr/local/lib/ux.a
-rwxr-xr-x root/root     42566 2011-04-09 12:21 ./usr/local/lib/cgi.a
-rwxr-xr-x root/root     18744 2011-04-09 12:21 ./usr/local/lib/sdbg.a
-rwxr-xr-x root/root     21464 2011-04-09 12:21 ./usr/local/lib/gd.a
-rwxr-xr-x root/root      7166 2011-04-09 12:21 ./usr/local/lib/xml.a
-rwxr-xr-x root/root     17048 2011-04-09 12:21 ./usr/local/lib/dbg.a
-rwxr-xr-x root/root    670486 2011-04-09 12:21 ./usr/local/lib/lscriba.a
-rwxr-xr-x root/root     17784 2011-04-09 12:21 ./usr/local/lib/mysql.a
-rwxr-xr-x root/root     20694 2011-04-09 12:21 ./usr/local/lib/mt.a
-rwxr-xr-x root/root      9692 2011-04-09 12:21 ./usr/local/lib/t.a
-rwxr-xr-x root/root      5216 2011-04-09 12:21 ./usr/local/lib/trial.a
-rwxr-xr-x root/root    673194 2011-04-09 12:21 ./usr/local/lib/libscriba.a
-rwxr-xr-x root/root     42636 2011-04-09 12:21 ./usr/local/lib/curl.a
-rwxr-xr-x root/root      9320 2011-04-09 12:21 ./usr/local/lib/hash.a
-rwxr-xr-x root/root     11228 2011-04-09 12:21 ./usr/local/lib/odbc.a
-rwxr-xr-x root/root     53062 2011-04-09 12:21 ./usr/local/lib/re.a
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/local/lib/scriba/
-rwxr-xr-x root/root     12790 2011-04-09 12:21 ./usr/local/lib/scriba/odbc.so
-rwxr-xr-x root/root      9345 2011-04-09 12:21 ./usr/local/lib/scriba/xml.so
-rwxr-xr-x root/root     14654 2011-04-09 12:21 ./usr/local/lib/scriba/curses.so
-rwxr-xr-x root/root     50207 2011-04-09 12:21 ./usr/local/lib/scriba/re.so
-rwxr-xr-x root/root     21290 2011-04-09 12:21 ./usr/local/lib/scriba/mysql.so
-rwxr-xr-x root/root     17075 2011-04-09 12:21 ./usr/local/lib/scriba/dbg.so
-rwxr-xr-x root/root     10711 2011-04-09 12:21 ./usr/local/lib/scriba/t.so
-rwxr-xr-x root/root     10284 2011-04-09 12:21 ./usr/local/lib/scriba/hash.so
-rwxr-xr-x root/root     22397 2011-04-09 12:21 ./usr/local/lib/scriba/mt.so
-rwxr-xr-x root/root     18980 2011-04-09 12:21 ./usr/local/lib/scriba/sdbg.so
-rwxr-xr-x root/root     43771 2011-04-09 12:21 ./usr/local/lib/scriba/cgi.so
-rwxr-xr-x root/root     45595 2011-04-09 12:21 ./usr/local/lib/scriba/curl.so
-rwxr-xr-x root/root     30802 2011-04-09 12:21 ./usr/local/lib/scriba/psql.so
-rwxr-xr-x root/root      6232 2011-04-09 12:21 ./usr/local/lib/scriba/trial.so
-rwxr-xr-x root/root     10001 2011-04-09 12:21 ./usr/local/lib/scriba/zlib.so
-rwxr-xr-x root/root      2320 2011-04-09 12:21 ./usr/local/lib/scriba/ux.so
-rwxr-xr-x root/root     11916 2011-04-09 12:21 ./usr/local/lib/curses.a
-rwxr-xr-x root/root     27628 2011-04-09 12:21 ./usr/local/lib/psql.a
drwxr-xr-x root/root         0 2011-04-09 12:21 ./etc/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./etc/init.d/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./etc/scriba/
-rwxr-xr-x root/root      1775 2011-04-09 12:21 ./etc/scriba/basic.conf
drwxrwxrwx root/root         0 2011-04-09 12:21 ./.scriba/
drwxrwxrwx root/root         0 2011-04-09 12:21 ./.scriba/hebtemp/
drwxrwxrwx root/root         0 2011-04-09 12:21 ./.scriba/cache/
jrs@Laptop:~/SB/scriptbasic/deb$ ls -l
total 812
drwxr-xr-x 2 jrs  jrs    4096 2011-04-09 12:20 DEBIAN
-rwxr-xr-x 1 jrs  jrs    5178 2011-04-08 13:39 deblist.txt
drwxr-xr-x 6 root root   4096 2011-04-09 12:21 scriba
-rw-r--r-- 1 root root 812402 2011-04-09 12:22 scriba-v2.1.1_i386.deb
jrs@Laptop:~/SB/scriptbasic/deb$ sudo gdebi scriba-v2.1.1_i386.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Building data structures... Done
Building data structures... Done


ScriptBasic Embeddable Interpreter
Do you want to install the software package? [y/N]:y
Selecting previously deselected package scriba.
(Reading database ... 447312 files and directories currently installed.)
Unpacking scriba (from scriba-v2.1.1_i386.deb) ...
Setting up scriba (2.1.1) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot

jrs@Laptop:~/SB/scriptbasic/deb$

603
Download / Re: ScriptBasic 64 Bit Linux
« on: April 09, 2011, 11:24:46 AM »
Thanks for your reply and support!

This was really a group effort by Armando, Tom and myself getting this put together.

Armando and I are working on a 32 bit .deb for Ubuntu 10.10 and should be posted shortly.


604
Download / ScriptBasic 64 Bit Linux
« on: April 08, 2011, 09:09:13 PM »
Armando and I were able to build a version of ScriptBasic for Ubuntu 10.10 64 bit.

This version of ScriptBasic includes the additional math functions Tom contributed.

This package will install ScriptBasic's dependencies if they are not present.

sudo gdebi scriba-v2.1.1_amd64.deb  -  Install

sudo apt-get remove scriba  -  Remove

Here is the ScriptBasic source directory I used to build the runtime and install .deb file.

scriba-v2.1.1-src_amd64.tar.z

ScriptBasic Online Documentation


ScriptBasic 64 is a powerful scripting language/API that is easy to use and takes less code to get the job done.

Large Numbers

Code: [Select]
a = 9000000000000000000 / 2
PRINT a,"\n"

$ scriba biglong.sb
4500000000000000000

New Math Functions

Code: [Select]
The following 8 functions accept radians as their argument, so we use the
new RAD() function to convert 34 degrees to 5.934119e-01 (0.593412) radians.

Tangent Cotangent Secant Cosecant
TAN()   COTAN()   SECANT()     COSECANT()
6.745085e-01 1.482561e+00 1.206218e+00 1.788292e+00
0.674509 1.482561 1.206218 1.788292

Arctangent Arccotangent Arcsecant Arccosecant
ATAN()     ACTAN()   ASECANT() ACOSECANT()
5.934119e-01 5.934119e-01 5.934119e-01 5.934119e-01
0.593412 0.593412 0.593412 0.593412

There are 6 Hyperbolic functions. They also accept radian arguments.

H-Sine H-Cosine H-Tangent
HSIN() HCOS()   HTAN()
6.288574e-01 1.181297e+00 5.323451e-01
0.628857 1.181297 0.532345

H-Secant H-Cosecant H-Cotangent
HSECANT() HCOSECANT() HCTAN()
8.465274e-01 1.590186e+00 1.878481e+00
0.846527 1.590186 1.878481


Large Strings

Code: [Select]
a = string(100000000," ") & "John" & string(100000000," ")
PRINT INSTR(a,"John"),"\n"

$ scriba biginstr.sb
100000001

Easy Database Access

sbdb:test


Code: [Select]
' MySQL Test Program

INCLUDE mysql.bas

dbh = mysql::RealConnect("localhost","USER","PSWD","sbdb")

mysql::query(dbh,"SELECT * FROM test")

WHILE mysql::FetchHash(dbh,column)

PRINTNL
PRINT column{"ID"},"\n"
PRINT column{"NAME"},"\n"
PRINTNL

WEND

PRINTNL
PRINT "The database handle is: ",dbh,"\n"
PRINT "Affected rows by SELECT: ",mysql::AffectedRows(dbh),"\n"
PRINT "Character set name is: ",mysql::CharacterSetName(dbh),"\n"
PRINT "Last error is: ",mysql::ErrorMessage(dbh),"\n"
PRINT "Client info is: ",mysql::GetClientInfo(),"\n"
PRINT "Host info is: ",mysql::GetHostInfo(dbh),"\n"
PRINT "Proto info is: ",mysql::GetProtoInfo(dbh),"\n"
PRINT "Server info is: ",mysql::GetServerInfo(dbh),"\n"
PRINT "PING result: ",mysql::Ping(dbh),"\n"
PRINT "Thread ID: ",mysql::ThreadId(dbh),"\n"
PRINT "Status is: ",mysql::Stat(dbh),"\n"

mysql::Close(dbh)

END

$ scriba testmysql.sb
1
John Spikowski

The database handle is: 1
Affected rows by SELECT: 1
Character set name is: latin1
Last error is:
Client info is: 5.1.49
Host info is: Localhost via UNIX socket
Proto info is: 10
Server info is: 5.1.49-1ubuntu8.1
PING result: -1
Thread ID: 0
Status is: Uptime: 194893  Threads: 1  Questions: 2043  Slow queries: 0  Opens: 200  Flush tables: 1  Open tables: 64  Queries per second avg: 0.10

Network/Internet Access

This cURL extension module example downloads the ScriptBasic logo from it's project site.

Code: [Select]
IMPORT curl.bas

ch = curl::init()
curl::option(ch,"URL","http://scriptbasic.org/logo.png")
curl::option(ch,"FILE","sb_logo.png")
curl::perform(ch)
curl::finish(ch)

If programming for the web is your thing, ScriptBasic includes a multi-threaded application proxy server to run your GCI scripts with in memory session support with enhanced security safeguards. (files located outside of web root, .htaccess authorization caching, connection pooling with ODBC, real {binary format} programs and not embedded parsed HTML text scripts like php)

Feedback appreciated!




605
What's New / Re: ScriptBasic 64 Bit Linux
« on: April 05, 2011, 10:54:18 AM »
Here is the complete set of binaries for ScriptBasic on Ubuntu 10.10 64 bit.  Feedback welcome!

Code: [Select]
/usr/bin
  sbhttpd
  scriba

/usr/share/scriba/include
  cgi.bas
  curl.bas
  curses.bas
  hash.bas
  mt.bas
  mysql.bas
  odbc.bas
  re.bas
  t.bas
  ux.bas
  xml.bas
  zlib.bas

/usr/local/lib/scriba
  cgi.so
  curl.so
  curses.so
  dbg.so
  hash.so
  mysql.so
  mt.so
  odbc.so
  re.so
  t.so
  ux.so
  xml.so
  zlib.so

/etc/scriba
  basic.conf.txt

Note I have provided a minimal configuration file in text format to customize for your particular needs. ScriptBasic requires the configuration file be in a binary format for use. The following scriba option will create the needed binary format configuration  file.  (basic.conf)

scriba -k basic.conf.txt

You can alway view your current configuration scriba/sbhttpd is using with this command.

scriba -D

 

606
What's New / ScriptBasic 64 Bit Linux
« on: March 31, 2011, 12:40:12 AM »
I wrote a webservice application using ScriptBasic on a Ubuntu 10.10 32 bit system recently. As it turned out the application needed to run on a 64 bit version of Ubuntu. Armando had compiled 64 bit versions of ScriptBasic for OSX and Windows. (MinGWGCC-IDM) For some reason we never got around to doing a 64 bit version for Linux. The good news is that ScriptBasic runs fine in 64 bit mode on Linux. (thanks to Armando's assistance) When I find some spare time, I would like to add a setup --gcc64 option to add the needed compiler switches to the make files being generated to create 64 bit executables and libraries.


607
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 09, 2011, 03:11:22 PM »
Tom,

./setup compiles everything with one command. I only use make when I have a problem compiling an extension module I may not have grabbed the development libraries for yet. ScriptBasic is literally generated from scratch. (header files, syntax tables, docs from C code, ...) I'm not sure what 64 bit OS Armando used. From what I gather he has a room full of toys and can generate anything one could imagine. He has lost all interest in the ScriptBasic project so we are on are own. Peter Verhas (ScriptBasic author) will help in a crisis but I try not to use that card unless it's my last resort and I did my due diligence beforehand.

John

608
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 09, 2011, 11:33:00 AM »
Tom,

I don't have a 64 bit box to try SB on. Armando has SB running on 64 bit Windows, Linux and the Mac with no reported problems.

Do you have a 32 bit system you can try and then move to 64 bit once you have a working 32 bit dev setup?

John

609
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 08, 2011, 07:13:27 PM »
t.bas / t.so is a ScriptBasic extension module that comes with the distribution. It has always compiled in the past (all OS's). Did you setup your basic.conf yet and point where the the INCLUDE and MODULE directories are?


610
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 08, 2011, 03:10:19 PM »
Tom,

The first script I tried after running your MathTest.bas program was a test of using my tinyXML parser on a HTML file to see if it would extract the text and remove the HTML tags. I got a segment fault when trying to run it. Here is a post I made on the ThinBasic forum about using it. (used my original version of scriba to make it work)

Code: [Select]
IMPORT t.bas

xml = t::LoadString("test.html")

SPLITA xml BY ">" TO a

FOR x = 0 TO UBOUND(a)
  IF LEFT(TRIM(a[x]),1) = "<" THEN GOTO IT
  p = INSTR(a[x],"<")
  PRINT MID(a[x],p+2) & " = " & LEFT(a[x],p-1),"\n"
IT:
NEXT


611
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 08, 2011, 01:36:53 PM »
Tom,

Even though I was able to run your MathTest.bas script with the additional math functions added, I'm getting segment faults with other scripts and strange syntax errors on program load. Something still isn't right. If the program loads an extension module, I see the segmentation errors and strange load error messages.

John

612
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 08, 2011, 10:59:38 AM »
Code: [Select]
root@Laptop:/usr/src/scriptbasic# grep RAD *.c
errcodes.c:#define LEX_ERROR_BAD_RADIX 76
lexer.c:        if( intpart < 2 || intpart > 36 )return LEX_ERROR_BAD_RADIX;
notimp.c:#define NOTIMP_RAD 0
syntax.c:#define CMD_RAD 487
syntax.c:void COMMAND_RAD(pExecuteObject);
syntax.c:{ CMD_RAD , 1 , 1}, /*rad*/
syntax.c:#define KEYWORDCODE_RAD CMD_RAD
syntax.c:{ "rad" , CMD_RAD } ,
syntax.c:{ "RAD" , CMD_RAD } , /* 487 */
syntax.c:  COMMAND_RAD, /* 487 */
syntax.c:         "RAD", /* 487 */
root@Laptop:/usr/src/scriptbasic#

I tried a ./setup and it worked with your code.

Code: [Select]
jrs@Laptop:~/SB/test$ scriba MathTest.bas

The following 8 functions accept radians as their argument, so we use the
new RAD() function to convert 34 degrees to 5.934119e-01 (0.593412) radians.

Tangent Cotangent Secant Cosecant
TAN()   COTAN()   SECANT()     COSECANT()
6.745085e-01 1.482561e+00 1.206218e+00 1.788292e+00
0.674509 1.482561 1.206218 1.788292

Arctangent Arccotangent Arcsecant Arccosecant
ATAN()     ACTAN()   ASECANT() ACOSECANT()
5.934119e-01 5.934119e-01 5.934119e-01 5.934119e-01
0.593412 0.593412 0.593412 0.593412

There are 6 Hyperbolic functions. They also accept radian arguments.

H-Sine H-Cosine H-Tangent
HSIN() HCOS()   HTAN()
6.288574e-01 1.181297e+00 5.323451e-01
0.628857 1.181297 0.532345

H-Secant H-Cosecant H-Cotangent
HSECANT() HCOSECANT() HCTAN()
8.465274e-01 1.590186e+00 1.878481e+00
0.846527 1.590186 1.878481

jrs@Laptop:~/SB/test$

I always use ./setup as there is so much going on building the system from scratch. I only compile extension modules with make in the extension module sub-directory if I'm having problems and don't want to recompile anything else. Glad it works!


613
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 08, 2011, 02:09:47 AM »
Tom,

Scriba is giving me a segmentation fault with any script I run. I followed your instructions in your post.

Is there any chance you use something 64 bit specific? (running Ubuntu 32 bit here)

I'm able to get the command line options if I don't pass a script and -D and -v both work. I didn't see any warnings or errors with the make.

John

Code: [Select]
root@Laptop:/usr/src/scriptbasic# perl syntaxer.pl
root@Laptop:/usr/src/scriptbasic# make clean
rm -rf bin/exe/*
rm -rf bin/include/*
rm -rf bin/lib/*
rm -rf bin/make/*
rm -rf bin/obj/*
rm -rf bin/var/*
root@Laptop:/usr/src/scriptbasic# make
gcc  -w -c -o bin/obj/basext.o basext.c
gcc  -w -c -o bin/obj/builder.o builder.c
gcc  -w -c -o bin/obj/buildnum.o buildnum.c
gcc  -w -c -o bin/obj/confpile.o confpile.c
gcc  -w -c -o bin/obj/conftree.o conftree.c
gcc  -w -c -o bin/obj/dynlolib.o dynlolib.c
gcc  -w -c -o bin/obj/epreproc.o epreproc.c
gcc  -w -c -o bin/obj/errcodes.o errcodes.c
gcc  -w -c -o bin/obj/execute.o execute.c
gcc  -w -c -o bin/obj/expression.o expression.c
gcc  -w -c -o bin/obj/filesys.o filesys.c
gcc  -w -c -o bin/obj/getopt.o getopt.c
gcc  -w -c -o bin/obj/hndlptr.o hndlptr.c
gcc  -w -c -o bin/obj/hookers.o hookers.c
gcc  -w -c -o bin/obj/httpd.o httpd.c
gcc  -w -c -o bin/obj/ipreproc.o ipreproc.c
gcc  -w -c -o bin/obj/lexer.o lexer.c
gcc  -w -c -o bin/obj/logger.o logger.c
gcc  -w -c -o bin/obj/lsp.o lsp.c
gcc  -w -c -o bin/obj/match.o match.c
gcc  -w -c -o bin/obj/memory.o memory.c
gcc  -w -c -o bin/obj/modumana.o modumana.c
gcc  -w -c -o bin/obj/myalloc.o myalloc.c
gcc  -w -c -o bin/obj/mygmtime.o mygmtime.c
gcc  -w -c -o bin/obj/options.o options.c
gcc  -w -c -o bin/obj/reader.o reader.c
gcc  -w -c -o bin/obj/report.o report.c
gcc  -w -c -o bin/obj/scriba.o scriba.c
gcc  -w -c -o bin/obj/sym.o sym.c
gcc  -w -c -o bin/obj/syntax.o syntax.c
gcc  -w -c -o bin/obj/thread.o thread.c
gcc  -w -c -o bin/obj/uniqfnam.o uniqfnam.c
gcc  -w -c -o bin/obj/md5.o md5.c
gcc  -w -c -o bin/obj/environ.o commands/environ.c
gcc  -w -c -o bin/obj/external.o commands/external.c
gcc  -w -c -o bin/obj/extops.o commands/extops.c
gcc  -w -c -o bin/obj/file.o commands/file.c
gcc  -w -c -o bin/obj/function.o commands/function.c
gcc  -w -c -o bin/obj/goto.o commands/goto.c
gcc  -w -c -o bin/obj/if.o commands/if.c
gcc  -w -c -o bin/obj/let.o commands/let.c
gcc  -w -c -o bin/obj/mathfunc.o commands/mathfunc.c
gcc  -w -c -o bin/obj/mathops.o commands/mathops.c
gcc  -w -c -o bin/obj/print.o commands/print.c
gcc  -w -c -o bin/obj/string.o commands/string.c
gcc  -w -c -o bin/obj/time.o commands/time.c
gcc  -w -c -o bin/obj/while.o commands/while.c
ar -r bin/lib/lscriba.a  bin/obj/basext.o bin/obj/builder.o bin/obj/buildnum.o bin/obj/confpile.o bin/obj/conftree.o bin/obj/dynlolib.o bin/obj/epreproc.o bin/obj/errcodes.o bin/obj/execute.o bin/obj/expression.o bin/obj/filesys.o bin/obj/getopt.o bin/obj/hndlptr.o bin/obj/hookers.o bin/obj/httpd.o bin/obj/ipreproc.o bin/obj/lexer.o bin/obj/logger.o bin/obj/lsp.o bin/obj/match.o bin/obj/memory.o bin/obj/modumana.o bin/obj/myalloc.o bin/obj/mygmtime.o bin/obj/options.o  bin/obj/reader.o bin/obj/report.o bin/obj/scriba.o bin/obj/sym.o bin/obj/syntax.o bin/obj/thread.o bin/obj/uniqfnam.o bin/obj/md5.o bin/obj/environ.o bin/obj/external.o bin/obj/extops.o bin/obj/file.o bin/obj/function.o bin/obj/goto.o bin/obj/if.o bin/obj/let.o bin/obj/mathfunc.o bin/obj/mathops.o bin/obj/print.o bin/obj/string.o bin/obj/time.o bin/obj/while.o
ar: creating bin/lib/lscriba.a
mkdir bin/var/standard || echo
gcc  -w -c -o bin/var/standard/scribacmd.o variations/standard/scribacmd.c
gcc  -w -c -o bin/obj/lmt_none.o lmt_none.c
gcc  -w -o bin/exe/scriba bin/var/standard/scribacmd.o bin/obj/lmt_none.o bin/lib/lscriba.a -lc -lm -ldl -lpthread
bin/exe/scriba -v
ScriptBasic v2.1
Variation >>STANDARD<< build 1
Magic value 859002424
Node size is 16
Extension interface version is 11
Compilation: Jan  8 2011 02:01:00
mkdir bin/var/httpd || echo
gcc  -w -c -o bin/var/httpd/websrv.o variations/httpd/websrv.c
mkdir bin/var/httpd || echo
mkdir: cannot create directory `bin/var/httpd': File exists

gcc  -w -c -o bin/var/httpd/service.o variations/httpd/service.c
gcc  -w -o bin/exe/sbhttpd bin/var/httpd/websrv.o bin/var/httpd/service.o bin/obj/lmt_none.o bin/lib/lscriba.a -lc -lm -ldl -lpthread
gcc  -w -c -o bin/obj/stndlone.o stndlone.c
ar -r bin/lib/libscriba.a  bin/obj/basext.o bin/obj/builder.o bin/obj/buildnum.o bin/obj/confpile.o bin/obj/conftree.o bin/obj/dynlolib.o bin/obj/epreproc.o bin/obj/errcodes.o bin/obj/execute.o bin/obj/expression.o bin/obj/filesys.o bin/obj/getopt.o bin/obj/hndlptr.o bin/obj/hookers.o bin/obj/httpd.o bin/obj/ipreproc.o bin/obj/lexer.o bin/obj/logger.o bin/obj/lsp.o bin/obj/match.o bin/obj/memory.o bin/obj/modumana.o bin/obj/myalloc.o bin/obj/mygmtime.o bin/obj/options.o  bin/obj/reader.o bin/obj/report.o bin/obj/scriba.o bin/obj/sym.o bin/obj/syntax.o bin/obj/thread.o bin/obj/uniqfnam.o bin/obj/md5.o bin/obj/environ.o bin/obj/external.o bin/obj/extops.o bin/obj/file.o bin/obj/function.o bin/obj/goto.o bin/obj/if.o bin/obj/let.o bin/obj/mathfunc.o bin/obj/mathops.o bin/obj/print.o bin/obj/string.o bin/obj/time.o bin/obj/while.o bin/obj/stndlone.o
ar: creating bin/lib/libscriba.a
ld -shared -o bin/lib/libscriba.so  bin/obj/basext.o bin/obj/builder.o bin/obj/buildnum.o bin/obj/confpile.o bin/obj/conftree.o bin/obj/dynlolib.o bin/obj/epreproc.o bin/obj/errcodes.o bin/obj/execute.o bin/obj/expression.o bin/obj/filesys.o bin/obj/getopt.o bin/obj/hndlptr.o bin/obj/hookers.o bin/obj/httpd.o bin/obj/ipreproc.o bin/obj/lexer.o bin/obj/logger.o bin/obj/lsp.o bin/obj/match.o bin/obj/memory.o bin/obj/modumana.o bin/obj/myalloc.o bin/obj/mygmtime.o bin/obj/options.o  bin/obj/reader.o bin/obj/report.o bin/obj/scriba.o bin/obj/sym.o bin/obj/syntax.o bin/obj/thread.o bin/obj/uniqfnam.o bin/obj/md5.o bin/obj/environ.o bin/obj/external.o bin/obj/extops.o bin/obj/file.o bin/obj/function.o bin/obj/goto.o bin/obj/if.o bin/obj/let.o bin/obj/mathfunc.o bin/obj/mathops.o bin/obj/print.o bin/obj/string.o bin/obj/time.o bin/obj/while.o bin/obj/lmt_none.o -lc -lm -ldl -lpthread
root@Laptop:/usr/src/scriptbasic# cd bin/exe
root@Laptop:/usr/src/scriptbasic/bin/exe# ls -l
total 1020
-rwxr-xr-x 1 root jrs 529394 2011-01-08 02:01 sbhttpd
-rwxr-xr-x 1 root jrs 507943 2011-01-08 02:01 scriba
root@Laptop:/usr/src/scriptbasic/bin/exe# mv /usr/bin/scriba /usr/bin/scriba-2.1
root@Laptop:/usr/src/scriptbasic/bin/exe# mv /usr/bin/sbhttpd /usr/bin/sbhttpd-2.1
root@Laptop:/usr/src/scriptbasic/bin/exe# cp scriba /usr/bin
root@Laptop:/usr/src/scriptbasic/bin/exe# cp sbhttpd /usr/bin
root@Laptop:/usr/src/scriptbasic/bin/exe# exit
logout
jrs@Laptop:~$ cd SB/test
jrs@Laptop:~/SB/test$ scriba -v
ScriptBasic v2.1
Variation >>STANDARD<< build 1
Magic value 859002424
Node size is 16
Extension interface version is 11
Compilation: Jan  8 2011 02:01:00
jrs@Laptop:~/SB/test$ scriba MathTest.bas
Segmentation fault
jrs@Laptop:~/SB/test$

614
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 07, 2011, 04:06:11 PM »
Thanks Tom for the help with ScriptBasic. I understand your reluctance to invest any time with Windows. I have only visited my Windows XP partition twice in the last few months. It becomes obvious that Windows is a bloated kludge with more layers than an onion. Linux just works and I'm not always pulling out my wallet to upgrade a package or pay for another year of subscription services. I hope Microsoft wakes up to the fact that their screwed knowing that people have an option outside their monopoly. I posted your MathTest script so others can get an idea what your enhancements bring to the table. My plan over the next month or so is to put in place a solid source control system. I'm still looking at all the options. I don't want to do this more than once.

Code: [Select]
'
' Given the starting value of 34 degrees, calculate radians.
' Given the radian value, calculate TAN, COTAN, SECANT and COSECANT.
' Given the TAN, COTAN, SECANT and COSECANT values,
' calculate the ATAN, ACTAN, ASECANT and ACOSECANT.
'
degval = 34
radval = RAD(degval)
zerval = 0

tanval = TAN(radval)
cotval = COTAN(radval)
secval = SECANT(radval)
cseval = COSECANT(radval)

ataval = ATAN(tanval)
actval = ACTAN(cotval)
aseval = ASECANT(secval)
acoval = ACOSECANT(cseval)

hsinv = HSIN(radval)
hcosv = HCOS(radval)
htanv = HTAN(radval)
hsecv = HSECANT(radval)
hcosc = HCOSECANT(radval)
hcotv = HCTAN(radval)

print "\nThe following 8 functions accept radians as their argument, so we "
print "use the\nnew RAD() function to convert ",degval," degrees to ",radval," (",str$(radval),") radians.\n\n"

print "Tangent\t\tCotangent\tSecant\t\tCosecant\n"
print "TAN()  \t\tCOTAN()  \tSECANT()    \tCOSECANT()\n"
print tanval," \t",cotval,"\t",secval," \t",cseval,"\n"
print str$(tanval)," \t",str$(cotval)," \t",str$(secval)," \t",str$(cseval),"\n\n"

print "Arctangent\tArccotangent\tArcsecant\tArccosecant\n"
print "ATAN()    \tACTAN()  \tASECANT()\tACOSECANT()\n"
print ataval," \t",actval," \t",aseval," \t",acoval,"\n"
print str$(ataval)," \t",str$(actval)," \t",str$(aseval)," \t",str$(acoval),"\n\n"

print "There are 6 Hyperbolic functions. They also accept radian arguments.\n\n"
print "H-Sine\t\tH-Cosine\tH-Tangent\n"
print "HSIN()\t\tHCOS()  \tHTAN()\n"
print hsinv," \t",hcosv," \t",htanv,"\n"
print str$(hsinv)," \t",str$(hcosv)," \t",str$(htanv),"\n\n"

print "H-Secant\tH-Cosecant\tH-Cotangent\n"
print "HSECANT()\tHCOSECANT()\tHCTAN()\n"
print hsecv," \t",hcosc," \t",hcotv,"\n"
print str$(hsecv)," \t",str$(hcosc)," \t",str$(hcotv),"\n\n"

615
What's New / Re: ScriptBasic 3.0 Open Items
« on: January 03, 2011, 03:07:53 PM »
That's great news Tom!

Do you have any SB script(s) you used to test this with?

Can you post (as an attachment) the files you changed and any notes you wish to share?

I would be happy to test and create a new Ubuntu build for testing. If your doing this on Windows, creating a scriba.exe for folks to test with would be great.

I'm in the process of setting up a developers site only that will give us online source editing, FTP, MySQL DB, console mode access and source control options. (level of access will increase as one becomes more involved in the project)

John

Pages: 1 ... 39 40 [41] 42 43 ... 59