[mapguide-dev] Reverse engineering "prototype" from PHP extension?

Trevor Wekel trevor.wekel at autodesk.com
Mon Dec 4 10:50:33 EST 2006


Hi Jason,
 
VS intellisense works by looking at the generated .cs files.  It would
be a fair bit of work to get VS intellisense working because it would
involve changes to both IMake and Swig.  I assume Java would be the
same.  PHP might actually be easier because we do not generate language
specific code for php - it's all in C.  And from what I have seen so
far, most of the "intellisense" capability for PHP editors comes from
custom files.  Custom file generation could be done directly from IMake
without Swig involvement.
 
It should be fairly straightforward to plug into IMake's parsing code to
generate a custom file for an editor.  processExternalApiSection in
imake.cpp is called for all PUBLISHED_API and EXTERNAL_API methods.  The
custom file hooks could be added to this routine.  So I suspect support
for PHP editors would just be a few days but support for .Net and Java
would be longer due to Swig interdependency.
 
Thanks,
Trevor
 
 
 

  _____  

From: Jason Birch [mailto:Jason.Birch at nanaimo.ca] 
Sent: Saturday, December 02, 2006 1:49 PM
To: dev at mapguide.osgeo.org
Subject: RE: [mapguide-dev] Reverse engineering "prototype" from PHP
extension?


Yes, a generic approach would likely be best, so we could support things
like the Java IDEs too, but I have no idea what that would look like.
As long as it was something that I could convert to PHP with some regex
search/replace I'd be happy.  For VS, do you need to add something
specific to the .dlls for Intellisense to be picked up?  Inline
documentation?
 
Do you have any idea of what kind of effort would be required to extend
the current use of IMake to support this?  MapGuide is a pretty large
API for most hackers, and it would be great if we could make it easier
to use.
 
Jason

  _____  

From: Trevor Wekel
Sent: Wed 2006-11-29 9:49 AM
To: dev at mapguide.osgeo.org
Subject: RE: [mapguide-dev] Reverse engineering "prototype" from PHP
extension?



Hi Jason,

The IMake utility in BuildTools/WebTools/Imake is the front end
processor for generating our exported API.  It reads the C++ headers and
generates Swig input files.  With some extra coding, it should be
possible to generate the prototype file as part of the standard build
mechanism.  Zend Studio also has "intellisense" capabilities and it also
requires some sort of input file.  It might be worthwhile to extend
IMake in a more generic fashion so that other developers can add support
for their favourite environment.

Thanks,
Trevor


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-internals/attachments/20061204/cfffd58b/attachment.html


More information about the Mapguide-internals mailing list