Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103768 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70419 invoked from network); 19 Jan 2019 16:09:21 -0000 Received: from unknown (HELO mail-qt1-f171.google.com) (209.85.160.171) by pb1.pair.com with SMTP; 19 Jan 2019 16:09:21 -0000 Received: by mail-qt1-f171.google.com with SMTP id p17so18283876qtl.5 for ; Sat, 19 Jan 2019 04:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=visr+4QLkQA93ON7dWGxgi25/F9rQ6vRXzzhBeAg2uY=; b=skXzyKwDw7IPGqRaI5+vecHE6s/75/1p6Webaib/Si6ReT6x7kdak1qiiveQYirWSu JTQJxqlTzV0uURoZkUBjVxwZfIe/jKDKvUsVc4BaxoPTfA4455djfLRMimZCD6MSIEoO Xs7/peEscEas6uwT0wsoEVTYZbS2O+rTkyc4+3PP4HcKCVrYREEqimNo31LfTkibud/9 HJHURNZr4ZklaP84BRw0e0FEOqfclH39gpWQWlSRmlxX8S21P6b+TjoFXNvbR7UYCq/s 6Kx/Pd/HyG9KXaW7fGFNJzI+qvxWAlC8/C1habsxl3eLU9dGLbZ6WjGxUP7lvnKsCJY+ Avtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=visr+4QLkQA93ON7dWGxgi25/F9rQ6vRXzzhBeAg2uY=; b=PIGU/WYNq+BCHTUITlkcThDar6EvwhBuJEoKTO7HEkmFSs844/0Yghr/d4Pbk565FS bf4fusYqtzywdAcy1jFfZFELa+af/75cDIYqcgkYeHBlk0aLz/rpWrWiwXksGNMXrXEL iGukZqdeV8NxNUdKyZ+yvtDwEIg6WQVdEC0DMvRZYMRvPQj4q8tISgrSHRFAjbyYIpsk I/2bv7chGah30RDb3t8ks8GUOnMMgH3Qal+/n1Zbac1PKhyufyPap2SHuwb+COTdLOjr cB38VmoHnE/IHcAfQ+dlvRRXAb2+rTZRM8uypTrC8z4wKgKZLdBJS84yZLxZQP1SU5cP 9+lw== X-Gm-Message-State: AJcUukd0M+g66LCXgb6JlEneHhZqE9Yc+g/83HXwjJmmXhvxoYMase49 N3BuzBHNhr8yyARjDnwzkHRM9E/ceBt5nvcIdcw1KpoA4ns= X-Google-Smtp-Source: ALg8bN5l31xc5qU3jXA9Yolshs+zeIxSwBPGrMWp2o3bjMn69KwlO7RYk3V28NhvJ8Pzfbt3GUQ8a2/XOREMY0NVt4I= X-Received: by 2002:ac8:76c3:: with SMTP id q3mr19717630qtr.48.1547901973301; Sat, 19 Jan 2019 04:46:13 -0800 (PST) MIME-Version: 1.0 Date: Sat, 19 Jan 2019 13:46:02 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000440fce057fcf0383" Subject: php-src code style From: legale.legale@gmail.com (Legale Legage) --000000000000440fce057fcf0383 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, internals. I was trying to find code style guide for php-src project on the wiki.php.net The only thing i found: http://doc.php.net/tutorial/style.php Do we have a code style guide in the form of a document? Will it be ok if I use these parameters: 1. Encoding: utf-8 (without BOM) 2. Line separator: \n 3. Line width: 120 chars 4. If something doesn't fit on the line, then break the line and start on the next one with a single indent relative to the indent of the current code block. Example: function fun(int a, int b, int c, int d) 5. =D0=A1ommas, colons, question marks etc remain on the broken line. Examp= le: c =3D (a =3D=3D b) ? 1 : 2; char a[] =3D { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, }; --000000000000440fce057fcf0383--