Commit Graph

306 Commits

Author SHA1 Message Date
Emmanuel Briot
c6bd8bdcd5 (dependencies.py): the hash table computed for projects (Hash_Type) is
sometimes out of range of Integer, and resulted in a Constraint_Error.
 Make the algorithm much faster by only reporting a single file
 dependency per project dependency, by default.
 IB12-015

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@152250 936e1b1b-40f2-da11-902a-00137254ae57
2009-11-13 13:02:14 +00:00
Emmanuel Briot
1ab0792923 (htables.ads): change API to get closer to what GNAT.Dynamic_Htables
currently is, and to what I422-031 aims at.
 The goal is to be able to replace this package with
 GNAT.Dynamic_Htables when the latter has been updated
(String_Utils.Hash): moved from htables.ads

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@147780 936e1b1b-40f2-da11-902a-00137254ae57
2009-07-29 01:39:05 +00:00
Jerome Lambourg
8d01d8e0a3 (Load_Dir): Make sure that there are no trailing '\' when setting the python
sys.dir.
Correction of a regression brought by I325-007



git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@142530 936e1b1b-40f2-da11-902a-00137254ae57
2009-04-10 06:03:41 +00:00
Jerome Lambourg
dfdbed0121 Major reorganisation of the Virtual Files handling and of the remote mode
configuration management.
Major VFSification of GPS: GPS should now be using Virtual Files almost
 everywhere possible.

Part of I325-007




git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@142501 936e1b1b-40f2-da11-902a-00137254ae57
2009-04-09 14:37:02 +00:00
Nicolas Setton
512e2e99f2 Implement steps 1) and 2) of the transition away from Glib.XML:
1) introduce a package XML_Utils which mimics completely the interface 
     of Glib.Xml_Int
  2) replace all uses of Glib.XML_Int by uses to XML_Utils everywhere in GPS 
     (except in the GtkAda part, like the MDI, of course)
For E810-014.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@139944 936e1b1b-40f2-da11-902a-00137254ae57
2009-02-13 11:28:11 +00:00
Nicolas Setton
6c0f21c180 Introduce type Filesystem_String, used to represent strings coming
from the filesystem.
For I205-006.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@139821 936e1b1b-40f2-da11-902a-00137254ae57
2009-02-10 18:51:41 +00:00
Arnaud Charlet
56c4388038 Removed, no longer used.
Part of HA28-015


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@132211 936e1b1b-40f2-da11-902a-00137254ae57
2008-11-10 10:03:40 +00:00
Pascal Obry
48e0e3d297 Minor reformatting and style fixes.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@132152 936e1b1b-40f2-da11-902a-00137254ae57
2008-11-09 11:23:03 +00:00
Arnaud Charlet
6fc50baaf4 (Load_Dir): Remove old commented out code.
Normalize directory name, since python 2.5 no longer handles unix style dirs
 properly under Windows
Part of H713-007


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@128167 936e1b1b-40f2-da11-902a-00137254ae57
2008-08-28 16:57:06 +00:00
Arnaud Charlet
9fc2e915aa Add missing overriding keyword.
Minor reformatting.




git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@127973 936e1b1b-40f2-da11-902a-00137254ae57
2008-08-21 09:09:22 +00:00
Jerome Lambourg
969af00e00 (Python_File_Command_Handler): in __cmp__, take care of case where we make
a comparison with a non-file object. This allows to test "if file == None:"
 without raising exceptions.
Discovered while testing gnatcheck.py module.
Part of H421-019



git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@125115 936e1b1b-40f2-da11-902a-00137254ae57
2008-05-30 09:17:01 +00:00
Emmanuel Briot
7e4e8898de (GNATCOLL.VFS): new package, which contains the code previously in vfs.ad?
This code is now independent from the GPS and GtkAda codes.
 Last technical part of H114-016
(GNATCOLL.VFS.Create): we now take a filesystem as a parameter, rather than
 a host nickname, since the latter is specific to GPS, and not portable to
 gnatcoll. Appropriate backward compatible subprograms were left in GPS,
 in the filesystems.ads package
