An inlcude should has the extension ".pbi"

Everything else that doesn't fall into one of the other PB categories.
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

An inlcude should has the extension ".pbi"

Post by WolfgangS »

Hi!
As i collected different include files for Purebasic, i noticed, it all has different extensions like .pbi, pbh, .h.pb and so on. I asked Fred about it and he told me whe should take the extension .pbi in future and he will also support it.

This is just for info.

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Ok, so when exactly should .pbi be used (and not used)?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
freak
PureBasic Team
PureBasic Team
Posts: 5946
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

> Ok, so when exactly should .pbi be used (and not used)?

Exactly my point. There is no difference between a pb and a pbi file, so why
not just stick with .pb ?

Timo
quidquid Latine dictum sit altum videtur
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

freak wrote:> Ok, so when exactly should .pbi be used (and not used)?

Exactly my point. There is no difference between a pb and a pbi file, so why
not just stick with .pb ?

Timo
If you are saying that both are PureBasic source files, than you are right.

BUT:
The purpose was to destinguish between main.pb files and include.pbi files when you see the file name.
So if you have tons of files in a project dir you see exactly what kind of file it is.
An include file (normally) can't work alone, because (normally) you have only some constant/variable declaration and procedures that provide some functions for the main code.
(The statement above is only true if you don't have any other things in your include file)

If you use it (different extensions) is up to you - you don't have to.

As for different extensions: other languages have it too :wink:

I am to provide the public with beneficial shocks.
Alfred Hitshock
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

I distinguish my "include" files using...

XIncludeFile "../include/blabla.bla"

...of course "blabla.bla" is up to you. I got fed up of multiple extensions.
Post Reply