Commit 6c01c554 authored by charras's avatar charras
Browse files

code cleanup, better comments and comments translation

parent 589873f3
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
/****************************************************************************/
/*********************************************/
/*	             string.cpp				  	 */
/*	 ROLE: fonctions complementaires de traitement de chaines de caracteres */
/****************************************************************************/
/*	 some useful functions to handle strings */
/*********************************************/

#include "fctsys.h"
#include <time.h>
@@ -13,9 +13,9 @@
int ReadDelimitedText( char* dest, char* source, int NbMaxChar )
/*********************************************************************/

/* read a double-qute delimited text in source and put in in dest,
/* read a double-quote delimited text from source and put it in in dest,
 *  read NbMaxChar bytes max
 *  return the byte count read in source
 *  return the char count read from source
 */
{
    int ii, jj, flag = 0;
+256 −353

File changed.

Preview size limit exceeded, changes collapsed.

+203 −209

File changed.

Preview size limit exceeded, changes collapsed.

+1 −4
Original line number Diff line number Diff line
@@ -371,9 +371,6 @@ int DrawSheetStruct::ComponentCount()
/*******************************************************************/
{
    //count our own components, without the power components.

    /* Routine retournant le nombre de composants dans le schema,
     *  powers non comprises */
    int n = 0;

    if( m_AssociatedScreen )
@@ -678,7 +675,7 @@ DrawSheetPath::DrawSheetPath()
}


int DrawSheetPath::Cmp( DrawSheetPath& d )
int DrawSheetPath::Cmp( const DrawSheetPath& d ) const
{
    if( m_numSheets > d.m_numSheets )
        return 1;
+5 −5
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ public:
 */
WX_DEFINE_ARRAY( DrawSheetStruct *, SheetGrowArray );

class DrawSheetStruct : public SCH_ITEM    /* Gestion de la hierarchie */
class DrawSheetStruct : public SCH_ITEM
{
public:
    wxString m_SheetName;               /*this is equivalent to C101 for components:
@@ -76,13 +76,13 @@ private:
                                         * but need it here for loading after
                                         * reading the sheet description from file. */
public:
    int         m_SheetNameSize;                        /* Size (height) of the text, used to draw the name */
    int         m_FileNameSize;                         /* Size (height) of the text, used to draw the name */
    int         m_SheetNameSize;                        /* Size (height) of the text, used to draw the sheet name */
    int         m_FileNameSize;                         /* Size (height) of the text, used to draw the file name */
    wxPoint     m_Pos;
    wxSize      m_Size;                                 /* Position and Size of sheet symbol */
    int         m_Layer;
    Hierarchical_PIN_Sheet_Struct* m_Label;             /* Points de connection, linked list.*/
    int         m_NbLabel;                              /* Nombre de points de connexion */
    int         m_NbLabel;                              /* Pins sheet (corresponding to hierarchical labels) count */
    SCH_SCREEN* m_AssociatedScreen;             /* Associated Screen which handle the physical data
                                                 * In complex hierarchies we can have many DrawSheetStruct using the same data
                                                 */
@@ -149,7 +149,7 @@ public:
    DrawSheetPath();
    ~DrawSheetPath() { };
    void                Clear() { m_numSheets = 0; }
    int              Cmp( DrawSheetPath& d );
    int              Cmp( const DrawSheetPath& d ) const;
    DrawSheetStruct* Last();
    SCH_SCREEN*      LastScreen();
    EDA_BaseStruct*  LastDrawList();
Loading