mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-25 05:01:53 +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 {
|
^#\ [0-9]+\ \"[^"]*\"(\ [0-9]+)*\n {
|
||||||
if (!disable_keywords)
|
if (!disable_keywords)
|
||||||
BEGIN(INITIAL);
|
BEGIN(INITIAL);
|
||||||
lineno = strtol(yytext+2, NULL, 0); }
|
lineno = strtol(yytext+2, NULL, 0); }
|
||||||
|
|
||||||
. return *yytext;
|
. return *yytext;
|
||||||
|
2
gui.c
2
gui.c
@ -94,7 +94,7 @@ static void swap_var_code(void)
|
|||||||
|
|
||||||
|
|
||||||
static GtkItemFactoryEntry menu_entries[] = {
|
static GtkItemFactoryEntry menu_entries[] = {
|
||||||
{ "/File", NULL, NULL, 0, "<Branch>" },
|
{ "/File", NULL, NULL, 0, "<Branch>" },
|
||||||
{ "/File/Save", NULL, save_fpd, 0, "<Item>" },
|
{ "/File/Save", NULL, save_fpd, 0, "<Item>" },
|
||||||
{ "/File/Save as", NULL, save_as_fpd, 0, "<Item>" },
|
{ "/File/Save as", NULL, save_as_fpd, 0, "<Item>" },
|
||||||
{ "/File/sep1", NULL, NULL, 0, "<Separator>" },
|
{ "/File/sep1", NULL, NULL, 0, "<Separator>" },
|
||||||
|
@ -1122,7 +1122,6 @@ static void build_table(GtkWidget *vbox, struct frame *frame,
|
|||||||
n_var++;
|
n_var++;
|
||||||
n_vars++;
|
n_vars++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ int is_dragging_anything(void)
|
|||||||
NDX_n++; \
|
NDX_n++; \
|
||||||
NDX_n; })
|
NDX_n; })
|
||||||
|
|
||||||
#define NTH(first, n) \
|
#define NTH(first, n) \
|
||||||
({ typeof(first) *NTH_walk; \
|
({ typeof(first) *NTH_walk; \
|
||||||
int NTH_n = (n); \
|
int NTH_n = (n); \
|
||||||
for (NTH_walk = &(first); NTH_n; NTH_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);
|
b = pick_table_cell(table_b, b_col, b_row);
|
||||||
if (a) {
|
if (a) {
|
||||||
g_object_ref(a);
|
g_object_ref(a);
|
||||||
gtk_container_remove(GTK_CONTAINER(table_a), a);
|
gtk_container_remove(GTK_CONTAINER(table_a), a);
|
||||||
}
|
}
|
||||||
if (b) {
|
if (b) {
|
||||||
g_object_ref(b);
|
g_object_ref(b);
|
||||||
gtk_container_remove(GTK_CONTAINER(table_b), b);
|
gtk_container_remove(GTK_CONTAINER(table_b), b);
|
||||||
}
|
}
|
||||||
if (a)
|
if (a)
|
||||||
gtk_table_attach_defaults(GTK_TABLE(table_b), 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
|
* name, shape (rectangle), Xsize, Ysize, Xdelta, Ydelta, Orientation
|
||||||
*/
|
*/
|
||||||
fprintf(file, "Sh \"%s\" %c %d %d 0 0 0\n",
|
fprintf(file, "Sh \"%s\" %c %d %d 0 0 0\n",
|
||||||
inst->u.pad.name, inst->obj->u.pad.rounded ? 'O' : 'R',
|
inst->u.pad.name, inst->obj->u.pad.rounded ? 'O' : 'R',
|
||||||
size.x, size.y);
|
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
|
* quantitative one, emphasizing the logical structure of the drawing
|
||||||
* and not the actual sizes.
|
* 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
|
* etc. size, then let their size be determined by the amount of text
|
||||||
* that's needed and the size of subordinate vectors. One difficulty
|
* that's needed and the size of subordinate vectors. One difficulty
|
||||||
* would be in making vectors with a fixed length ratio look correct,
|
* would be in making vectors with a fixed length ratio look correct,
|
||||||
|
@ -88,7 +88,6 @@ static char *unparse_op(const struct expr *expr, enum prec prec)
|
|||||||
char tmp[100];
|
char tmp[100];
|
||||||
char *buf, *temp;
|
char *buf, *temp;
|
||||||
|
|
||||||
|
|
||||||
if (prec > precedence(expr->op)) {
|
if (prec > precedence(expr->op)) {
|
||||||
temp = unparse_op(expr, prec_add);
|
temp = unparse_op(expr, prec_add);
|
||||||
buf = alloc_size(strlen(temp)+3);
|
buf = alloc_size(strlen(temp)+3);
|
||||||
|
Loading…
Reference in New Issue
Block a user