(GNATCOLL.Filesystem.Locale_To_Display): New function to handle file name
 encoding issues, as discussed in H114-016


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@124380 936e1b1b-40f2-da11-902a-00137254ae57
2008-04-30 10:33:56 +00:00
Emmanuel Briot
7542f626a8 Renamed gnatlib => gnatcoll (H411-006)
Renamed GNAT.* packages into GNATCOLL.*
Fixed headers in gnatlib, so that they reference "G N A T C O L L", rather
 than the misc. names we have before.
Update copyright dates


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@124025 936e1b1b-40f2-da11-902a-00137254ae57
2008-04-17 12:12:00 +00:00
Arnaud Charlet
0d4e86914c Remove pragma Unmodified, now that warning has been tuned in GNAT.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120349 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-03 14:24:57 +00:00
Pascal Obry
568551e27e Some minor reformatting.
Add some pragma Unmodified to avoid compilation warnings.
Change some parameter from OUT to IN mode to avoid compilation warnings.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@119956 936e1b1b-40f2-da11-902a-00137254ae57
2007-12-09 18:15:33 +00:00
Pascal Obry
84af4b20a3 (Python_File_Command_Handler): Normalize the pathname when comparing to
ensure that comparison are wokring properly on non case-sensitive OS
 like windows.
Fix regressions F223-021 and F925-002.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@119639 936e1b1b-40f2-da11-902a-00137254ae57
2007-11-26 20:54:46 +00:00
Emmanuel Briot
47d032f230 Replace all calls to GtkAda.MDI.Gtk_New to calls to GPS.Kernel.MDI.Gtk_New.
This is a minor cleanup done in the context of D723-002


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@113771 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-23 14:25:08 +00:00
Jerome Lambourg
807eaf419a Remove unused C language in this module.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@113514 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-13 10:32:42 +00:00
Emmanuel Briot
3d46dffe23 Remove our own gtkada/gtkada.gpr project (G706-003), and use the one
installed by GtkAda instead. This is so that we can also depend on gnatlib,
 which must be independent of GPS but must also depend on GtkAda (and not
 on GPS)
 This impacted several .gpr files, as well as Makefile.* since Makefile.gtkada
 was also removed
(gps/Makefile, gps/Makefile.gps): Change the way we depend on gnatlib, which
 is now built with library project files. gps/Makefile is used to indicate
 whether we want static (the default) or shared gnatlib libraries.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@113228 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-06 12:33:33 +00:00
Emmanuel Briot
43f93845ca Makefile.python no longer needs to be generated by python, since all
optional code is now handled by gnatlib


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@108110 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-13 10:25:37 +00:00
Emmanuel Briot
deeedb13cf Change gnatlib integration into the build structure: we now use a more
usual Makefile.gnatlib_gtk that does all the work for gnatlib. This
 also removes knowledge in Makefile.python about what object files should
 be linked in. Further simplification will be possible in the latter as
 a result


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@108108 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-13 10:21:58 +00:00
Emmanuel Briot
e4af500c72 (python.gpr.in): no longer needed, since it doesn't depend on the output
of configure


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@108092 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-13 08:57:45 +00:00
Emmanuel Briot
b9831c755e Merge with gnatlib: all the python-specific code is now in gnatlib. The
packages in this module only contain exported shell commands specific
 to python (__str__, __repr__,...)
As a result, we no longer need two source directories here, since the
 code will work whether or not python could be loaded. Moved back the
 source directory from python/ and nopython/ to src/, for compatibility
 with all other modules


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@108075 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-13 07:58:36 +00:00
Emmanuel Briot
7294dd6439 Take advantage of new variables generated by configure
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@107894 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-08 16:44:52 +00:00
Emmanuel Briot
3be3c5329d Updating for new name of source directories.
The "python" module will likely disappear once we start using the code
 from corelib/ instead (G607-009)


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@107892 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-08 16:41:23 +00:00