1
0
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:
Werner Almesberger 2012-05-28 03:11:15 -03:00
parent 4c3dea7111
commit f2d3986600
19 changed files with 29 additions and 31 deletions

2
fpd.l
View File

@ -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
View File

@ -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>" },

View File

@ -1122,7 +1122,6 @@ static void build_table(GtkWidget *vbox, struct frame *frame,
n_var++;
n_vars++;
}
}

View File

@ -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,

View File

@ -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);

View File

@ -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,

View File

@ -88,7 +88,6 @@ static char *unparse_op(const struct expr *expr, enum prec prec)
char tmp[100];
char *buf, *temp;
if (prec > precedence(expr->op)) {
temp = unparse_op(expr, prec_add);
buf = alloc_size(strlen(temp)+3);