U++ framework
Do not panic. Ask here before giving up.

Home » Community » Coffee corner » Great (and funny) Linus' speach about GIT
Re: Great (and funny) Linus' speach about GIT [message #13523 is a reply to message #13518] Fri, 11 January 2008 19:03 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 702
Registered: December 2005
Location: Budapest, Hungary
Contributor
mdelfede wrote on Fri, 11 January 2008 18:19


But again, as components are used only by developers, I agree that your way is not bad at all (of course, it doesn't allow closed source components).


I think, this is not true as well. Just check MySql or PostgreSQL package. They are a thin layer on top of a DLL. You can always do the same, if you want to provide a closed source package. (Maybe this could be mentioned in a HOWTO.)

mdelfede wrote on Fri, 11 January 2008 18:19


BTW, I've got a small question about writing an enhancement to theide.... I want to make a 'reformat code' menu point, using astyle. How (if it's simple to tell me...) should I handle the editor change and the undo stuff ? My code should read the full buffer as a string and write it again inside editor once formatted.


This can be a good starting point for you to implement a source manipulator plugin interface. It could be very simple, as it could work on simple "C" string buffers.
The plugin interface would declare a .dll (or .so) in a header file something like:
extern "C"{
  const char* ManipulateSourcecode(const char*);
  void FreeWorkingBuffer();
  const char* GetPluginName();
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About vista....
Next Topic: Successfull cross-compile to ARM9, AT91SAM9263-ek
Goto Forum:
  


Current Time: Wed Apr 29 12:32:06 GMT+2 2026

Total time taken to generate the page: 0.01262 seconds