mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-22 01:23:43 +02:00
fix whitespace anomalies
/ \t/, / $/, and /\t$/
This commit is contained in:
parent
4c3dea7111
commit
f2d3986600
2
fpd.l
2
fpd.l
@ -192,7 +192,7 @@ SP [\t ]*
|
||||
|
||||
^#\ [0-9]+\ \"[^"]*\"(\ [0-9]+)*\n {
|
||||
if (!disable_keywords)
|
||||
BEGIN(INITIAL);
|
||||
BEGIN(INITIAL);
|
||||
lineno = strtol(yytext+2, NULL, 0); }
|
||||
|
||||
. return *yytext;
|
||||
|
2
gui.c
2
gui.c
@ -94,7 +94,7 @@ static void swap_var_code(void)
|
||||
|
||||
|
||||
static GtkItemFactoryEntry menu_entries[] = {
|
||||
{ "/File", NULL, NULL, 0, "<Branch>" },
|
||||
{ "/File", NULL, NULL, 0, "<Branch>" },
|
||||
{ "/File/Save", NULL, save_fpd, 0, "<Item>" },
|
||||
{ "/File/Save as", NULL, save_as_fpd, 0, "<Item>" },
|
||||
{ "/File/sep1", NULL, NULL, 0, "<Separator>" },
|
||||
|
@ -1122,7 +1122,6 @@ static void build_table(GtkWidget *vbox, struct frame *frame,
|
||||
n_var++;
|
||||
n_vars++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -86,7 +86,7 @@ int is_dragging_anything(void)
|
||||
NDX_n++; \
|
||||
NDX_n; })
|
||||
|
||||
#define NTH(first, n) \
|
||||
#define NTH(first, n) \
|
||||
({ typeof(first) *NTH_walk; \
|
||||
int NTH_n = (n); \
|
||||
for (NTH_walk = &(first); NTH_n; NTH_n--) \
|
||||
@ -164,11 +164,11 @@ static void swap_table_cells_by_coord(GtkWidget *table_a,
|
||||
b = pick_table_cell(table_b, b_col, b_row);
|
||||
if (a) {
|
||||
g_object_ref(a);
|
||||
gtk_container_remove(GTK_CONTAINER(table_a), a);
|
||||
gtk_container_remove(GTK_CONTAINER(table_a), a);
|
||||
}
|
||||
if (b) {
|
||||
g_object_ref(b);
|
||||
gtk_container_remove(GTK_CONTAINER(table_b), b);
|
||||
gtk_container_remove(GTK_CONTAINER(table_b), b);
|
||||
}
|
||||
if (a)
|
||||
gtk_table_attach_defaults(GTK_TABLE(table_b), a,
|
||||
|
2
kicad.c
2
kicad.c
@ -77,7 +77,7 @@ static void kicad_pad(FILE *file, const struct inst *inst)
|
||||
|
||||
/*
|
||||
* name, shape (rectangle), Xsize, Ysize, Xdelta, Ydelta, Orientation
|
||||
*/
|
||||
*/
|
||||
fprintf(file, "Sh \"%s\" %c %d %d 0 0 0\n",
|
||||
inst->u.pad.name, inst->obj->u.pad.rounded ? 'O' : 'R',
|
||||
size.x, size.y);
|
||||
|
@ -654,7 +654,7 @@ static int generate_frames(FILE *file, const struct pkg *pkg,
|
||||
* quantitative one, emphasizing the logical structure of the drawing
|
||||
* and not the actual sizes.
|
||||
*
|
||||
* This could be done by ranking vectors by current, average, maximum,
|
||||
* This could be done by ranking vectors by current, average, maximum,
|
||||
* etc. size, then let their size be determined by the amount of text
|
||||
* that's needed and the size of subordinate vectors. One difficulty
|
||||
* would be in making vectors with a fixed length ratio look correct,
|
||||
|
Loading…
Reference in New Issue
Block a user