[Vala] Set C representation of namespace manually?
- From: Matthias Klumpp <matthias tenstral net>
- To: "vala-list gnome org" <vala-list gnome org>
- Subject: [Vala] Set C representation of namespace manually?
- Date: Sun, 23 Feb 2014 23:54:49 +0100
Hi!
For a library project, I would like to have some control over the
namespace-C-naming (especially the automatic camel-case-to-underscore
conversion). For example if I have a namespace
namespace MyProject {
class Tree;
}
This translates to function names in form of
MyProjectTree *my_project_tree_new ()
but I would like to have
MyProjectTree *myproject_tree ();
(note the missing underscore)
If I change the namespace name to Myproject, I get correct function
naming, but the objects are named "wrong".
Is it possible to change the namespace C naming, without adding a
CCode cname to every class in a namespace?
Thanks for your help!
Matthias
--
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]