Author Topic: general question about compiling oxygen  (Read 1940 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Guest
general question about compiling oxygen
« on: February 22, 2013, 01:55:41 AM »
I did yesterday a probably silly thing, but it's interesting question for me about programming with oxygen: where I can find infos (perhaps in src folder: "o2hdrs.bas"?) how to bind for example "o2_mode()" or "o2_buf()"  functions or sub's in oxygen? I tried a changing of functions by name but after compiling the editor doesn't know anymore "o2_asm" or other files. it's general possible to change function names in "oxygen.bas" ? It's necessary to look at other files too in source code folder? :) best regards, frank

Charles Pegge

  • Guest
Re: general question about compiling oxygen
« Reply #1 on: February 22, 2013, 02:21:56 AM »
Hi Frank,

The exported functions you refer to are to be found in src/oxygen.bas. Therse is no separate header file. You have to create your own for each language supported. You will see that they are contained within an Extern "Windows-MS" block. This ensures that the function names do not get mangled during freebasic compilation.

Charles

Frankolinox

  • Guest
Re: general question about compiling oxygen
« Reply #2 on: February 23, 2013, 02:29:54 AM »
thank you charles for infos!

but ;).. where

a) does oxygen know how to catch the "o2_mode", "o2_runt", "o2_asmo" etcpp and all other functions of "oxygen.bas" ?

b) I thought that this functions was kept by the source file "o2hdrs.bas" file and here's declared how to get "oxygen.dll" for code executing, compiling and much more. have you some more infos please?

c) btw: I am still working at my own sci editor and I have found the problem how to "save" a file and running it (with "execute" command) as I have mentioned at another place at board here. the "oxide.o2bas" example uses four edit controls (simple one) and not an scintilla editor, so other commands in "oxideutil.o2bas" and other include files are not wokring. If there's more time I will check all files this week-end for running my "sci editor" :) nice week-end and good ideas for next oxygen issues. here's very cold in germany centre region and it was snowing whole night long. unusual hard winter time here I hope the spring will come very soon with a lot of sunshine and dry wheather.

best regards, frank
« Last Edit: February 23, 2013, 02:38:28 AM by Frankolinox »

Charles Pegge

  • Guest
Re: general question about compiling oxygen
« Reply #3 on: February 23, 2013, 05:57:45 AM »
Hi Frank,

I think the information you need is in tools/compilers/ExO2FB/gxo2.bas

This is the Freebasic source for the gxo2 Oxygen compiler and includes an Oxygen API.

We have cold dry weather here, after several months of continuous rain! Farmers are concerned about the low nutrient content of last year's crops for feeding their animals. So a little sunshine is very welcome.

Charles