After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 483840 - Use .vapi as file extension for bindings
Use .vapi as file extension for bindings
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.1.x
Other All
: Normal blocker
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks: 480253
 
 
Reported: 2007-10-05 18:50 UTC by Jürg Billeter
Modified: 2007-10-08 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jürg Billeter 2007-10-05 18:50:22 UTC
We should probably use a separate file extension for VAPI files. This would allow us to pass local bindings just like source files on the command-line without --vapidir option or resorting to special attributes. It also helps to split bindings with custom vala code into a .vapi and a .vala file.

Marking as blocker as we want breaking changes in a release as early as possible.
Comment 1 Raffaele Sandrini 2007-10-06 11:48:18 UTC
Sounds resonable to me. I think vapi files and vala files should be understood similar to source and header files in C. The syntax in those files is the same and the code could be distributed in different way (not every distribution would make sense though). This is pretty similar (apart that implementaiton code is ommited for now in vapi files) in vala.

Question remains whether we want to state vapi files like source files or reference them in some other way (like in C through "#include"). It is IMO uncommon to state "header" and "source" on the same command line. e.g. in C you also state the includedir (similar to the vapidir in vala). However, only with requiering vapi files shall have a .vapi ending we do not enforce them beeing stated on the command line instead referenced through vapidir.
Comment 2 Jürg Billeter 2007-10-08 19:26:42 UTC
2007-10-08  Jürg Billeter  <j@bitron.ch>

	* vala/valaparser.vala, compiler/valacompiler.vala: use .vapi as file
	  extension for bindings, fixes bug 483840