~vcs-imports/geany/trunk-cscvs

« back to all changes in this revision

Viewing changes to src/build.h

  • Committer: ntrel
  • Date: 2010-08-20 15:55:30 UTC
  • Revision ID: importd@pear-20100820155530-38ds5w6zoyae5ejl
Replace GeanyBuildCommand::entries array with separate fields.
Similar to r5077 in the bs2 branch, but with less loop unrolling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *      along with this program; if not, write to the Free Software
19
19
 *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
20
 *
21
 
 * $Id: build.h 5081 2010-07-01 17:08:00Z ntrel $
 
21
 * $Id: build.h 5184 2010-08-20 15:55:30Z ntrel $
22
22
 */
23
23
 
24
24
/* * @file build.h Interface to the Build menu functionality. */
120
120
extern GeanyBuildInfo build_info;
121
121
 
122
122
/** The entries of a command for a menu item */
123
 
typedef enum  GeanyBuildCmdEntries
 
123
typedef enum GeanyBuildCmdEntries
124
124
{
125
 
    GEANY_BC_LABEL,                             /**< The menu item label, _ marks mnemonic */
126
 
    GEANY_BC_COMMAND,                   /**< The command to run. */
127
 
    GEANY_BC_WORKING_DIR,               /**< The directory to run in */
128
 
    GEANY_BC_CMDENTRIES_COUNT   /**< Count of entries */
 
125
        GEANY_BC_LABEL,                         /**< The menu item label, _ marks mnemonic */
 
126
        GEANY_BC_COMMAND,                       /**< The command to run. */
 
127
        GEANY_BC_WORKING_DIR,           /**< The directory to run in */
 
128
        GEANY_BC_CMDENTRIES_COUNT       /**< Count of entries */
129
129
} GeanyBuildCmdEntries;
130
130
 
131
131
/** The command for a menu item. */
132
132
typedef struct GeanyBuildCommand
133
133
{
134
 
        /** Pointers to g_string values of the command entries.
 
134
        /** Pointers to g_string values of the command entries.
135
135
         * Must be freed if the pointer is changed. */
136
 
        gchar           *entries[GEANY_BC_CMDENTRIES_COUNT];
 
136
        gchar           *label;                                         /**< Menu item label */
 
137
        gchar           *command;                                       /**< Command to run */
 
138
        gchar           *working_dir;                           /**< working directory */
137
139
        gboolean         exists;                                        /**< If the entries have valid values. */
138
140
        gboolean         changed;                                       /**< Save on exit if @c changed, remove if not @c exist. */
139
141
        gboolean         old;                                           /**< Converted from old format. */