Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Autoversioning Pugin
jomeggs:
Hi,
yesterday, I tried the autoversioning plugin. It works well, thank you for that. But, I found a little problem. First, the default filename for the versioning header is "version.h". So, that's a commonly used name in many projects. If I'am right, even the linux code has such a file. If a "version.h" resides in the current project directory, the autoversioning plugin overides it without any warnings. :shock: I suggest to change the name to "autover.h" or something like that.
A second point is, after I changed the name of the versioning header to an other name, there was no change to the #IFDEF statement. That means, my file had the name "autover.h" and it looked like this:
--- Code: ---#ifndef VERSION_H
#define VERSION_H
...
#endif //VERSION_h
--- End code ---
In the end, that could provoke a problem with the define VERSION_H, if other "version.h"'s are used in project. It would be better to use the real name of the autoversioning header also for the define like: AUTOVER_H
Please don't misapprehend me, I dont' wish to disgust someone. If at least the define problem is solved, i would like to use this wonderful plugin. :D
JGM:
--- Quote from: jomeggs on April 12, 2008, 05:38:18 pm ---Please don't misapprehend me, I dont' wish to disgust someone. If at least the define problem is solved, i would like to use this wonderful plugin. :D
--- End quote ---
Why should I dislike some one that is saying the truth :D Thanks for pointing those problems.
--- Quote from: jomeggs on April 12, 2008, 05:38:18 pm ---If a "version.h" resides in the current project directory, the autoversioning plugin overides it without any warnings.
--- End quote ---
That's something I thought but forgot to implement, I was going to ask the user to replace the content if the file already exist.
--- Quote from: jomeggs on April 12, 2008, 05:38:18 pm ---A second point is, after I changed the name of the versioning header to an other name, there was no change to the #IFDEF statement
--- End quote ---
I missed that part completely :shock: Doesn't even thought about that. But these is a community so it could be solved :wink:
Well I'm going to try fixing this on the night.
jomeggs:
--- Quote from: JGM on April 14, 2008, 06:54:43 pm ---Well I'm going to try fixing this on the night.
--- End quote ---
Please, don't spend the night! It's quite enough, to do that in the evening... :lol: :lol: :lol:
JGM:
--- Quote from: jomeggs on April 14, 2008, 07:30:21 pm ---Please, don't spend the night! It's quite enough, to do that in the evening... :lol: :lol: :lol:
--- End quote ---
I doesn't understand (get) your joke. :(
Sorry for the delay but I will work on that :), what I have abandoned has been the codepacks plugin, I have some sources but really parcial :( I have to work on it :x
jomeggs:
--- Quote from: JGM on April 16, 2008, 05:57:26 am ---I doesn't understand (get) your joke. :(
--- End quote ---
I just meant, the problem isn't that important. There is no need to hurry like that. So better spend the night for sleeping or doing things, you like (others than work).
Navigation
[0] Message Index
[#] Next page
Go to full version